summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/create.py
diff options
context:
space:
mode:
authorbwarsaw2002-11-04 20:32:45 +0000
committerbwarsaw2002-11-04 20:32:45 +0000
commitb928b2345b7aef9d4bd06fe9f9fe3f4cf5e5223f (patch)
tree2b3ec10df6a87d89d0b4a44a0ea7f7889aef721e /Mailman/Cgi/create.py
parentfeb12e77cf1c75c9814314c97dbb62187321dd3a (diff)
downloadmailman-b928b2345b7aef9d4bd06fe9f9fe3f4cf5e5223f.tar.gz
mailman-b928b2345b7aef9d4bd06fe9f9fe3f4cf5e5223f.tar.zst
mailman-b928b2345b7aef9d4bd06fe9f9fe3f4cf5e5223f.zip
Diffstat (limited to 'Mailman/Cgi/create.py')
-rw-r--r--Mailman/Cgi/create.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/Mailman/Cgi/create.py b/Mailman/Cgi/create.py
index 984ee3fe1..be5f9c6be 100644
--- a/Mailman/Cgi/create.py
+++ b/Mailman/Cgi/create.py
@@ -357,10 +357,18 @@ def request_creation(doc, cgidata=dummy, errmsg=None):
values=(0,1))])
ftable.AddCellInfo(ftable.GetCurrentRowIndex(), 0, bgcolor=GREY)
ftable.AddCellInfo(ftable.GetCurrentRowIndex(), 1, bgcolor=GREY)
-
- # Create the table of initially supported languages
- langs = mm_cfg.LC_DESCRIPTIONS.keys()
- langs.sort()
+ # Create the table of initially supported languages, sorted on the long
+ # name of the language.
+ revmap = {}
+ for key, (name, charset) in mm_cfg.LC_DESCRIPTIONS.items():
+ revmap[_(name)] = key
+ langnames = revmap.keys()
+ langnames.sort()
+ langs = []
+ for name in langnames:
+ langs.append(revmap[name])
+ syslog('debug', 'langs: %s, langnames: %s, revmap: %s',
+ langs, langnames, revmap)
try:
langi = langs.index(mm_cfg.DEFAULT_SERVER_LANGUAGE)
except ValueError: