Skip to content
Snippets Groups Projects
Commit d7f5afdc authored by Merov Linden's avatar Merov Linden
Browse files

ACME-1312 : Show the filter name without the Missing string prefix for filters...

ACME-1312 : Show the filter name without the Missing string prefix for filters that are not localized
parent 36c17758
No related branches found
No related tags found
No related merge requests found
...@@ -74,10 +74,14 @@ void LLImageFiltersManager::loadFiltersFromDir(const std::string& dir) ...@@ -74,10 +74,14 @@ void LLImageFiltersManager::loadFiltersFromDir(const std::string& dir)
} }
// Get the ".xml" out of the file name to get the filter name. That's the one known in strings.xml // Get the ".xml" out of the file name to get the filter name. That's the one known in strings.xml
std::string filter_name = file_name.substr(0,file_name.length()-4); std::string filter_name_untranslated = file_name.substr(0,file_name.length()-4);
// Get the localized name for the filter // Get the localized name for the filter
filter_name = LLTrans::getString(filter_name); std::string filter_name_translated;
bool translated = LLTrans::findString(filter_name_translated, filter_name_untranslated);
std::string filter_name = (translated ? filter_name_translated: filter_name_untranslated);
// Store the filter in the list with its associated file name
mFiltersList[filter_name] = file_name; mFiltersList[filter_name] = file_name;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment