aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
authorYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2018-06-16 04:45:33 +0900
committerYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2018-06-16 04:45:33 +0900
commit17a8600ed2bc13b01a6443f9b9f2fa21ff1be0c6 (patch)
tree480f2f0a037e5a0de2a969c88cdc99e141d6ffd4 /Mailman
parentf8d6bcc2c18e6a3d857dd99be24084c6488590c4 (diff)
downloadmailman2-17a8600ed2bc13b01a6443f9b9f2fa21ff1be0c6.tar.gz
mailman2-17a8600ed2bc13b01a6443f9b9f2fa21ff1be0c6.tar.xz
mailman2-17a8600ed2bc13b01a6443f9b9f2fa21ff1be0c6.zip
whence should be translated to lists language for admin notify
Diffstat (limited to 'Mailman')
-rwxr-xr-xMailman/MailList.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py
index 72b50a11..03af588d 100755
--- a/Mailman/MailList.py
+++ b/Mailman/MailList.py
@@ -1065,6 +1065,7 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin,
otrans = i18n.get_translation()
i18n.set_language(lang)
try:
+ whence = "" if whence is None else "(" + _(whence) + ")"
realname = self.real_name
subject = _('%(realname)s subscription notification')
finally:
@@ -1075,7 +1076,7 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin,
"adminsubscribeack.txt",
{"listname" : realname,
"member" : formataddr((name, email)),
- "whence" : "" if whence is None else "(" + _(whence) + ")"
+ "whence" : whence
}, mlist=self)
msg = Message.OwnerNotification(self, subject, text)
msg.send(self)