diff options
| author | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-07-25 17:34:06 +0300 |
|---|---|---|
| committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-07-25 17:34:06 +0300 |
| commit | c645e9e59e9e0a83a25f2c782ac79c21d519939e (patch) | |
| tree | 4d49f3ac14b5291c1482271f1e9692f2f920a26a /indra/newview/llviewerregion.cpp | |
| parent | 578e44d9b89012d8d4e1352dfd8a2b56b9d58163 (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.cpp | 6 |
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) |
