Short validation.

This commit is contained in:
Alexandre Vicenzi 2017-01-11 21:32:48 -02:00
parent eb8893064c
commit 062fa8eb3e

View file

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