summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mailman/utilities/i18n.py6
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()