diff options
author | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-06-16 04:45:33 +0900 |
---|---|---|
committer | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-06-16 04:45:33 +0900 |
commit | 17a8600ed2bc13b01a6443f9b9f2fa21ff1be0c6 (patch) | |
tree | 480f2f0a037e5a0de2a969c88cdc99e141d6ffd4 /Mailman | |
parent | f8d6bcc2c18e6a3d857dd99be24084c6488590c4 (diff) | |
download | mailman2-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-x | Mailman/MailList.py | 3 |
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) |