From ad73544e7ec5d18aaa0a3671961f8b78db2380ee Mon Sep 17 00:00:00 2001 From: JoeanAmier Date: Sun, 15 Dec 2024 11:15:02 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=9B=B4=E6=96=B0=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E7=BF=BB=E8=AF=91=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locale/README.md | 10 +++++++++- locale/en_US/LC_MESSAGES/xhs.mo | Bin 12240 -> 12475 bytes locale/en_US/LC_MESSAGES/xhs.po | 8 +++++++- locale/po_to_mo.py | 2 +- locale/zh_CN/LC_MESSAGES/xhs.mo | Bin 1934 -> 2177 bytes locale/zh_CN/LC_MESSAGES/xhs.po | 6 ++++++ 6 files changed, 23 insertions(+), 3 deletions(-) diff --git a/locale/README.md b/locale/README.md index 4d8ddc2..1f7cbba 100644 --- a/locale/README.md +++ b/locale/README.md @@ -1,5 +1,13 @@ -# 贡献指南 +# 翻译贡献指南 * 如果想要贡献支持更多语言,请参考 `zh_CN` 与 `en_US` 的文件夹层级结构,复制 `locale/zh_CN/LC_MESSAGES/xhs.po` 文件并编辑翻译。 * 如果想要贡献改进翻译结果,请直接编辑 `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. diff --git a/locale/en_US/LC_MESSAGES/xhs.mo b/locale/en_US/LC_MESSAGES/xhs.mo index 3b7c05e498be36d573d4b6657b0012244bbe349f..fb15d99d8c2b921c43f788fb7b30b2ae31b71aef 100644 GIT binary patch delta 1062 zcmZwFO-NKx6u|Klfte6$nWcTb(n`}ez8OZdM@W`aSz6*pxT*0q^PHZ{yod8q3dN&E zwF)UAkTyY5i#AG&ga~rs&cL0uD`?T8MMb!9q5ZEj)Fv3_ckj7#&$;K`S&F{3W*Rs9 zHJe1tN|8e%a&4CgAGym{FHT`Ke#gVOWw*#4)G>ga_yEUn2&F2&ZecOgJD9@zsPg>A zeOStblA>3OzmceefI%RGdvO{M;5;71FL(^MQk@(U#+`Tx>oAVn@gXiz`587dAFa** z{w1mg=aE$MwGdyg_49!$+EWR_$X+>z$1#Sg&{J%~S**byID{2P@&$6JI-0;BzQBw4 z5hGYj7Yt7K0%t4 zMLdlw1y3~PpYk@U1}3lwXK_Eyp*q+ymP>`mHwH5VROvJQh~eWDE@}7G7aE7S%bkz4ZhAGf;=*LE! zLw!*gTQGv`l^Bj=2uo25T0!mT0Bi9QyYLO$vAIZuAqJB+c8E5NXrPY86Y54Q?e=3U z`fvv|{*0q&qg^X5pq|tUdhiGt^1{@L38f+x*n?W&!oORn4VyCrrg~BgmGNIViJC!-nURq1KN>Zr3?8)hD@?x$T5?4 z`ha@Wv6W_pKGed7Q4>s~e%lkIW_d<0Ch$k9y{P}fI%)$4Xu$~P;4Nxlub3=$k#81Z n0@iBtXs@gHJ(i@+7)Ob\n" +"Language-Team: English (US) \n" +"MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" -"Language: en_GB\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: en_US\n" msgid "免责声明\n" msgstr "Disclaimer about XHS-Downloader:\n" diff --git a/locale/po_to_mo.py b/locale/po_to_mo.py index 0efc9f2..729e1f8 100644 --- a/locale/po_to_mo.py +++ b/locale/po_to_mo.py @@ -19,7 +19,7 @@ def generate_map(files: list[Path]): def generate_mo(maps: list[tuple[Path, Path]]): 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)) diff --git a/locale/zh_CN/LC_MESSAGES/xhs.mo b/locale/zh_CN/LC_MESSAGES/xhs.mo index cabca77bb6aa4d9a6f9a30308d24932ab8dc1ec9..cbf76c91396eb4d4addbbbef58120c05cd9e92f1 100644 GIT binary patch delta 276 zcmZwB%}N6?6o%n+qcRJ{D=-_OQZpn&g%U)RwqV6#v4glPapuezNzRc>>d#8txDmu& ziWleJDuNr=AJ518w(-3AzPsLOF*ak2eXcO}+FI!Cr%9k2D54mZ;sQcr2{pewo{9n8 zqa#y7;91&DCTHRt?(Fw21}1{$nasLEWkT(7rL>eC*^@FkHBA(GFxWT~DQJE|VDQM> z<y$VFdhbsUV0U7F1fSHSb;7`0=u~`UO`8S-AiJ delta 33 ncmZn^?Bk!H!)L+3zz`3_U)dNKW-v^&Qk`tXsIj?\n" +"Language-Team: Chinese (Simplified) \n" +"MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" "Language: zh_CN\n" msgid "免责声明\n"