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(