diff options
author | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-06-16 02:46:52 +0900 |
---|---|---|
committer | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-06-16 02:46:52 +0900 |
commit | f8d6bcc2c18e6a3d857dd99be24084c6488590c4 (patch) | |
tree | 2c3883ecc9a28f013afaedc6321bbac993363038 /Mailman/Cgi/admin.py | |
parent | 719ba7e2b6c0da9caf2506b95b192ea51559f6ba (diff) | |
download | mailman2-f8d6bcc2c18e6a3d857dd99be24084c6488590c4.tar.gz mailman2-f8d6bcc2c18e6a3d857dd99be24084c6488590c4.tar.xz mailman2-f8d6bcc2c18e6a3d857dd99be24084c6488590c4.zip |
enhance i18n in admin(un)?subscribeack messages
Diffstat (limited to 'Mailman/Cgi/admin.py')
-rw-r--r-- | Mailman/Cgi/admin.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Mailman/Cgi/admin.py b/Mailman/Cgi/admin.py index 174cf34f..984904a7 100644 --- a/Mailman/Cgi/admin.py +++ b/Mailman/Cgi/admin.py @@ -47,6 +47,7 @@ from Mailman.CSRFcheck import csrf_check # Set up i18n _ = i18n._ i18n.set_language(mm_cfg.DEFAULT_SERVER_LANGUAGE) +D_ = i18n.D_ NL = '\n' OPTCOLUMNS = 11 @@ -1484,7 +1485,7 @@ def change_options(mlist, category, subcat, cgidata, doc): else: mlist.ApprovedAddMember(userdesc, send_welcome_msg, send_admin_notif, invitation, - whence='admin mass sub') + whence=D_('admin mass sub')) except Errors.MMAlreadyAMember: subscribe_errors.append((safeentry, _('Already a member'))) except Errors.MMBadEmailError: @@ -1538,7 +1539,7 @@ def change_options(mlist, category, subcat, cgidata, doc): for addr in names: try: mlist.ApprovedDeleteMember( - addr, whence='admin mass unsub', + addr, whence=D_('admin mass unsub'), admin_notif=send_unsub_notifications, userack=userack) unsubscribe_success.append(Utils.websafe(addr)) @@ -1645,7 +1646,8 @@ def change_options(mlist, category, subcat, cgidata, doc): quser = urllib.quote(user) if cgidata.has_key('%s_unsub' % quser): try: - mlist.ApprovedDeleteMember(user, whence='member mgt page') + mlist.ApprovedDeleteMember(user, + whence=D_('member mgt page')) removes.append(user) except Errors.NotAMemberError: errors.append((user, _('Not subscribed'))) |