summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerregion.cpp
diff options
context:
space:
mode:
authorVadim ProductEngine <vsavchuk@productengine.com>2011-07-25 17:34:06 +0300
committerVadim ProductEngine <vsavchuk@productengine.com>2011-07-25 17:34:06 +0300
commitc645e9e59e9e0a83a25f2c782ac79c21d519939e (patch)
tree4d49f3ac14b5291c1482271f1e9692f2f920a26a /indra/newview/llviewerregion.cpp
parent578e44d9b89012d8d4e1352dfd8a2b56b9d58163 (diff)
STORM-1220 FIXED Localized sim product name (e.g. "Estate / Full Region") everywhere.
Diffstat (limited to 'indra/newview/llviewerregion.cpp')
-rw-r--r--indra/newview/llviewerregion.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp
index bb7170e0f7..c33b39b449 100644
--- a/indra/newview/llviewerregion.cpp
+++ b/indra/newview/llviewerregion.cpp
@@ -558,6 +558,12 @@ const std::string LLViewerRegion::getSimAccessString() const
return accessToString(mSimAccess);
}
+std::string LLViewerRegion::getLocalizedSimProductName() const
+{
+ const std::string& spn = getSimProductName();
+ std::string localized_spn;
+ return LLTrans::findString(localized_spn, spn) ? localized_spn : spn;
+}
// static
std::string LLViewerRegion::regionFlagsToString(U32 flags)