mo与po文件的互转

反编译 mo 文件成 po 文件

msgunfmt test.mo -o test.po

编码 po 文件为 mo 文件

msgfmt -o test.mo test.po

从mo文件转化成po文件得方法确实比较实用:lol
另外,po文件中常见得出了msgid和msgstr外还有一种msgctxt针对以NC_(“hello”, “world”)或者C_(“hello”, “world”)这种形式的翻译,这里得hello就是msgctxt,world是msgid