mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2026-03-22 06:57:16 +08:00
style: 更新项目翻译文件
This commit is contained in:
@@ -1,5 +1,13 @@
|
|||||||
# 贡献指南
|
# 翻译贡献指南
|
||||||
|
|
||||||
* 如果想要贡献支持更多语言,请参考 `zh_CN` 与 `en_US` 的文件夹层级结构,复制 `locale/zh_CN/LC_MESSAGES/xhs.po` 文件并编辑翻译。
|
* 如果想要贡献支持更多语言,请参考 `zh_CN` 与 `en_US` 的文件夹层级结构,复制 `locale/zh_CN/LC_MESSAGES/xhs.po` 文件并编辑翻译。
|
||||||
* 如果想要贡献改进翻译结果,请直接编辑 `xhs.po` 文件内容。
|
* 如果想要贡献改进翻译结果,请直接编辑 `xhs.po` 文件内容。
|
||||||
* 不需要提交 `xhs.mo` 文件,提交 `xhs.po` 文件后,作者会转换格式并合并。
|
* 不需要提交 `xhs.mo` 文件,提交 `xhs.po` 文件后,作者会转换格式并合并。
|
||||||
|
|
||||||
|
# Translation Contribution Guide
|
||||||
|
|
||||||
|
* If you want to contribute by supporting more languages, please refer to the folder structure of `zh_CN` and `en_US`,
|
||||||
|
copy the `locale/zh_CN/LC_MESSAGES/xhs.po` file, and edit the translation.
|
||||||
|
* If you want to contribute by improving the translation results, please edit the content of the `xhs.po` file directly.
|
||||||
|
* There is no need to submit the `xhs.mo` file; after submitting the `xhs.po` file, the author will convert the format
|
||||||
|
and merge it.
|
||||||
|
|||||||
Binary file not shown.
@@ -1,7 +1,13 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"Project-Id-Version: XHS-Downloader 2.4\n"
|
||||||
|
"PO-Revision-Date: 2024-12-15 11:00+0800\n"
|
||||||
|
"Last-Translator: JoeanAmier <yonglelolu@foxmail.com>\n"
|
||||||
|
"Language-Team: English (US) <yonglelolu@foxmail.com>\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Language: en_GB\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Language: en_US\n"
|
||||||
|
|
||||||
msgid "免责声明\n"
|
msgid "免责声明\n"
|
||||||
msgstr "Disclaimer about XHS-Downloader:\n"
|
msgstr "Disclaimer about XHS-Downloader:\n"
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ def generate_map(files: list[Path]):
|
|||||||
|
|
||||||
def generate_mo(maps: list[tuple[Path, Path]]):
|
def generate_mo(maps: list[tuple[Path, Path]]):
|
||||||
for i, j in maps:
|
for i, j in maps:
|
||||||
command = f"msgfmt \"{i}\" -o \"{j}\""
|
command = f"msgfmt --check -o \"{j}\" \"{i}\""
|
||||||
print(run(command, shell=True, text=True))
|
print(run(command, shell=True, text=True))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -1,6 +1,12 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"Project-Id-Version: XHS-Downloader 2.4\n"
|
||||||
|
"PO-Revision-Date: 2024-12-15 11:00+0800\n"
|
||||||
|
"Last-Translator: JoeanAmier <yonglelolu@foxmail.com>\n"
|
||||||
|
"Language-Team: Chinese (Simplified) <yonglelolu@foxmail.com>\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Language: zh_CN\n"
|
"Language: zh_CN\n"
|
||||||
|
|
||||||
msgid "免责声明\n"
|
msgid "免责声明\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user