mirror of https://github.com/zulip/zulip.git
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:
parent
3092f509b0
commit
0ab6b99cbb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue