We should pass ugettext instead of gettext into the jinja template env

Otherwise we might get UnicodeDecodeErrors :)
This commit is contained in:
Christopher Allan Webber 2011-08-08 22:32:28 -05:00
parent df236d15c1
commit 84f279649b

View File

@ -93,7 +93,7 @@ def get_jinja_env(template_loader, locale):
extensions=['jinja2.ext.i18n', 'jinja2.ext.autoescape'])
template_env.install_gettext_callables(
mg_globals.translations.gettext,
mg_globals.translations.ugettext,
mg_globals.translations.ngettext)
# All templates will know how to ...