i18n bypass for #46.

This commit is contained in:
Alexandre Vicenzi 2016-08-08 23:54:50 -03:00
parent 2947c38fbc
commit edb7731cef
2 changed files with 10 additions and 0 deletions

0
ext/__init__.py Normal file
View file

10
ext/i18n_bypass.py Normal file
View file

@ -0,0 +1,10 @@
import jinja2.ext
class ByPassTrans(jinja2.ext.InternationalizationExtension):
def __init__(self, environment):
super(ByPassTrans, self).__init__(environment)
self._install_null()
i18n = ByPassTrans