i18n bypass for #46.
This commit is contained in:
parent
2947c38fbc
commit
edb7731cef
2 changed files with 10 additions and 0 deletions
0
ext/__init__.py
Normal file
0
ext/__init__.py
Normal file
10
ext/i18n_bypass.py
Normal file
10
ext/i18n_bypass.py
Normal 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
|
Loading…
Reference in a new issue