首页 > flask-wtf 的输入框提示怎么设置成中文呢?

flask-wtf 的输入框提示怎么设置成中文呢?

flask-wtf的提示像下面一样怎么设置成中文呢,官网也没有看到设置方法,难道只能显示英文?求高人指点。


这是i18n的事

http://wtforms.simplecodes.com/docs/1.0.1/i18n.html


自己找到了答案,用的是flask-babel和wtforms的翻译,可以参考以下链接。
https://github.com/wtforms/wtforms/tree/master/wtforms/locale/zh/LC_MESSAGES
http://stackoverflow.com/questions/26039108/how-to-use-wtforms-po-with-flask-wtf

【热门文章】
【热门文章】