Fix backend i18n bug.

`makemessages` escapes the `%` sign in `.po` files, but Jinja2 does
not unescape it while replacing the tranlation strings. In Jinja2,
there is an updated implementation of gettext available called
new-style gettext which handles escaping better; this commit switches
to using that.

Fixes #906.
This commit is contained in:
Umair Khan 2016-06-06 17:30:56 +05:00 committed by Tim Abbott
parent 3092f509b0
commit 0ab6b99cbb
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def environment(**options):
'minified_js': minified_js,
})
env.install_gettext_translations(translation)
env.install_gettext_translations(translation, True)
env.filters['slugify'] = slugify
env.filters['pluralize'] = pluralize