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/Utils.py | |
| parent | e9c4ba828cea939e665cc91f46bbded8fcb887f0 (diff) | |
| download | mailman-759edbf3f4207a0d5654911cfa38150d2e7220b3.tar.gz mailman-759edbf3f4207a0d5654911cfa38150d2e7220b3.tar.zst mailman-759edbf3f4207a0d5654911cfa38150d2e7220b3.zip | |
Diffstat (limited to 'src/mailman/Utils.py')
| -rw-r--r-- | src/mailman/Utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/Utils.py b/src/mailman/Utils.py index 7f2fd2a8f..bde703cf4 100644 --- a/src/mailman/Utils.py +++ b/src/mailman/Utils.py @@ -50,6 +50,7 @@ import mailman.templates from mailman import passwords from mailman.config import config from mailman.core import errors +from mailman.core.i18n import _ from mailman.utilities.string import expand @@ -398,10 +399,9 @@ def findtext(templatefile, raw_dict=None, raw=False, lang=None, mlist=None): # We never found the template. BAD! raise IOError(errno.ENOENT, 'No template file found', templatefile) else: - from mailman.i18n import get_translation # XXX BROKEN HACK data = fp.read()[:-1] - template = get_translation().ugettext(data) + template = _(data) fp.close() else: template = fp.read() |
