From 194a8d45b5d8871458b5f0592050e288727c74bc Mon Sep 17 00:00:00 2001 From: Andrew Dyukov Date: Wed, 3 Mar 2010 19:00:41 +0200 Subject: Changed fix for normal bug EXT-5838 (Creating a new wearable in a localized viewer appends localized wearable name with English word "New") to make string more flexible- now position of item name may be changed in xml. - Now string for localizations is "NewWearable" in strings.xml. --HG-- branch : product-engine --- indra/newview/llwearablelist.cpp | 5 +++-- indra/newview/skins/default/xui/en/strings.xml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/llwearablelist.cpp b/indra/newview/llwearablelist.cpp index 0a3a0fd60c..b2de31218b 100644 --- a/indra/newview/llwearablelist.cpp +++ b/indra/newview/llwearablelist.cpp @@ -235,8 +235,9 @@ LLWearable* LLWearableList::createNewWearable( EWearableType type ) LLWearable *wearable = generateNewWearable(); wearable->setType( type ); - std::string name = LLTrans::getString("New") + " "; - name.append( wearable->getTypeLabel() ); + LLSD item_name = LLSD().with("[WEARABLE_ITEM]", wearable->getTypeLabel()); + std::string name = LLTrans::getString("NewWearable"); + LLStringUtil::format(name, item_name); wearable->setName( name ); LLPermissions perm; diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml index 358cd62575..59c54f0cad 100644 --- a/indra/newview/skins/default/xui/en/strings.xml +++ b/indra/newview/skins/default/xui/en/strings.xml @@ -1770,7 +1770,7 @@ Clears (deletes) the media and all params from the given face. invalid - New + New [WEARABLE_ITEM] -- cgit v1.2.3