diff options
| author | Barry Warsaw | 2007-07-16 23:55:49 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2007-07-16 23:55:49 -0400 |
| commit | b8e8aa0386c2ee0fc7e90bf22fbe8fe3f222964a (patch) | |
| tree | 5893e3908f89d8dd988c7844827d83e60ab6c532 /Mailman/Gui/Language.py | |
| parent | 327865eaf118f40063366acad9c7d97487e010d6 (diff) | |
| download | mailman-b8e8aa0386c2ee0fc7e90bf22fbe8fe3f222964a.tar.gz mailman-b8e8aa0386c2ee0fc7e90bf22fbe8fe3f222964a.tar.zst mailman-b8e8aa0386c2ee0fc7e90bf22fbe8fe3f222964a.zip | |
Diffstat (limited to 'Mailman/Gui/Language.py')
| -rw-r--r-- | Mailman/Gui/Language.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Mailman/Gui/Language.py b/Mailman/Gui/Language.py index 32029577d..bcd0ba93b 100644 --- a/Mailman/Gui/Language.py +++ b/Mailman/Gui/Language.py @@ -37,7 +37,7 @@ class Language(GUIBase): return None # Set things up for the language choices langs = mlist.language_codes - langnames = [_(Utils.GetLanguageDescr(L)) for L in langs] + langnames = [_(description) for description in config.enabled_names] try: langi = langs.index(mlist.preferred_language) except ValueError: @@ -53,12 +53,11 @@ class Language(GUIBase): except LookupError: return 0 - all = [key for key in config.LC_DESCRIPTIONS.keys() - if checkcodec(Utils.GetCharSet(key))] - all.sort() + all = sorted(code for code in config.languages.enabled_codes + if checkcodec(Utils.GetCharSet(code))) checked = [L in langs for L in all] - allnames = [_(Utils.GetLanguageDescr(L)) for L in all] - + allnames = [_(config.languages.get_language_data(code)[0]) + for code in all] return [ _('Natural language (internationalization) options.'), |
