Repository navigation
Translate the messages that bypassed the language files (depends on #2288) - #2291
Draft
zisunny104 wants to merge 11 commits into
Draft
zisunny104 wants to merge 11 commits into
zisunny104 wants to merge 11 commits into
Conversation
- Add 16 missing keys (new potion/effect names, summon, invalid game mode) - Translate 10 entries that were still in English - Use the official Minecraft zh_TW wording for effects and death messages - Use full-width punctuation consistently in Chinese text - Remove two unused keys that do not exist in the English file Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Use full-width punctuation and 「」 quotes, no spaces next to them - Use …… for ellipses in sentences - Replace mainland wording (加載/文件/設置/創建/坐標/數據/檢測/許可/運行/用戶端) with 載入/檔案/設定/建立/座標/資料/偵測/授權/執行/客戶端 - Fix mistranslations: item lookup is by name not ID, "implementing" is 實作 - Put a space between Chinese and Latin text or numbers (e.g. ID 為) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Say 玩家 for "player" in every usage string, keep 玩家代號 for "name" - Fix usage strings that did not say what the English says: /particle takes a particle name, /tp has a target and a destination, /give takes tags, /enchant takes an enchantment level, /me takes an action - Keep /banlist ips and players as the words the player has to type - Use 或 for "OR" everywhere and 數值 for "value" - Say 伺服器管理員 for operator in the op and deop descriptions - Fix the whitelist description, it said "the admin allows" instead of "manages the list" - Give the /effect message the values the code passes Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Add the keys the commands use but the language files did not have, and fix the commands that asked for a different key than the one that exists (/gamerule, /reload, /me, /op, /deop, /playsound). - Move the English literals of /status, /gc, /version, /help, /tell, /kill, /tp, /gamemode and /convert to the language files. - Translate the kick, ban and disconnect texts with the language of the server, and use the official keys for the whitelist and disconnect texts. - Translate the achievement names with the language of the server. - Pass the game mode to gameMode.changed, the client showed "%s" without it. - /clear reports how many items it removed, /enchant names the player when the item is missing, and /gamerule no longer prints "%s" for a bad value. - Fix the placeholders of commands.effect.success and add the Traditional Chinese texts, the Minecraft strings are the official ones. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolve cht/lang.ini: use the wording of the translation update for keys that exist in both branches, keep the keys that only this branch adds, and write the ellipsis in flyPig as three dots like the rest of the file. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Several messages never went through the language files: they were English literals in the code, or they asked for a key that does not exist, so players saw the raw key or a
%s. This PR moves them tolang/eng/lang.iniandlang/cht/lang.ini.Code changes
/gamerule,/reload,/me,/op,/deopand/playsoundasked for a key that did not exist, so the client showed the key. They now use the key that exists, or a new one./status,/gc,/version,/help,/tell,/kill,/tp,/gamemodeand/convert.Player,BanCommand,BanIpCommandandRakNetPlayerSessionare translated with the language of the server, and use the official keys for the whitelist and the disconnect screen.Achievement.getTranslatedMessage).gameMode.changednow gets the game mode as a parameter; the client showed%swithout it./clearreports how many items it removed (inventory, armor and offhand). Before, the count was not filled in./enchantnames the player when the item is missing, and/gameruleno longer prints%sfor a bad value.commands.effect.successtakes the four values the code passes: "Given {%0} * {%1} to {%2} for {%3} seconds". The Traditional Chinese text of the same key was fixed in Update Traditional Chinese (cht) translation #2288.Language files
engandcht, placed in the group they belong to.engandchthave the same keys after this PR./statusuptime is{%0} 天 {%1} 時 {%2} 分 {%3} 秒, the console is 控制台 and the garbage collector result is 記憶體回收結果.Testing
translateStringfor the new keys (also with theonlyPrefixoverload) and compared every{%N}placeholder with the English text.Review
The Traditional Chinese (zh_TW) texts were drafted with the help of an AI assistant (Claude Code). They were then reviewed item by item by a human, a native zh_TW speaker from Taiwan (@zisunny104), and compared with Mojang's official zh_TW strings wherever an official string exists.
Sources
bedrock-samples,resource_pack/texts/zh_TW.langanden_US.lang(https://github.com/Mojang/bedrock-samples).zh_tw.json(read from the public mirror https://github.com/InventivetalentDev/minecraft-assets).有些訊息沒有走語言檔:它們是程式裡寫死的英文,或是要求了不存在的 key,玩家看到的是原始 key 或
%s。這個 PR 把它們移到lang/eng/lang.ini與lang/cht/lang.ini。程式修改
/gamerule、/reload、/me、/op、/deop、/playsound用了不存在的 key,客戶端會顯示 key 本身;現在改用存在的 key 或新增的 key。/status、/gc、/version、/help、/tell、/kill、/tp、/gamemode、/convert。Player、BanCommand、BanIpCommand、RakNetPlayerSession)依伺服器語言翻譯,白名單與斷線畫面使用官方 key。Achievement.getTranslatedMessage)。gameMode.changed補上遊戲模式參數,原本客戶端會顯示%s。/clear會回報清除的物品數量(物品欄、護甲、副手),原本沒有帶入數量。/enchant在沒有物品時會帶入玩家名稱;/gamerule輸入錯誤數值時不再顯示%s。commands.effect.success改為程式實際傳入的四個值。同一個 key 的繁中文字已在 Update Traditional Chinese (cht) translation #2288 修正。語言檔
eng與cht各新增 86 個 key,放在所屬的群組中;本 PR 之後兩者 key 完全一致。/status運作時間為{%0} 天 {%1} 時 {%2} 分 {%3} 秒,主控台稱為 控制台,垃圾回收結果稱為 記憶體回收結果。測試
translateString(含onlyPrefix多載),逐一比對新 key 與英文的{%N}佔位符。審閱
繁體中文(zh_TW)由 AI 助理(Claude Code)協助起草,之後由真人逐項核對,核對者是來自台灣的 zh_TW 母語者(@zisunny104),並在有官方字串時與 Mojang 官方繁中對照。
🤖 Generated with Claude Code