summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-09-27 22:13:40 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-09-27 22:13:40 +0300
commite3b869e6f12a9d285ca3db4a2e7f4f0fa1ff8b26 (patch)
tree628b16dafa9ac82e2055d63dec7acbcc7ee3f5d2 /indra/newview
parentf30cc7b5bb79aae6f012f04f54b461fdb7ee3f64 (diff)
SL-16087 [D545] New clothes do not have the word 'New' in their names
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llwearablelist.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llwearablelist.cpp b/indra/newview/llwearablelist.cpp
index 00f8bace70..de01fbb73d 100644
--- a/indra/newview/llwearablelist.cpp
+++ b/indra/newview/llwearablelist.cpp
@@ -241,7 +241,8 @@ LLViewerWearable* LLWearableList::createNewWearable( LLWearableType::EType type,
LLViewerWearable *wearable = generateNewWearable();
wearable->setType( type, avatarp );
- std::string name = LLWearableType::getInstance()->getTypeLabel(wearable->getType());
+ // LLWearableType has pre-translated getTypeLabel(), but it returns 'name', not 'New Name'.
+ std::string name = LLTrans::getString( LLWearableType::getInstance()->getTypeDefaultNewName(wearable->getType()) );
wearable->setName( name );
LLPermissions perm;