将给程序添加多语言
tornado.locale.load_translations(os.path.join(os.path.dirname(__file__), 'translations'))
tornado.locale.set_default_locale("zh_CN")
建立zh_CN.csv
还缺少什么?
为什么模板中还是_("Topic")还是英文呢?
tornado.locale.load_translations(os.path.join(os.path.dirname(__file__), 'translations'))
tornado.locale.set_default_locale("zh_CN")
建立zh_CN.csv
还缺少什么?
为什么模板中还是_("Topic")还是英文呢?