命令参考
运行命令前,确保已经安装了 gettext 软件包,并配置好环境变量。
Before running the command, ensure that the gettext package is installed and the environment variables are properly
configured.
xgettext --files-from=py_files.txt -d tk -o tk.potmkdir zh_CN\LC_MESSAGESmsginit -l zh_CN -o zh_CN/LC_MESSAGES/tk.po -i tk.potmkdir en_US\LC_MESSAGESmsginit -l en_US -o en_US/LC_MESSAGES/tk.po -i tk.potmsgmerge -U zh_CN/LC_MESSAGES/tk.po tk.potmsgmerge -U en_US/LC_MESSAGES/tk.po tk.pot
翻译贡献指南
- 如果想要贡献支持更多语言,请在终端切换至
locale文件夹,运行命令msginit -l 语言代码 -o 语言代码/LC_MESSAGES/tk.po -i tk.pot生成 po 文件并编辑翻译。 - 如果想要贡献改进翻译结果,请直接编辑
tk.po文件内容。 - 仅需提交
tk.po文件,作者会转换格式并合并。
Translation Contribution Guide
- If you want to contribute support for more languages, please switch to the
localefolder in the terminal and run the commandmsginit -l language_code -o language_code/LC_MESSAGES/tk.po -i tk.potto generate the po file and edit the translation. - If you want to contribute to improving the translation, please directly edit the content of the
tk.pofile. - Only the
tk.pofile needs to be submitted, and the author will convert the format and merge it.