From 1afc0f6f25463ccf35c099e6b6eb39444ef8bf39 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Mon, 16 Jan 2023 23:59:50 +0100 Subject: [PATCH] fix broken language sorting (Issue #106) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit needs some more love to e.g. have "Österreich" at the correct sorting position (not that for Austria) but works for now --- www/settings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/settings.py b/www/settings.py index 09e8df8c..c1d8f9cc 100644 --- a/www/settings.py +++ b/www/settings.py @@ -311,8 +311,9 @@ MAP_LANGUAGES = { # "C": _(u"No localization"), } -MAP_LANGUAGES_LIST= sorted(MAP_LANGUAGES.items(), key=lambda p: p[1]) -MAP_LANGUAGES_LIST.append(("C", _(u"No localization"))) +MAP_LANGUAGES_LIST= list(MAP_LANGUAGES.items()) +#MAP_LANGUAGES_LIST= sorted(MAP_LANGUAGES.items(), key=lambda p: p[1]) # See issue #106 +#MAP_LANGUAGES_LIST.append(("C", _(u"No localization"))) # Job page refresh frequency, in seconds, for when the job is waiting in queue # and when the job is currently being rendered.