From e0ca936fbf7411bcc1cdd935a50c5913db6a1cb9 Mon Sep 17 00:00:00 2001
From: Paul ProductEngine <pguslisty@productengine.com>
Date: Tue, 29 Mar 2011 13:57:24 +0300
Subject: [PATCH] =?UTF-8?q?STORM-1072=20FIXED=20[TRANSLATED=20BUT=20IN=20E?=
 =?UTF-8?q?N]=20in=20"Monde"=20>=20"Profil=20du=20lieu"=20>=20"=C3=80=20pr?=
 =?UTF-8?q?opos=20des=20terrains"=20>=20"R=C3=A9glement"=20:=20"Estate=20/?=
 =?UTF-8?q?=20Full=20Region"=20is=20in=20english.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

- Linked region_type string value with translation in strings.xml. If translation for region_type string is absent set unlocalized version (not MissingString text as usual)
---
 indra/newview/llfloaterland.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/indra/newview/llfloaterland.cpp b/indra/newview/llfloaterland.cpp
index a6025661b7..7be4ebc690 100644
--- a/indra/newview/llfloaterland.cpp
+++ b/indra/newview/llfloaterland.cpp
@@ -2871,7 +2871,10 @@ void LLPanelLandCovenant::refresh()
 	LLTextBox* region_landtype = getChild<LLTextBox>("region_landtype_text");
 	if (region_landtype)
 	{
-		region_landtype->setText(region->getSimProductName());
+		std::string land_type;
+		bool is_land_type_localized = LLTrans::findString(land_type, region->getSimProductName());
+
+		region_landtype->setText(is_land_type_localized ? land_type : region->getSimProductName());
 	}
 	
 	LLTextBox* region_maturity = getChild<LLTextBox>("region_maturity_text");
-- 
GitLab