diff options
| author | Barry Warsaw | 2009-11-15 18:04:04 -0600 |
|---|---|---|
| committer | Barry Warsaw | 2009-11-15 18:04:04 -0600 |
| commit | 759edbf3f4207a0d5654911cfa38150d2e7220b3 (patch) | |
| tree | bf61098b39df4544ce140dc7551fa9fb71fd386b /src/mailman/app/notifications.py | |
| parent | e9c4ba828cea939e665cc91f46bbded8fcb887f0 (diff) | |
| download | mailman-759edbf3f4207a0d5654911cfa38150d2e7220b3.tar.gz mailman-759edbf3f4207a0d5654911cfa38150d2e7220b3.tar.zst mailman-759edbf3f4207a0d5654911cfa38150d2e7220b3.zip | |
Diffstat (limited to 'src/mailman/app/notifications.py')
| -rw-r--r-- | src/mailman/app/notifications.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mailman/app/notifications.py b/src/mailman/app/notifications.py index ac57a2154..bb72e8bc4 100644 --- a/src/mailman/app/notifications.py +++ b/src/mailman/app/notifications.py @@ -31,15 +31,12 @@ from email.utils import formataddr from lazr.config import as_boolean from mailman import Utils -from mailman import i18n from mailman.config import config +from mailman.core.i18n import _ from mailman.email.message import OwnerNotification, UserNotification from mailman.interfaces.member import DeliveryMode -_ = i18n._ - - def send_welcome_message(mlist, address, language, delivery_mode, text=''): """Send a welcome message to a subscriber. @@ -124,7 +121,7 @@ def send_admin_subscription_notice(mlist, address, full_name, language): :param language: the language of the address's realname :type language: string """ - with i18n.using_language(mlist.preferred_language.code): + with _.using(mlist.preferred_language.code): subject = _('$mlist.real_name subscription notification') full_name = full_name.encode(language.charset, 'replace') text = Utils.maketext( |
