From 848d724c18d687efde432df0f5df1f9c557dbc0c Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 13 Jul 2026 18:26:41 +0800 Subject: [PATCH] =?UTF-8?q?i18n:=20=E5=90=88=E5=B9=B6=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E8=A6=86=E7=9B=96identity=E6=98=A0=E5=B0=84;=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9EDelete/Search=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- i18n/en/i18n.json | 4 +++- i18n/jp/i18n.json | 4 +++- i18n/ko/i18n.json | 4 +++- i18n/zh/.i18n.json.swp | Bin 0 -> 12288 bytes i18n/zh/i18n.json | 4 +++- scripts/merge_bricks_i18n.py | 6 +++++- 6 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 i18n/zh/.i18n.json.swp diff --git a/i18n/en/i18n.json b/i18n/en/i18n.json index c0b11d0..984a8b2 100644 --- a/i18n/en/i18n.json +++ b/i18n/en/i18n.json @@ -23,5 +23,7 @@ "Update record": "Update record", "Clone record": "Clone record", "Are you sure to delete this record?": "Are you sure to delete this record?", - "[Untitle window]": "[Untitled window]" + "[Untitle window]": "[Untitled window]", + "Delete": "Delete", + "Search": "Search" } diff --git a/i18n/jp/i18n.json b/i18n/jp/i18n.json index 5ffc97f..452c923 100644 --- a/i18n/jp/i18n.json +++ b/i18n/jp/i18n.json @@ -23,5 +23,7 @@ "Update record": "レコード更新", "Clone record": "レコード複製", "Are you sure to delete this record?": "このレコードを削除しますか?", - "[Untitle window]": "[無題ウィンドウ]" + "[Untitle window]": "[無題ウィンドウ]", + "Delete": "削除", + "Search": "検索" } diff --git a/i18n/ko/i18n.json b/i18n/ko/i18n.json index cdd95a1..ccadfd0 100644 --- a/i18n/ko/i18n.json +++ b/i18n/ko/i18n.json @@ -23,5 +23,7 @@ "Update record": "레코드 수정", "Clone record": "레코드 복제", "Are you sure to delete this record?": "이 레코드를 삭제하시겠습니까?", - "[Untitle window]": "[제목 없음]" + "[Untitle window]": "[제목 없음]", + "Delete": "삭제", + "Search": "검색" } diff --git a/i18n/zh/.i18n.json.swp b/i18n/zh/.i18n.json.swp new file mode 100644 index 0000000000000000000000000000000000000000..1608a83d674131cdef7294b587281a87cd69f024 GIT binary patch literal 12288 zcmeI2&u`R56vu~hr2G)Ql=d<#CnR7YTv9GA3LrRe0hSBm;MlXxz}nu7ZK8m}55Ynp zgasue1)_$O1p+jiw1igV=b`@q2gF~%*y|Hqxgg$njAAH=1E)yO(pR=;-uJyXpP4;@(*sA=f8VsUuzLgPwAlkGCcFO-DS}`HT~XkpL3-DguFD+}OOlu(fH+W|e1MZY}+8 zb>XX0q8SMw0VIF~kN^@u0!RP}Ac4h2z%MT$r=aC;(zbt0?@K}TJ0!RP}AOR$R z1dsp{Kmter2_OL^fCLsH0mC9>dKn=t-$L{7`~Umz|8G|k5`mt99)S8lCqZqXy`a^g z*DDBl4*DB31oA+;KtF)u<%IkP>IEGDtpUA(8ZSVTAQ!X~r0V_x!V3u?0VIF~kN^@u z0!RP}Ab~|dpsTBkP?|ebaD48U813MW<#rs-ZG*9J=%KteE3fuO4+mxS&f%Pj+%6dH zbOY)I@Zh`DVkPFoQycfFV5TdqpOrZpsmuCJ*?l{{Q47avjrxR~z5Z%uIJZG1X(_o5 zOT$&Ptn|b;&+8x^Q7Bsmq}3T!NO)^99GJ+4Y`3iJ{J+!k((UYg;4x}4n+Zep=^IBG zHE5ZeK6I`!zMP$p`bWcS=j7R{tWAbJy;0@9uKuA_H$jhai@BdL!oncKg3;!tDww*A zz~UKKJatbk_RbY>#lw%a%T#~AE~O6c{F)%C4ut=7XQSX>+QO%g zygV}$j{T7}6oXR9GX-Og-X6WTN%G35{Hq%NHW$^VbPG0jxXq8J8@Uh}4xN@0Re5

7!d%y*=Xpys$MeV@zDR;_&pA?&~ z$dN~KY%r`pk@J;!WV$ieCo6Zgb)UA{%*h1nsg`7ubiZnA-WxoYgvJ+oquIJ1+#j^s zJQ)qES6@!m^r!*n)nOf(oePsQ`_Zx9!9CLumMRqX&&ipyX?fQvy24h&@Y!nARnimW E9oH$>z5oCK literal 0 HcmV?d00001 diff --git a/i18n/zh/i18n.json b/i18n/zh/i18n.json index 85550b8..3cad0f2 100644 --- a/i18n/zh/i18n.json +++ b/i18n/zh/i18n.json @@ -23,5 +23,7 @@ "Update record": "更新记录", "Clone record": "克隆记录", "Are you sure to delete this record?": "确定删除此记录?", - "[Untitle window]": "[未命名窗口]" + "[Untitle window]": "[未命名窗口]", + "Delete": "删除", + "Search": "搜索" } diff --git a/scripts/merge_bricks_i18n.py b/scripts/merge_bricks_i18n.py index 9870f78..46e385e 100644 --- a/scripts/merge_bricks_i18n.py +++ b/scripts/merge_bricks_i18n.py @@ -28,14 +28,18 @@ def merge(bricks_i18n_dir, sage_i18n_dir): sage_msgs = json.load(f) added = 0 + updated = 0 for k, v in brick_msgs.items(): if k not in sage_msgs: sage_msgs[k] = v added += 1 + elif sage_msgs[k] == k: # identity mapping (untranslated) + sage_msgs[k] = v + updated += 1 with open(sage_path, 'w') as f: json.dump(sage_msgs, f, ensure_ascii=False, indent='\t') - print(f" {lang}: {len(sage_msgs)} entries (+{added} from bricks)") + print(f" {lang}: {len(sage_msgs)} entries (+{added} new, ~{updated} fixed)") if __name__ == '__main__':