summaryrefslogtreecommitdiff
path: root/indra/newview/llcurrencyuimanager.cpp
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2010-07-19 10:18:57 -0400
committerLoren Shih <seraph@lindenlab.com>2010-07-19 10:18:57 -0400
commit5b8c1851f2b565fddaab28e23add62f621f15082 (patch)
treed8525d0f5dd985efb86dcb50e752e19d59a7fb2d /indra/newview/llcurrencyuimanager.cpp
parent94fde578cd845b1a648e66ecf184e7a24beaad6d (diff)
parent3bb5d368a21e2645222f0f5fa57b0a0abb236084 (diff)
automated merge
Diffstat (limited to 'indra/newview/llcurrencyuimanager.cpp')
-rw-r--r--indra/newview/llcurrencyuimanager.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llcurrencyuimanager.cpp b/indra/newview/llcurrencyuimanager.cpp
index fd3df359bd..7ebcef943e 100644
--- a/indra/newview/llcurrencyuimanager.cpp
+++ b/indra/newview/llcurrencyuimanager.cpp
@@ -35,6 +35,8 @@
#include "lluictrlfactory.h"
#include "lltextbox.h"
#include "lllineeditor.h"
+#include "llresmgr.h" // for LLLocale
+#include "lltrans.h"
#include "llviewercontrol.h"
#include "llversioninfo.h"
@@ -323,7 +325,12 @@ std::string LLCurrencyUIManager::Impl::getLocalEstimate() const
if (mUSDCurrencyEstimated)
{
// we have the old-style USD-specific value
- return "US$ " + llformat("%#.2f", mUSDCurrencyEstimatedCost / 100.0);
+ LLStringUtil::format_map_t args;
+ {
+ LLLocale locale_override(LLStringUtil::getLocale());
+ args["[AMOUNT]"] = llformat("%#.2f", mUSDCurrencyEstimatedCost / 100.0);
+ }
+ return LLTrans::getString("LocalEstimateUSD", args);
}
return "";
}