Use the translatable string Saved_message everywhere needed, instead of just one place.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user