summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/options.py
diff options
context:
space:
mode:
authorbwarsaw2000-12-26 18:20:01 +0000
committerbwarsaw2000-12-26 18:20:01 +0000
commite5c72c764a5ddb42c1b927d89047c8b2af336043 (patch)
tree6c109e1ce2fc99133403d9d1aa8c3efeaf450c06 /Mailman/Cgi/options.py
parent369e010d18dced7e3cd25255fc06830ad7cbc56b (diff)
downloadmailman-e5c72c764a5ddb42c1b927d89047c8b2af336043.tar.gz
mailman-e5c72c764a5ddb42c1b927d89047c8b2af336043.tar.zst
mailman-e5c72c764a5ddb42c1b927d89047c8b2af336043.zip
Diffstat (limited to 'Mailman/Cgi/options.py')
-rw-r--r--Mailman/Cgi/options.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/Mailman/Cgi/options.py b/Mailman/Cgi/options.py
index f986389df..c23a543f3 100644
--- a/Mailman/Cgi/options.py
+++ b/Mailman/Cgi/options.py
@@ -59,6 +59,8 @@ def main():
syslog('error', 'No such list "%s": %s\n' % (listname, e))
return
+ os.environ['LANG'] = mlist.preferred_language
+
# Sanity check the user
user = Utils.LCDomain(user)
if not mlist.members.has_key(user) and \
@@ -82,8 +84,12 @@ def main():
else:
presentable_user = user
+ # user's preferred language
+ pluser = mlist.GetPreferredLanguage(user)
+ os.environ['LANG'] = pluser
+
# Do replacements
- replacements = mlist.GetStandardReplacements()
+ replacements = mlist.GetStandardReplacements(pluser)
replacements['<mm-digest-radio-button>'] = mlist.FormatOptionButton(
mm_cfg.Digests, 1, user)
replacements['<mm-undigest-radio-button>'] = mlist.FormatOptionButton(
@@ -142,5 +148,5 @@ You are subscribed to this list with the case-preserved address
else:
replacements['<mm-case-preserved-user>'] = ''
- doc.AddItem(mlist.ParseTags('options.html', replacements))
+ doc.AddItem(mlist.ParseTags('options.html', replacements, pluser))
print doc.Format()