[UI] Fix sorting in ui/util/lang.py.get_languages()

This commit is contained in:
bendikro 2016-05-09 19:34:13 +02:00 committed by Calum Lind
parent 1e183a3258
commit 82fd5e6e8a
1 changed files with 3 additions and 1 deletions

View File

@ -44,11 +44,13 @@ def get_languages():
break
lang = []
for i, lang_code in enumerate(sorted(lang_dirs)):
for i, lang_code in enumerate(lang_dirs):
name = "%s (Language name missing)" % lang_code
if lang_code in languages.LANGUAGES:
name = languages.LANGUAGES[lang_code]
lang.append([lang_code, name])
lang = sorted(lang, key=lambda l: l[1])
return lang