This commit is contained in:
Nicolas CHARLOT 2017-01-09 18:01:47 +01:00 committed by GitHub
parent 51e7808bde
commit 389b3f42fa

View file

@ -1,5 +1,4 @@
{% if 'jinja2.ext.i18n' not in JINJA_EXTENSIONS %}
{% macro _(msg) %}
{% 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 %}
{% endif %}