fix broken language sorting (Issue #106)

needs some more love to e.g. have "Österreich" at the
correct sorting position (not that for Austria) but works for now
site-osm-baustelle
Hartmut Holzgraefe 2023-01-16 23:59:50 +01:00
rodzic f704b6c264
commit 1afc0f6f25
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -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.