Use the translatable string Saved_message everywhere needed, instead of just one place.

This commit is contained in:
Lirusaito
2013-06-11 15:43:27 -04:00
parent d947912bb0
commit 7e9c75ef6b
2 changed files with 6 additions and 2 deletions

View File

@@ -1703,7 +1703,9 @@ public:
std::string saved;
if(offline == IM_OFFLINE)
{
saved = llformat("(Saved %s) ", formatted_time(timestamp).c_str());
LLStringUtil::format_map_t args;
args["[LONG_TIMESTAMP]"] = formatted_time(timestamp);
saved = LLTrans::getString("Saved_message", args);
}
std::string buffer = separator_string + saved + message.substr(message_offset);

View File

@@ -2846,7 +2846,9 @@ void process_improved_im(LLMessageSystem *msg, void **user_data)
std::string saved;
if(offline == IM_OFFLINE)
{
saved = llformat("(Saved %s) ", formatted_time(timestamp).c_str());
LLStringUtil::format_map_t args;
args["[LONG_TIMESTAMP]"] = formatted_time(timestamp);
saved = LLTrans::getString("Saved_message", args);
}
buffer = separator_string + saved + message.substr(message_offset);
gIMMgr->addMessage(