aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/ListAdmin.py
diff options
context:
space:
mode:
authorYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2018-06-18 06:44:53 +0900
committerYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2018-06-18 06:44:53 +0900
commit5800a4e0bbe034297cfe85a28965cf7f6af3e304 (patch)
tree4c05525b107dcdce08aee5f9a2d345f3b926edf1 /Mailman/ListAdmin.py
parent444648032c9ff3d852874896b5d44f4c5f1eda53 (diff)
parent6a069d6f6648a8a4736fdf5b8141af9368cf3456 (diff)
downloadmailman2-5800a4e0bbe034297cfe85a28965cf7f6af3e304.tar.gz
mailman2-5800a4e0bbe034297cfe85a28965cf7f6af3e304.tar.xz
mailman2-5800a4e0bbe034297cfe85a28965cf7f6af3e304.zip
merge lp:mailman/2.1 up to 1777
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