Fixes in default lang

This commit is contained in:
absurdo 2023-12-19 00:13:23 +01:00
parent 9cd3ada7b4
commit 3596838864
6 changed files with 35 additions and 21 deletions

View file

@ -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")
"""