summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indra/newview/llviewermessage.cpp8
-rw-r--r--indra/newview/skins/default/xui/en/strings.xml2
2 files changed, 6 insertions, 4 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index b90e3dcda4..e882597c59 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -4484,11 +4484,13 @@ void process_money_balance_reply( LLMessageSystem* msg, void** )
std::string ammount = desc.substr(marker_pos + marker.length(),desc.length() - marker.length() - marker_pos);
//reform description
- std::string paid_you = LLTrans::getString("paid_you_ldollars");
- std::string new_description = base_name + paid_you + ammount;
+ LLStringUtil::format_map_t str_args;
+ str_args["NAME"] = base_name;
+ str_args["AMOUNT"] = ammount;
+ std::string new_description = LLTrans::getString("paid_you_ldollars", str_args);
+
args["MESSAGE"] = new_description;
-
args["NAME"] = name;
LLSD payload;
payload["from_id"] = from_id;
diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml
index 4b9140ee90..725539cee5 100644
--- a/indra/newview/skins/default/xui/en/strings.xml
+++ b/indra/newview/skins/default/xui/en/strings.xml
@@ -3027,6 +3027,6 @@ If you continue to receive this message, contact the [SUPPORT_SITE].
[SOURCES] have said something new
</string>"
- <string name="paid_you_ldollars">"paid you L$"</string>"
+ <string name="paid_you_ldollars">[NAME] paid you L$[AMOUNT]</string>
</strings>