Localize the new Silent Accept/Decline messages

This commit is contained in:
Inusaito Sayori
2013-10-10 18:28:06 -04:00
parent 8964cfd58b
commit 54c08b3ea0
2 changed files with 10 additions and 6 deletions

View File

@@ -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;