由于poedit打开po文件时,无法识别译文使用的何种编码,因此需要在po文件头部加上以下代码:
msgid "" msgstr "" "Plural-Forms: nplurals=1; plural=0; " "Project-Id-Version: " "POT-Creation-Date: " "PO-Revision-Date: " "Last-Translator: " "Language-Team: " "MIME-Version: 1.0 " "Content-Type: text/plain; charset=UTF-8 " "Content-Transfer-Encoding: 8bit " "Language: zh_CN " "X-Generator: Poedit 1.7.5 " "X-Poedit-SourceCharset: UTF-8 "