Merge pull request #75 from ncharlot/master

Fixed i18n extension test (#74)
This commit is contained in:
Alexandre Vicenzi 2017-01-11 21:04:23 -02:00 committed by GitHub
commit eb8893064c
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{% if 'jinja2.ext.i18n' not in JINJA_EXTENSIONS %}
{% if JINJA_ENVIRONMENT is defined and 'jinja2.ext.i18n' not in JINJA_ENVIRONMENT['extensions'] or JINJA_ENVIRONMENT is not defined and 'jinja2.ext.i18n' not in JINJA_EXTENSIONS %}
{% macro _(msg) %}
{{ msg % kwargs }}
{% endmacro %}