Pluginless translation.

This commit is contained in:
Alexandre Vicenzi 2016-08-11 21:05:34 -03:00
parent 549a882acb
commit 723e047add
6 changed files with 18 additions and 22 deletions

View file

@ -1,3 +1,9 @@
{% if 'jinja2.ext.i18n' not in JINJA_EXTENSIONS %}
{% macro _(msg) %}
{{ msg % kwargs }}
{% endmacro %}
{% endif %}
<!DOCTYPE html>
<html lang="{{ DEFAULT_LANG }}">
<head>