From: Christopher Allan Webber Date: Tue, 9 Aug 2011 03:32:28 +0000 (-0500) Subject: We should pass ugettext instead of gettext into the jinja template env X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=84f279649b5c3310b1a6d08cc87dce61533f7075;p=mediagoblin.git We should pass ugettext instead of gettext into the jinja template env Otherwise we might get UnicodeDecodeErrors :) --- diff --git a/mediagoblin/util.py b/mediagoblin/util.py index c9f4a0ac..d26dc6dc 100644 --- a/mediagoblin/util.py +++ b/mediagoblin/util.py @@ -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 ...