From 17a8600ed2bc13b01a6443f9b9f2fa21ff1be0c6 Mon Sep 17 00:00:00 2001 From: Yasuhito FUTATSUKI at POEM Date: Sat, 16 Jun 2018 04:45:33 +0900 Subject: whence should be translated to lists language for admin notify --- Mailman/MailList.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Mailman') 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) -- cgit v1.2.3