Skip to content

Commit

Permalink
OrderedDict for language order on older pythons
Browse files Browse the repository at this point in the history
  • Loading branch information
EggPool committed Mar 20, 2019
1 parent 570340b commit c56f5a5
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions wallet/modules/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,32 @@
i18n / l18n helpers
"""

LANGUAGES = {
from collections import OrderedDict

LANGUAGES = OrderedDict(
[('*' , ['Auto', 'Auto']),
("cn" , ['Chinese', 'cn']),
("cs" , ['Czech', 'cz']),
("(de" , ['German', 'de']),
("el" , ['Greek', 'gr']),
("en" , ['English', 'us']),
("es" , ['Spanish', 'es']),
("fi" , ['Finish', 'fi']),
("fr" , ['French', 'fr']),
("hu" , ['Hungarian', 'hu']),
("it" , ['Italian', 'it']),
("nl" , ['Dutch', 'nl']),
("no" , ['Norsk', 'no']),
("pl" , ['Polish', 'pl']),
("pt-br" , ['Brazilian pt', 'br']),
("ro" , ['Romanian', 'ro']),
("ru" , ['Russian', 'ru']),
("sr" , ['Serbian', 'sr']),
("tr" , ['Turkish', 'tr'])]
)

"""
{
'*' : ['Auto', 'Auto'],
"cn" : ['Chinese', 'cn'],
"cs" : ['Czech', 'cz'],
Expand All @@ -21,9 +46,9 @@
"ro": ['Romanian', 'ro'],
"ru": ['Russian', 'ru'],
"sr": ['Serbian', 'sr'],
"tr": ['Turkish', 'tr'],
}

"tr": ['Turkish', 'tr']
}
"""

# "sv": ['Swedish', 'sw'],

Expand Down

0 comments on commit c56f5a5

Please sign in to comment.