diff options
author | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-06-17 16:41:38 +0900 |
---|---|---|
committer | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-06-17 16:41:38 +0900 |
commit | b885614b0c7b14040be7919c98636b00ad4973ce (patch) | |
tree | a66c54e65ed9192736bb6b36e65d314e9da33349 | |
parent | 17a8600ed2bc13b01a6443f9b9f2fa21ff1be0c6 (diff) | |
download | mailman2-b885614b0c7b14040be7919c98636b00ad4973ce.tar.gz mailman2-b885614b0c7b14040be7919c98636b00ad4973ce.tar.xz mailman2-b885614b0c7b14040be7919c98636b00ad4973ce.zip |
add missed whence msgid in previous commit
Diffstat (limited to '')
-rwxr-xr-x | Mailman/MailList.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py index 03af588d..e8a6bbf0 100755 --- a/Mailman/MailList.py +++ b/Mailman/MailList.py @@ -72,6 +72,7 @@ from Mailman import i18n from Mailman.Logging.Syslog import syslog _ = i18n._ +D_ = i18n.D_ EMPTYSTRING = '' OR = '|' @@ -1302,7 +1303,7 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin, except ValueError: raise Errors.MMBadConfirmation, 'op-less data %s' % (rec,) if op == Pending.SUBSCRIPTION: - whence = 'via email confirmation' + whence = D_('via email confirmation') try: userdesc = data[0] # If confirmation comes from the web, context should be a @@ -1311,7 +1312,7 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin, # context is a Message and isn't relevant, so ignore it. if isinstance(context, UserDesc): userdesc += context - whence = 'via web confirmation' + whence = D_('via web confirmation') addr = userdesc.address fullname = userdesc.fullname password = userdesc.password @@ -1343,9 +1344,9 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin, addr = data[0] # Log file messages don't need to be i18n'd if isinstance(context, Message.Message): - whence = 'email confirmation' + whence = D_('email confirmation') else: - whence = 'web confirmation' + whence = D_('web confirmation') # Can raise NotAMemberError if they unsub'd via other means self.ApprovedDeleteMember(addr, whence=whence) return op, addr |