diff options
author | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-06-17 21:01:02 +0900 |
---|---|---|
committer | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-06-17 21:01:02 +0900 |
commit | 9b2169e95b5ec2fb8cbc0c745a92da37c70841f2 (patch) | |
tree | 824a3a55bdbf6047d568c8e52f5d91129869ae30 /Mailman | |
parent | b885614b0c7b14040be7919c98636b00ad4973ce (diff) | |
parent | 3e3819ce7fa318f5e60b2f04ae94b48698ab73a5 (diff) | |
download | mailman2-9b2169e95b5ec2fb8cbc0c745a92da37c70841f2.tar.gz mailman2-9b2169e95b5ec2fb8cbc0c745a92da37c70841f2.tar.xz mailman2-9b2169e95b5ec2fb8cbc0c745a92da37c70841f2.zip |
merge lp:mailman 2.1 up to rev 1775 (to comform diff before proposing merge)
Diffstat (limited to 'Mailman')
-rwxr-xr-x | Mailman/MailList.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py index e8a6bbf0..3e5a6232 100755 --- a/Mailman/MailList.py +++ b/Mailman/MailList.py @@ -1059,8 +1059,14 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin, syslog('subscribe', '%s: new%s %s, %s', self.internal_name(), kind, formataddr((name, email)), whence) if ack: - self.SendSubscribeAck(email, self.getMemberPassword(email), - digest, text) + lang = self.preferred_language + otrans = i18n.get_translation() + i18n.set_language(lang) + try: + self.SendSubscribeAck(email, self.getMemberPassword(email), + digest, text) + finally: + i18n.set_translation(otrans) if admin_notif: lang = self.preferred_language otrans = i18n.get_translation() |