appDisplay: Look up directory- instead of category translations
Translations are provided by .directory files, so trying to look up a category name without the suffix will always fail. Commit343b3351f1
tried to fix this previously by changing the saved keys, but that broke existing translatable folders. Appending the .directory suffix for the lookup instead fixes the issue without regressing non-custom folders. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2623 (cherry picked from commit3fac0632a8
)
This commit is contained in:
parent
156e05fe90
commit
35a3320851
@ -114,7 +114,8 @@ function _findBestFolderName(apps) {
|
|||||||
}, commonCategories);
|
}, commonCategories);
|
||||||
|
|
||||||
for (let category of commonCategories) {
|
for (let category of commonCategories) {
|
||||||
let translated = Shell.util_get_translated_folder_name(category);
|
const directory = '%s.directory'.format(category);
|
||||||
|
const translated = Shell.util_get_translated_folder_name(directory);
|
||||||
if (translated !== null)
|
if (translated !== null)
|
||||||
return translated;
|
return translated;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user