summaryrefslogtreecommitdiff
path: root/indra/llxuixml/lltrans.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llxuixml/lltrans.h')
-rw-r--r--indra/llxuixml/lltrans.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/llxuixml/lltrans.h b/indra/llxuixml/lltrans.h
index 6423c88245..340d70e434 100644
--- a/indra/llxuixml/lltrans.h
+++ b/indra/llxuixml/lltrans.h
@@ -78,6 +78,7 @@ public:
* @returns Translated string
*/
static std::string getString(const std::string &xml_desc, const LLStringUtil::format_map_t& args);
+ static bool findString(std::string &result, const std::string &xml_desc, const LLStringUtil::format_map_t& args);
/**
* @brief Returns a translated string
@@ -89,7 +90,14 @@ public:
LLStringUtil::format_map_t empty;
return getString(xml_desc, empty);
}
-
+
+ static bool findString(std::string &result, const std::string &xml_desc)
+ {
+ LLStringUtil::format_map_t empty;
+ return findString(result, xml_desc, empty);
+ }
+
+
// get the default args
static const LLStringUtil::format_map_t& getDefaultArgs()
{