mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2025-12-26 04:48:05 +08:00
命令参考
运行命令前,确保已经安装了 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 xhs -o xhs.potmkdir zh_CN\LC_MESSAGESmsginit -l zh_CN -o zh_CN/LC_MESSAGES/xhs.po -i xhs.potmkdir en_US\LC_MESSAGESmsginit -l en_US -o en_US/LC_MESSAGES/xhs.po -i xhs.potmsgmerge -U zh_CN/LC_MESSAGES/xhs.po xhs.potmsgmerge -U en_US/LC_MESSAGES/xhs.po xhs.pot
翻译贡献指南
- 如果想要贡献支持更多语言,请在终端切换至
locale文件夹,运行命令msginit -l 语言代码 -o 语言代码/LC_MESSAGES/xhs.po -i xhs.pot生成 po 文件并编辑翻译。 - 如果想要贡献改进翻译结果,请直接编辑
xhs.po文件内容。 - 仅需提交
xhs.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/xhs.po -i xhs.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
xhs.pofile. - Only the
xhs.pofile needs to be submitted, and the author will convert the format and merge it.