summaryrefslogtreecommitdiff
path: root/indra/llxuixml
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2011-03-18 18:09:28 -0700
committerMerov Linden <merov@lindenlab.com>2011-03-18 18:09:28 -0700
commitcb1c85261e768c9653ed40bf6160e7cc7ca9ce74 (patch)
treea5cccd2fca9fefe4717168f108bcb8d18fe98cf5 /indra/llxuixml
parentc2e88db89a8ba111efd0c1b61cc8dec400a007cb (diff)
parent6c0fbdafaed93b90354b37513a3b61dee56fb8b2 (diff)
Pull in viewer-development
Diffstat (limited to 'indra/llxuixml')
-rw-r--r--indra/llxuixml/lltrans.cpp5
-rw-r--r--indra/llxuixml/lltrans.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/indra/llxuixml/lltrans.cpp b/indra/llxuixml/lltrans.cpp
index 11127a53f5..e13d73c640 100644
--- a/indra/llxuixml/lltrans.cpp
+++ b/indra/llxuixml/lltrans.cpp
@@ -255,3 +255,8 @@ std::string LLTrans::getCountString(const std::string& language, const std::stri
std::string key = llformat("%s%s", xml_desc.c_str(), form);
return getString(key, args);
}
+
+void LLTrans::setDefaultArg(const std::string& name, const std::string& value)
+{
+ sDefaultArgs[name] = value;
+}
diff --git a/indra/llxuixml/lltrans.h b/indra/llxuixml/lltrans.h
index 42c27b6976..5b127b53cf 100644
--- a/indra/llxuixml/lltrans.h
+++ b/indra/llxuixml/lltrans.h
@@ -110,6 +110,8 @@ public:
return sDefaultArgs;
}
+ static void setDefaultArg(const std::string& name, const std::string& value);
+
// insert default args into an arg list
static void getArgs(LLStringUtil::format_map_t& args)
{