Added jsutils, and added bit support for gettext int
This commit is contained in:
parent
7f2a54314b
commit
a3cc015c34
4 changed files with 12 additions and 2 deletions
|
|
@ -18,6 +18,10 @@ from paramecio2.libraries.i18n import I18n
|
|||
from paramecio2.libraries.urls import make_url, make_media_url, add_get_parameters
|
||||
from paramecio2.libraries.formsutils import csrf_token
|
||||
|
||||
def _(text):
|
||||
|
||||
return gettext.gettext(text)
|
||||
|
||||
def env_theme(module, cache_enabled=True, cache_impl='', cache_args={}, module_directory="./tmp/modules"):
|
||||
"""Function for create an environment for mako templates
|
||||
|
||||
|
|
@ -90,8 +94,6 @@ class PTemplate:
|
|||
|
||||
self.add_filter(I18n.lang)
|
||||
|
||||
_=gettext.gettext
|
||||
|
||||
self.add_filter(_)
|
||||
|
||||
#self.add_filter(make_url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue