aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltrans.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lltrans.cpp')
-rw-r--r--linden/indra/newview/lltrans.cpp12
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 @@
41LLTrans::template_map_t LLTrans::sStringTemplates; 41LLTrans::template_map_t LLTrans::sStringTemplates;
42 42
43//static 43//static
44bool LLTrans::parseStrings(const LLString& xml_filename) 44bool 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
79LLString LLTrans::getString(const LLString &xml_desc, const LLString::format_map_t& args) 79std::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);