Skip to content

Commit

Permalink
squash: account for nonetype translation name
Browse files Browse the repository at this point in the history
  • Loading branch information
jardon committed Sep 30, 2024
1 parent 4a6b865 commit c494a83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vanilla_first_setup/core/languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@
all_languages = {}

for _locale in all_locale:
all_languages[_locale] = GnomeDesktop.get_language_from_locale(_locale, _locale)
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(
Expand Down

0 comments on commit c494a83

Please sign in to comment.