SN-0286 已核对来源,附原文与上下文。
我更新了 SVN,加入了翻译支持。可翻译的字符串全部用 _("") 包裹,所有平台都使用 UTF-8。
I updated the SVN with changes to support translation. Translatable strings are all enclosed in _(""), and we're using UTF-8 on all platforms.
程序运行时,会在 EXE 所在目录找文件:locale\
When the program runs, it looks in the directory of the EXE for the file: locale\
在 Linux 上,它还会找:
On Linux, it also looks for:
/usr/share/locale/
/usr/share/locale/
/usr/local/share/locale/
/usr/local/share/locale/
(Linux 上还有其他应该查找的标准位置吗?)
(are there other standard places it should look on linux?)
这里是用 poedit 快速制作 .po 和 .mo 文件的步骤:
Here's a quick walkthrough using poedit to make a .po and .mo file:
翻译完成后,同时提交 bitcoin.po(可编辑的目录文件)和 bitcoin.mo(程序使用的编译后数据)。
When you're done translating, commit both bitcoin.po (the editable catalog file) and bitcoin.mo (compiled data used by the program).