aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltrans.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/lltrans.h
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-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.h')
-rw-r--r--linden/indra/newview/lltrans.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/newview/lltrans.h b/linden/indra/newview/lltrans.h
index eb159f2..b127471 100644
--- a/linden/indra/newview/lltrans.h
+++ b/linden/indra/newview/lltrans.h
@@ -40,10 +40,10 @@
40class LLTransTemplate 40class LLTransTemplate
41{ 41{
42public: 42public:
43 LLTransTemplate(const LLString& name = "", const LLString& text = "") : mName(name), mText(text) {} 43 LLTransTemplate(const std::string& name = LLStringUtil::null, const std::string& text = LLStringUtil::null) : mName(name), mText(text) {}
44 44
45 LLString mName; 45 std::string mName;
46 LLString mText; 46 std::string mText;
47}; 47};
48 48
49/** 49/**
@@ -62,7 +62,7 @@ public:
62 * @param xml_filename Filename to parse 62 * @param xml_filename Filename to parse
63 * @returns true if the file was parsed successfully, true if something went wrong 63 * @returns true if the file was parsed successfully, true if something went wrong
64 */ 64 */
65 static bool parseStrings(const LLString& xml_filename); 65 static bool parseStrings(const std::string& xml_filename);
66 66
67 /** 67 /**
68 * @brief Returns a translated string 68 * @brief Returns a translated string
@@ -70,22 +70,22 @@ public:
70 * @param args A list of substrings to replace in the string 70 * @param args A list of substrings to replace in the string
71 * @returns Translated string 71 * @returns Translated string
72 */ 72 */
73 static LLString getString(const LLString &xml_desc, const LLString::format_map_t& args); 73 static std::string getString(const std::string &xml_desc, const LLStringUtil::format_map_t& args);
74 74
75 /** 75 /**
76 * @brief Returns a translated string 76 * @brief Returns a translated string
77 * @param xml_desc String's description 77 * @param xml_desc String's description
78 * @returns Translated string 78 * @returns Translated string
79 */ 79 */
80 static LLString getString(const LLString &xml_desc) 80 static std::string getString(const std::string &xml_desc)
81 { 81 {
82 LLString::format_map_t empty; 82 LLStringUtil::format_map_t empty;
83 return getString(xml_desc, empty); 83 return getString(xml_desc, empty);
84 } 84 }
85 85
86 86
87private: 87private:
88 typedef std::map<LLString, LLTransTemplate > template_map_t; 88 typedef std::map<std::string, LLTransTemplate > template_map_t;
89 static template_map_t sStringTemplates; 89 static template_map_t sStringTemplates;
90}; 90};
91 91