diff options
author | Mark Sapiro <mark@msapiro.net> | 2018-06-16 09:39:45 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2018-06-16 09:39:45 -0700 |
commit | 3e3819ce7fa318f5e60b2f04ae94b48698ab73a5 (patch) | |
tree | af21f7876eaf02596a2b1a1559334abef96e10cc | |
parent | dd09906adb9316b494cdef6a6ed22daf29a2eeb5 (diff) | |
download | mailman2-3e3819ce7fa318f5e60b2f04ae94b48698ab73a5.tar.gz mailman2-3e3819ce7fa318f5e60b2f04ae94b48698ab73a5.tar.xz mailman2-3e3819ce7fa318f5e60b2f04ae94b48698ab73a5.zip |
Preserve translation accross a call to SendSubscribeAck().
-rwxr-xr-x | Mailman/MailList.py | 10 | ||||
-rw-r--r-- | NEWS | 15 |
2 files changed, 17 insertions, 8 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py index cc1be3b5..abc46abd 100755 --- a/Mailman/MailList.py +++ b/Mailman/MailList.py @@ -1058,8 +1058,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() @@ -85,7 +85,10 @@ Here is a history of user visible changes to Mailman. required. (LP: #1769374) - Quoting in the mailman-config command has been changed from double to - single quotes to allow double-quoted parameters. (LP:1774986) + single quotes to allow double-quoted parameters. (LP: #1774986) + + - Approving a held subscription for a user with a 'different' preferred + language no longer corrupts the results page. (LP: #1777222) Miscellaneous @@ -162,7 +165,7 @@ Here is a history of user visible changes to Mailman. i18n - The Russian translation has been updated by Sergey Matveev. - (LP:#1708016) + (LP: #1708016) Bug fixes and other patches @@ -235,7 +238,7 @@ Here is a history of user visible changes to Mailman. Bug fixes and other patches - The list-owner@virtual.domain addresses are now added to virtual-mailman - as they are exposed in 'list created' emails. (LP: 1694384) + as they are exposed in 'list created' emails. (LP: #1694384) - The 'list run by' addresses in web page footers are now just the list-owner address. (LP: #1694384) @@ -810,7 +813,7 @@ Here is a history of user visible changes to Mailman. - Fixed a bug in bin/rmlist that would throw an exception or just fail to remove held message files for a list with regexp special characters in - its name. (LP:#1414864) + its name. (LP: #1414864) - When applying DMARC mitigations, CookHeaders now adds the original From: to Cc: rather than Reply-To: in some cases to make MUA 'reply' and @@ -959,10 +962,10 @@ Here is a history of user visible changes to Mailman. names that look like email addresses. (LP: #1304511) - Added the list name to the vette log "held message approved" entry. - (LP: 1295875) + (LP: #1295875) - Added the CGI module name to various "No such list" error log entries. - (LP: 1295875) + (LP: #1295875) - Modified contrib/mmdsr to report module name if present in "No such list error log entries. |