gettext – Flask-Babel如何在Jinja模板文件中使用翻译

gettext – Flask-Babel如何在Jinja模板文件中使用翻译

在我的Flask应用程序中,在main.py文件中,我定义了: from flaskext.babel import gettext….def somefun(): return render_template(some.html, messages=messages) 在模板文件some.html中,我用过: input type=text name=keywords

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部