From 63678f96adcf195da7f9cf77b592352c79e06c3a Mon Sep 17 00:00:00 2001
From: Andrew Dyukov <adyukov@productengine.com>
Date: Wed, 3 Mar 2010 16:56:29 +0200
Subject: Fixed normal bug EXT-5838 (Creating a new wearable in a localized
 viewer appends localized wearable name with English word "New")

- Moved hardcoded string to string "New" in strings.xml.

--HG--
branch : product-engine
---
 indra/newview/llwearablelist.cpp               | 2 +-
 indra/newview/skins/default/xui/en/strings.xml | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

(limited to 'indra/newview')

diff --git a/indra/newview/llwearablelist.cpp b/indra/newview/llwearablelist.cpp
index d6a9837b86..0a3a0fd60c 100644
--- a/indra/newview/llwearablelist.cpp
+++ b/indra/newview/llwearablelist.cpp
@@ -235,7 +235,7 @@ LLWearable* LLWearableList::createNewWearable( EWearableType type )
 	LLWearable *wearable = generateNewWearable();
 	wearable->setType( type );
 	
-	std::string name = "New ";
+	std::string name = LLTrans::getString("New") + " ";
 	name.append( wearable->getTypeLabel() );
 	wearable->setName( name );
 
diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml
index 2510d8b49f..358cd62575 100644
--- a/indra/newview/skins/default/xui/en/strings.xml
+++ b/indra/newview/skins/default/xui/en/strings.xml
@@ -1769,6 +1769,9 @@ Clears (deletes) the media and all params from the given face.
 	<string name="tattoo">Tattoo</string>
 	<string name="invalid">invalid</string>
 
+  <!-- Wearable List-->
+  <string name="New">New</string>
+  
 	<!-- LLGroupNotify -->
 	<!-- used in the construction of a Group Notice blue dialog box, buttons, tooltip etc. Seems to be no longer utilized by code in Viewer 2.0 -->
 	<string name="next">Next</string>
-- 
cgit v1.2.3