aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/ListAdmin.py
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2018-06-17 12:26:36 -0700
committerMark Sapiro <mark@msapiro.net>2018-06-17 12:26:36 -0700
commit08d25ccc7e594f16fbbfebe486b2d5a62f3ec855 (patch)
treeec4decaa3bd513129277013a7f5c194735c306ad /Mailman/ListAdmin.py
parent3e3819ce7fa318f5e60b2f04ae94b48698ab73a5 (diff)
parent9b2169e95b5ec2fb8cbc0c745a92da37c70841f2 (diff)
downloadmailman2-08d25ccc7e594f16fbbfebe486b2d5a62f3ec855.tar.gz
mailman2-08d25ccc7e594f16fbbfebe486b2d5a62f3ec855.tar.xz
mailman2-08d25ccc7e594f16fbbfebe486b2d5a62f3ec855.zip
I18n for new whence reasons in admin (un)subscribe notices.
Diffstat (limited to 'Mailman/ListAdmin.py')
-rwxr-xr-xMailman/ListAdmin.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py
index 877aa5c4..8825760a 100755
--- a/Mailman/ListAdmin.py
+++ b/Mailman/ListAdmin.py
@@ -45,6 +45,8 @@ from Mailman.Logging.Syslog import syslog
from Mailman import i18n
_ = i18n._
+def D_(s):
+ return s
# Request types requiring admin approval
IGN = 0
@@ -435,8 +437,11 @@ class ListAdmin:
# subscribe
assert value == mm_cfg.SUBSCRIBE
try:
+ _ = D_
+ whence = _('via admin approval')
+ _ = i18n._
userdesc = UserDesc(addr, fullname, password, digest, lang)
- self.ApprovedAddMember(userdesc, whence='via admin approval')
+ self.ApprovedAddMember(userdesc, whence=whence)
except Errors.MMAlreadyAMember:
# User has already been subscribed, after sending the request
pass