summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorygallery.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-03-24 13:58:29 +0200
committerMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-03-24 13:58:29 +0200
commit3605d3164d83b966c5c4a330713092d05e8e5698 (patch)
treecd823bafebb92d39f57673385154e1b7172b43ef /indra/newview/llinventorygallery.cpp
parentd733ee60ea1d7cd7a9259c188b7b942a41d24460 (diff)
SL-19379 WIP show localized folder names in Gallery
Diffstat (limited to 'indra/newview/llinventorygallery.cpp')
-rw-r--r--indra/newview/llinventorygallery.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/indra/newview/llinventorygallery.cpp b/indra/newview/llinventorygallery.cpp
index c2594c1b87..2624640bb4 100644
--- a/indra/newview/llinventorygallery.cpp
+++ b/indra/newview/llinventorygallery.cpp
@@ -586,14 +586,19 @@ void LLInventoryGallery::updateAddedItem(LLUUID item_id)
return;
}
+ std::string name = obj->getName();
LLUUID thumbnail_id = obj->getThumbnailUUID();;
- if ((LLAssetType::AT_CATEGORY == obj->getType()) && thumbnail_id.isNull())
+ if (LLAssetType::AT_CATEGORY == obj->getType())
{
- thumbnail_id = getOutfitImageID(item_id);
+ name = get_localized_folder_name(item_id);
+ if(thumbnail_id.isNull())
+ {
+ thumbnail_id = getOutfitImageID(item_id);
+ }
}
-
- LLInventoryGalleryItem* item = buildGalleryItem(obj->getName(), item_id, obj->getType(), thumbnail_id, obj->getIsLinkType());
+
+ LLInventoryGalleryItem* item = buildGalleryItem(name, item_id, obj->getType(), thumbnail_id, obj->getIsLinkType());
mItemMap.insert(LLInventoryGallery::gallery_item_map_t::value_type(item_id, item));
item->setFocusReceivedCallback(boost::bind(&LLInventoryGallery::onChangeItemSelection, this, item_id));