Fixes in default lang
This commit is contained in:
parent
9cd3ada7b4
commit
3596838864
6 changed files with 35 additions and 21 deletions
|
|
@ -2,6 +2,11 @@
|
|||
from settings import config
|
||||
from paramecio2.libraries.mtemplates import PTemplate, env_theme
|
||||
from paramecio2.modules.welcome import welcome_app
|
||||
from paramecio2.libraries.i18n import PGetText
|
||||
|
||||
pgettext=PGetText(__file__)
|
||||
|
||||
_=pgettext.gettext
|
||||
|
||||
env=env_theme(__file__)
|
||||
|
||||
|
|
@ -10,7 +15,7 @@ t=PTemplate(env)
|
|||
@welcome_app.route('/welcome')
|
||||
def home():
|
||||
|
||||
return t.load_template('welcome.phtml', title="Welcome", content='Welcome to the real world')
|
||||
return t.load_template('welcome.phtml', title=_("Welcome"), content=_('Welcome to the real world'))
|
||||
|
||||
#return render_template('welcome.html', title="Welcome")
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue