summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterland.cpp
diff options
context:
space:
mode:
authorSeth ProductEngine <slitovchuk@productengine.com>2010-09-29 21:44:30 +0300
committerSeth ProductEngine <slitovchuk@productengine.com>2010-09-29 21:44:30 +0300
commit62a46df736cf88d7a2ad4bd55e285e4026328eb9 (patch)
treeae6a5e8e4fb834a8fb69e086913c7065d01b702b /indra/newview/llfloaterland.cpp
parentcb3042d84d51532c0b6953b69bdc8f9651ea7631 (diff)
STORM-269 FIXED Added strings for missing land types in strings.xml
If localized land type name is not found it is displayed as original string to avoid MissingString error.
Diffstat (limited to 'indra/newview/llfloaterland.cpp')
-rw-r--r--indra/newview/llfloaterland.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llfloaterland.cpp b/indra/newview/llfloaterland.cpp
index df0d22561e..e124263db5 100644
--- a/indra/newview/llfloaterland.cpp
+++ b/indra/newview/llfloaterland.cpp
@@ -565,7 +565,10 @@ void LLPanelLandGeneral::refresh()
if (regionp)
{
insert_maturity_into_textbox(mContentRating, gFloaterView->getParentFloater(this), MATURITY);
- mLandType->setText(LLTrans::getString(regionp->getSimProductName()));
+
+ std::string land_type;
+ bool is_land_type_localized = LLTrans::findString(land_type, regionp->getSimProductName());
+ mLandType->setText(is_land_type_localized ? land_type : regionp->getSimProductName());
}
// estate owner/manager cannot edit other parts of the parcel