Skip to content
kingheaven edited this page Feb 28, 2013 · 1 revision

多语言翻译使用key=>translation的方式 翻译都写在website目录下的messages.pot文件里 所有的key都用小写, 两个单词中间用_连接 添加了新的翻译后, 运行bin/translate.sh来更新翻译后的文件

在模板中, 使用{{ _("KEY") }}来添加需要翻译的文字, 默认, 所有的text都需要翻译

Clone this wiki locally