diff options
| author | bwarsaw | 2000-12-26 18:20:01 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-12-26 18:20:01 +0000 |
| commit | e5c72c764a5ddb42c1b927d89047c8b2af336043 (patch) | |
| tree | 6c109e1ce2fc99133403d9d1aa8c3efeaf450c06 /Mailman/Cgi/admindb.py | |
| parent | 369e010d18dced7e3cd25255fc06830ad7cbc56b (diff) | |
| download | mailman-e5c72c764a5ddb42c1b927d89047c8b2af336043.tar.gz mailman-e5c72c764a5ddb42c1b927d89047c8b2af336043.tar.zst mailman-e5c72c764a5ddb42c1b927d89047c8b2af336043.zip | |
jcrey's latest round of I18N changes.
Diffstat (limited to 'Mailman/Cgi/admindb.py')
| -rw-r--r-- | Mailman/Cgi/admindb.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Mailman/Cgi/admindb.py b/Mailman/Cgi/admindb.py index 44eead820..f0df63ff4 100644 --- a/Mailman/Cgi/admindb.py +++ b/Mailman/Cgi/admindb.py @@ -67,6 +67,9 @@ def main(): handle_no_list(doc, _('No such list <em>%s</em><p>') % listname) syslog('error', 'No such list "%s": %s\n' % (listname, e)) return + + os.environ['LANG'] = mlist.preferred_language + # # now we must authorize the user to view this page, and if they are, to # handle both the printing of the current outstanding requests, and the @@ -111,7 +114,8 @@ def PrintRequests(mlist, doc): return doc.AddItem(Utils.maketext( - 'admindbpreamble.html', {'listname': mlist.real_name}, raw=1)) + 'admindbpreamble.html', {'listname': mlist.real_name}, + mlist.preferred_language, raw=1)) doc.AddItem('.<p>') form = Form(mlist.GetScriptURL('admindb')) doc.AddItem(form) @@ -147,7 +151,7 @@ def PrintRequests(mlist, doc): def PrintAddMemberRequest(mlist, id, table): - time, addr, passwd, digest = mlist.GetRecord(id) + time, addr, passwd, digest, lang = mlist.GetRecord(id) table.AddRow([addr, RadioButtonArray(id, (_('Subscribe'), _('Refuse')), values=(mm_cfg.SUBSCRIBE, mm_cfg.REJECT)), |
