diff options
| author | Barry Warsaw | 2011-03-16 15:16:52 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2011-03-16 15:16:52 -0400 |
| commit | 99c83c30436c5d6e4704374a37a4ad38e0a5a0aa (patch) | |
| tree | ef32d56c3721081ea31090a3f249c9b4a01af6a0 /src/mailman/utilities/i18n.py | |
| parent | e2e7e4a3e43a1a7fcf9f909f0d0aaaeedf27f3fa (diff) | |
| download | mailman-99c83c30436c5d6e4704374a37a4ad38e0a5a0aa.tar.gz mailman-99c83c30436c5d6e4704374a37a4ad38e0a5a0aa.tar.zst mailman-99c83c30436c5d6e4704374a37a4ad38e0a5a0aa.zip | |
Diffstat (limited to 'src/mailman/utilities/i18n.py')
| -rw-r--r-- | src/mailman/utilities/i18n.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mailman/utilities/i18n.py b/src/mailman/utilities/i18n.py index f84baa7c6..afaf26bc0 100644 --- a/src/mailman/utilities/i18n.py +++ b/src/mailman/utilities/i18n.py @@ -185,7 +185,11 @@ def make(template_file, mailing_list=None, language=None, wrap=True, **kw): """ path, fp = find(template_file, mailing_list, language) try: - # XXX BROKEN HACK + # XXX Removing the trailing newline is a hack carried over from + # Mailman 2. The (stripped) template text is then passed through the + # translation catalog. This ensures that the translated text is + # unicode, and also allows for volunteers to translate the templates + # into the language catalogs. template = _(fp.read()[:-1]) finally: fp.close() |
