aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-08-08 22:32:28 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-08-08 22:32:28 -0500
commit84f279649b5c3310b1a6d08cc87dce61533f7075 (patch)
tree8243e962b590bdd42aaf18d1ece8e77e27686c60
parentdf236d15c18687986786f09f33fedddfb63d5d13 (diff)
downloadmediagoblin-84f279649b5c3310b1a6d08cc87dce61533f7075.tar.lz
mediagoblin-84f279649b5c3310b1a6d08cc87dce61533f7075.tar.xz
mediagoblin-84f279649b5c3310b1a6d08cc87dce61533f7075.zip
We should pass ugettext instead of gettext into the jinja template env
Otherwise we might get UnicodeDecodeErrors :)
-rw-r--r--mediagoblin/util.py2
1 files changed, 1 insertions, 1 deletions
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 ...