比特币客户端和网站翻译
原始发布页
打开来源页面查看 1 个交叉存档
使用一个二进制文件和多个 .mo 文件要容易得多。维护大量构建变体的工作太多了。一旦实现软件支持,任何人都可以贡献翻译。
wxWidgets 使用 gettext 标准。你可以使用 gettext 工具或 poedit,通过扫描源文件中的字符串并把译文编辑进 .po 文件来创建 .po 文件,然后将其编译成 .mo 文件。程序在运行时加载 .mo 文件,并替换所有字符串。向现有程序添加其他语言,只需添加 .mo 文件,无需重新编译程序。
在 Windows 上,.mo 文件应放在 EXE 所在目录的 lang 子目录中。
现在我正在处理 JSON-RPC 和命令行支持,但完成后希望接着做这个。
英文原文
展开英文原文
It's much easier to have a single binary and multiple .mo files. It's too much maintenance work to have lots of build variations. Once the software support is implemented, anyone could contribute translations.
wxWidgets uses the gettext standard. You use the gettext tools or something like poedit to create a .po file by scanning the sourcefiles for strings and editing the translations into the .po file, then compile it into a .mo file. The program loads the .mo file at runtime and reskins all the strings. Additional languages can be added to an existing program by adding .mo files without recompiling the program.
On Windows, the .mo files would go in a lang subdirectory in the directory where the EXE is located.
Right now I'm working on JSON-RPC and command line support, but when I'm finished with that I hope to do this next.