diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index d31d5366c..9e4b21ac2 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -1605,9 +1605,10 @@ bool LLOfferInfo::inventory_offer_callback(const LLSD& notification, const LLSD& case -2: // decline silently { - log_message = "You silently decline " + mDesc + " from " + mFromName + "."; - chat.mText = log_message; - LLFloaterChat::addChatHistory(chat); + LLStringUtil::format_map_t args; + args["[DESC]"] = mDesc; + args["[NAME]"] = mFromName; + LLFloaterChat::addChatHistory(LLTrans::getString("InvOfferDeclineSilent", args)); } break; case -1: // accept silently @@ -1622,9 +1623,10 @@ bool LLOfferInfo::inventory_offer_callback(const LLSD& notification, const LLSD& { opener = open_agent_offer; } - log_message = "You silently accept " + mDesc + " from " + mFromName + "."; - chat.mText = log_message; - LLFloaterChat::addChatHistory(chat); + LLStringUtil::format_map_t args; + args["[DESC]"] = mDesc; + args["[NAME]"] = mFromName; + LLFloaterChat::addChatHistory(LLTrans::getString("InvOfferAcceptSilent", args)); } break; diff --git a/indra/newview/skins/default/xui/en-us/strings.xml b/indra/newview/skins/default/xui/en-us/strings.xml index 4e6a1eba7..91a0a81c7 100644 --- a/indra/newview/skins/default/xui/en-us/strings.xml +++ b/indra/newview/skins/default/xui/en-us/strings.xml @@ -3371,6 +3371,8 @@ The owned by an unknown user gave you You decline [DESC] from [NAME]. + You silently decline [DESC] from [NAME]. + You silently accept [DESC] from [NAME]. Total