From f839f56c10c70a24a48fabf9861edbdacdc531af Mon Sep 17 00:00:00 2001 From: Jarred Wilson Date: Mon, 30 Sep 2024 14:15:04 +0000 Subject: [PATCH] fix:[#329] Don't translate languages - populate language list with untranslated language names --- vanilla_first_setup/core/languages.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vanilla_first_setup/core/languages.py b/vanilla_first_setup/core/languages.py index 9421770e..3d8e0797 100644 --- a/vanilla_first_setup/core/languages.py +++ b/vanilla_first_setup/core/languages.py @@ -169,7 +169,8 @@ all_languages = {} for _locale in all_locale: - all_languages[_locale] = GnomeDesktop.get_language_from_locale(_locale, None) + lang = GnomeDesktop.get_language_from_locale(_locale, _locale) + all_languages[_locale] = lang if lang else GnomeDesktop.get_language_from_locale(_locale, None) all_languages = dict(sorted(all_languages.items(), key=lambda item: item[1])) current_language = "{}.{}".format(