Skip to content

Commit

Permalink
fix:[#329] Don't translate languages
Browse files Browse the repository at this point in the history
- populate language list with untranslated language names
  • Loading branch information
jardon authored and kbdharun committed Oct 18, 2024
1 parent 3289c4c commit d055de2
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, 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(
Expand Down

0 comments on commit d055de2

Please sign in to comment.