diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/lltrans.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/lltrans.cpp')
-rw-r--r-- | linden/indra/newview/lltrans.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/lltrans.cpp b/linden/indra/newview/lltrans.cpp index a848250..9a90112 100644 --- a/linden/indra/newview/lltrans.cpp +++ b/linden/indra/newview/lltrans.cpp | |||
@@ -41,7 +41,7 @@ | |||
41 | LLTrans::template_map_t LLTrans::sStringTemplates; | 41 | LLTrans::template_map_t LLTrans::sStringTemplates; |
42 | 42 | ||
43 | //static | 43 | //static |
44 | bool LLTrans::parseStrings(const LLString& xml_filename) | 44 | bool LLTrans::parseStrings(const std::string& xml_filename) |
45 | { | 45 | { |
46 | LLXMLNodePtr root; | 46 | LLXMLNodePtr root; |
47 | BOOL success = LLUICtrlFactory::getLayeredXMLNode(xml_filename, root); | 47 | BOOL success = LLUICtrlFactory::getLayeredXMLNode(xml_filename, root); |
@@ -60,7 +60,7 @@ bool LLTrans::parseStrings(const LLString& xml_filename) | |||
60 | continue; | 60 | continue; |
61 | } | 61 | } |
62 | 62 | ||
63 | LLString string_name; | 63 | std::string string_name; |
64 | 64 | ||
65 | if (! string->getAttributeString("name", string_name)) | 65 | if (! string->getAttributeString("name", string_name)) |
66 | { | 66 | { |
@@ -76,20 +76,20 @@ bool LLTrans::parseStrings(const LLString& xml_filename) | |||
76 | } | 76 | } |
77 | 77 | ||
78 | //static | 78 | //static |
79 | LLString LLTrans::getString(const LLString &xml_desc, const LLString::format_map_t& args) | 79 | std::string LLTrans::getString(const std::string &xml_desc, const LLStringUtil::format_map_t& args) |
80 | { | 80 | { |
81 | template_map_t::iterator iter = sStringTemplates.find(xml_desc); | 81 | template_map_t::iterator iter = sStringTemplates.find(xml_desc); |
82 | 82 | ||
83 | if (iter != sStringTemplates.end()) | 83 | if (iter != sStringTemplates.end()) |
84 | { | 84 | { |
85 | LLString text = iter->second.mText; | 85 | std::string text = iter->second.mText; |
86 | LLString::format(text, args); | 86 | LLStringUtil::format(text, args); |
87 | 87 | ||
88 | return text; | 88 | return text; |
89 | } | 89 | } |
90 | else | 90 | else |
91 | { | 91 | { |
92 | LLString::format_map_t args; | 92 | LLStringUtil::format_map_t args; |
93 | args["[STRING_NAME]"] = xml_desc; | 93 | args["[STRING_NAME]"] = xml_desc; |
94 | llwarns << "Missing String: [" << xml_desc << "]" << llendl; | 94 | llwarns << "Missing String: [" << xml_desc << "]" << llendl; |
95 | LLAlertDialog* dialogp = LLAlertDialog::showXml("MissingString", args); | 95 | LLAlertDialog* dialogp = LLAlertDialog::showXml("MissingString", args); |