Merge pull request #75 from ncharlot/master
Fixed i18n extension test (#74)
This commit is contained in:
commit
eb8893064c
2 changed files with 2 additions and 2 deletions
|
@ -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) %}
|
{% macro _(msg) %}
|
||||||
{{ msg % kwargs }}
|
{{ msg % kwargs }}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
|
@ -6,7 +6,7 @@ from __future__ import unicode_literals
|
||||||
PLUGIN_PATHS = ['../plugins']
|
PLUGIN_PATHS = ['../plugins']
|
||||||
PLUGINS = ['i18n_subsites']
|
PLUGINS = ['i18n_subsites']
|
||||||
|
|
||||||
JINJA_EXTENSIONS = ['jinja2.ext.i18n', 'jinja2.ext.autoescape', 'jinja2.ext.with_']
|
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n', 'jinja2.ext.autoescape', 'jinja2.ext.with_']}
|
||||||
|
|
||||||
AUTHOR = u'Test'
|
AUTHOR = u'Test'
|
||||||
SITEURL = u'http://localhost:8000'
|
SITEURL = u'http://localhost:8000'
|
||||||
|
|
Loading…
Reference in a new issue