diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-03-24 13:58:29 +0200 |
---|---|---|
committer | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-03-24 13:58:29 +0200 |
commit | 3605d3164d83b966c5c4a330713092d05e8e5698 (patch) | |
tree | cd823bafebb92d39f57673385154e1b7172b43ef /indra/newview/llpanelmaininventory.cpp | |
parent | d733ee60ea1d7cd7a9259c188b7b942a41d24460 (diff) |
SL-19379 WIP show localized folder names in Gallery
Diffstat (limited to 'indra/newview/llpanelmaininventory.cpp')
-rw-r--r-- | indra/newview/llpanelmaininventory.cpp | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index 23a32df2cc..f430e44ec2 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -1995,32 +1995,7 @@ void LLPanelMainInventory::setViewMode(EViewModeType mode) std::string LLPanelMainInventory::getLocalizedRootName() { - std::string localized_root_name; - if(mSingleFolderMode) - { - const LLViewerInventoryCategory* cat = gInventory.getCategory(getCurrentSFVRoot()); - if (cat) - { - LLFolderType::EType preferred_type = cat->getPreferredType(); - - // Translation of Accessories folder in Library inventory folder - bool accessories = false; - if(getName() == "Accessories") - { - const LLUUID& parent_folder_id = cat->getParentUUID(); - accessories = (parent_folder_id == gInventory.getLibraryRootFolderID()); - } - - //"Accessories" inventory category has folder type FT_NONE. So, this folder - //can not be detected as protected with LLFolderType::lookupIsProtectedType - localized_root_name.assign(cat->getName()); - if (accessories || LLFolderType::lookupIsProtectedType(preferred_type)) - { - LLTrans::findString(localized_root_name, std::string("InvFolder ") + cat->getName(), LLSD()); - } - } - } - return localized_root_name; + return mSingleFolderMode ? get_localized_folder_name(getCurrentSFVRoot()) : ""; } LLUUID LLPanelMainInventory::getCurrentSFVRoot() |