diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2020-11-13 14:58:14 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2020-11-13 14:58:14 +0200 |
commit | 6397badddd03f28a62b3f93b2653a2c0193114bf (patch) | |
tree | 569ac3777d935c2c89355df4a4894996c78527eb /indra/newview/llwearablelist.cpp | |
parent | 92af5af736c2d6f3ac2f3ae5539da4bdea22e2a5 (diff) |
SL-14303 Wearable type label should contain translated intead of default string
Startup has two initStrings calls, only after second one LLtrans will return properly translated calls, but we don't want 'translated' for logging, so modified logging to not use getTypeLabel.
Diffstat (limited to 'indra/newview/llwearablelist.cpp')
-rw-r--r-- | indra/newview/llwearablelist.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/newview/llwearablelist.cpp b/indra/newview/llwearablelist.cpp index b07905629a..00f8bace70 100644 --- a/indra/newview/llwearablelist.cpp +++ b/indra/newview/llwearablelist.cpp @@ -241,8 +241,7 @@ LLViewerWearable* LLWearableList::createNewWearable( LLWearableType::EType type, LLViewerWearable *wearable = generateNewWearable(); wearable->setType( type, avatarp ); - // LLWearableType has pre-translated getTypeLabel(), but it uses default translation - std::string name = LLTrans::getString( LLWearableType::getInstance()->getTypeDefaultNewName(wearable->getType()) ); + std::string name = LLWearableType::getInstance()->getTypeLabel(wearable->getType()); wearable->setName( name ); LLPermissions perm; |