summaryrefslogtreecommitdiff
path: root/src/mailman/commands/cli_lists.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-11-15 18:04:04 -0600
committerBarry Warsaw2009-11-15 18:04:04 -0600
commit759edbf3f4207a0d5654911cfa38150d2e7220b3 (patch)
treebf61098b39df4544ce140dc7551fa9fb71fd386b /src/mailman/commands/cli_lists.py
parente9c4ba828cea939e665cc91f46bbded8fcb887f0 (diff)
downloadmailman-759edbf3f4207a0d5654911cfa38150d2e7220b3.tar.gz
mailman-759edbf3f4207a0d5654911cfa38150d2e7220b3.tar.zst
mailman-759edbf3f4207a0d5654911cfa38150d2e7220b3.zip
Diffstat (limited to 'src/mailman/commands/cli_lists.py')
-rw-r--r--src/mailman/commands/cli_lists.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/commands/cli_lists.py b/src/mailman/commands/cli_lists.py
index 212dba8af..d5686eca5 100644
--- a/src/mailman/commands/cli_lists.py
+++ b/src/mailman/commands/cli_lists.py
@@ -35,8 +35,8 @@ from mailman.app.lifecycle import create_list, remove_list
from mailman.config import config
from mailman.core.constants import system_preferences
from mailman.core.errors import InvalidEmailAddress
+from mailman.core.i18n import _
from mailman.email.message import UserNotification
-from mailman.i18n import _, using_language
from mailman.interfaces.command import ICLISubCommand
from mailman.interfaces.domain import (
BadDomainSpecificationError, IDomainManager)
@@ -210,7 +210,7 @@ class Create:
# Set the I18N language to the list's preferred language so the
# header will match the template language. Stashing and restoring
# the old translation context is just (healthy? :) paranoia.
- with using_language(mlist.preferred_language.code):
+ with _.using(mlist.preferred_language.code):
msg = UserNotification(
args.owners, mlist.no_reply_address,
_('Your new mailing list: $fqdn_listname'),