Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new translate / retranslate wiki pages #34

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion tools/search-untranslated-file.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
en_files = [*WIKI.rglob("en.yml")]

#! Remember to change this
target_language_code = None
target_language_code = "zh-tw"

dump_md_lines = [
"# Untranslate files",
Expand Down
2 changes: 1 addition & 1 deletion wiki/addons/built-in/gamestages/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title: "遊戲階段(Game Stages)"
description: "KubeJS 遊戲階段集成"
description: "KubeJS 遊戲階段整合"
6 changes: 3 additions & 3 deletions wiki/addons/built-in/jei/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
title: "JEI物品管理器(Just Enough Items)"
description: "KubeJS JEI 集成"
title: "JEI 物品管理器(Just Enough Items)"
description: "KubeJS JEI 整合"

subtypes: "子類別"
hide-items-and-fluids: "隱藏物品及流體"
add-items-and-fluids: "新增物品及流體"
add-information: "新增資訊"
hide-categories: "隱藏類別"
hide-categories: "隱藏類別"
6 changes: 4 additions & 2 deletions wiki/addons/built-in/rei/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
title: "REI物品管理器(Roughly Enough Items)"
description: "KubeJS REI 集成"
description: "KubeJS REI 整合"

integration-warn: "在 1.16 中僅在 Fabric 中運作,1.18 級以上則可同時運作於 Forge 及 Fabric!"
EvanHsieh0415 marked this conversation as resolved.
Show resolved Hide resolved
hide-items-and-fluids: "隱藏物品及流體"
add-items-and-fluids: "新增物品及流體"
add-information: "新增資訊"
hide-categories: "隱藏類別"
grouping: "組合/摺疊項目"
grouping: "組合/摺疊項目"
grouping-warn: "此功能僅在 1.18.2 及以上生效!"
2 changes: 1 addition & 1 deletion wiki/addons/built-in/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title: "內建"
description: "KubeJS 預設已經包含的擴充"
description: "已預設在 KubeJS 中的附加功能"
4 changes: 2 additions & 2 deletions wiki/addons/first-party/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title: "官方擴充"
description: "由 KubeJS 團隊製作的擴充"
title: "官方附加模組"
description: "由 KubeJS 團隊製作的附加模組"
2 changes: 1 addition & 1 deletion wiki/addons/third-party/bejs/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title: "beJS"
description: "使用 KubeJS 註冊方塊實體"
description: "使用 KubeJS 註冊自訂方塊實體"
1 change: 1 addition & 0 deletions wiki/addons/third-party/cucumberjs/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: "CucumberJS"
2 changes: 2 additions & 0 deletions wiki/addons/third-party/entityjs/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: "EntityJS"
description: "使用 KubeJS 註冊自訂實體"
2 changes: 2 additions & 0 deletions wiki/addons/third-party/ftb-xmod-compat/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: "FTB XMod Compat"
description: "FTB 任務、團隊及區塊支援"
2 changes: 1 addition & 1 deletion wiki/addons/third-party/kjspkg/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title: "KJSPKG"
description: "KubeJS 製作的包管理器"
description: "KubeJS 包管理器"
1 change: 1 addition & 0 deletions wiki/addons/third-party/kubejs-botania/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: "KubeJS Botania"
1 change: 1 addition & 0 deletions wiki/addons/third-party/kubejs-irons-spells/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: "KubeJS Iron's Spells"
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title: "KubeJS Offline Documentation"
desciption: "單一 HTML 頁面的動態文件"
desciption: "單頁 HTML 的動態文件"
2 changes: 1 addition & 1 deletion wiki/addons/third-party/kubejs-tfc/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title: "KubeJS TFC"
description: "新增群巒傳說集成"
description: "新增群巒傳說(TFC)整合"
1 change: 1 addition & 0 deletions wiki/addons/third-party/multiblocked/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: "Multiblocked"
2 changes: 1 addition & 1 deletion wiki/addons/third-party/paxeljs/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title: "PaxelJS"
description: "新增 Paxel 工具類別到 KubeJS"
description: "新增 Paxel 工具類別"
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title: "【已過時】文件規範"
description: "此內容僅使用於 v4.0.0,此版本後文件幾乎可以透過 JSON 原理圖自行解析!"
description: "僅適用於 v4.0.0 之前的版本,v4.0.0 之後的文件幾乎都可以用 JSON 自行解釋!"
EvanHsieh0415 marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion wiki/addons/third-party/probejs/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title: "ProbeJS"
description: "KubeJS 類型生成器;為你的 KubeJSA 環境啟用 Intellisense!"
description: "用於生成 KubeJS 類型的模組。為你的 KubeJS 環境啟用智能代碼補全!"
EvanHsieh0415 marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions wiki/addons/third-party/visualjs/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: "VisualJS"
4 changes: 2 additions & 2 deletions wiki/addons/third-party/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title: "第三方擴充"
description: "由社群製作的擴充"
title: "第三方附加模組"
description: "由社群製作的附加模組"
4 changes: 2 additions & 2 deletions wiki/addons/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title: "擴充"
description: "所有 KubeJS 模組集成"
title: "附加模組"
description: "所有 KubeJS 附加模組"
2 changes: 1 addition & 1 deletion wiki/contributing/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
title: "為 Wiki 做貢獻"

contributing: "你可以查看 [[/test]] 來看看這個 wiki 可以做到什麼。"
contributing: "你可以查看 [[/test]] 來了解你能透過此 wiki 做到可能實現的所有功能。"
EvanHsieh0415 marked this conversation as resolved.
Show resolved Hide resolved
formatting: "格式規則"
formatting-info: "為了讓 wiki 更容易閱讀,所有的程式碼都應該像這樣格式化:"
4 changes: 2 additions & 2 deletions wiki/events/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
title: "事件"
description: "所有事件"

intro: "這裡是所有事件的清單。雖然可能尚未列出所有的事件,但這個清單會時常更新。"
intro: "這裡是所有事件的列表。可能尚未列出所有的事件,但這個列表會時常更新。"
EvanHsieh0415 marked this conversation as resolved.
Show resolved Hide resolved
click: "點擊事件 ID 以開啟其類別並查看資訊、欄位和方法。"
event-types: "事件類別"
event-type-server: "伺服器腳本"
startup: "放在 {st-s} 資料夾中的腳本。啟動腳本只會在伺服器與用戶端執行一次。大多在遊戲啟動時註冊及修改某些事情(例如自訂方塊、物品和流體等)的事件都是啟動事件。"
startup: "放在 {st-s} 資料夾中的腳本。啟動腳本只會在伺服器與用戶端執行一次。大多在遊戲啟動時註冊及修改東西(例如自訂方塊、物品和流體等)的事件都是啟動事件。"
event-type-startup: "啟動腳本"
server: "放在 {se-s} 資料夾中的腳本。當執行 `/reload` 指令後將會被重新載入。伺服器腳本一定會被讀取,即使在單人世界中也會被讀取。大多事件都會產生變化,例如破壞方塊、傳送玩家或新增配方等,這些事件都會放在這裡。"
event-type-client: "用戶端腳本"
Expand Down
2 changes: 1 addition & 1 deletion wiki/folder-structure/server-scripts/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title: "server_scripts/"
description: "伺服器端腳本"
description: "伺服器腳本"
2 changes: 1 addition & 1 deletion wiki/global-scope/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title: "全域範圍"
description: "任何地方都可以使用的類別與工具"
description: "任何地方都可以使用的類與工具"
22 changes: 11 additions & 11 deletions wiki/other/homepage/zh-tw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,30 @@ arch-api: "[Architectury](https://www.curseforge.com/minecraft/mc-mods/architect
title: "KubeJS"
description: "使用 JavaScript 自訂你的模組包或伺服器!"

q-info: "這模組用處為何?"
a-info: "你可以透過此模組使用 JavaScript 建立腳本來管理你的伺服器、新增方塊和物品、修改配方、自訂任務或更多功能等你來發掘!"
q-info: "這模組可以用來做什麼?"
EvanHsieh0415 marked this conversation as resolved.
Show resolved Hide resolved
a-info: "你可以透過此模組使用 JavaScript 建立腳本來管理你的伺服器、新增方塊和物品、修改配方、自訂任務,還有更多功能等你來發掘!"

q-how-use: "如何使用?"
q-how-use: "如何使用這個模組?"
a-how-use: "安裝此模組後啟動遊戲,應當會在你的 Minecraft 路徑中生成帶有範例腳本的 `kubejs` 資料夾,還有一個 README.txt 檔案,記得去讀它!"

q-js-help: "我不會JavaScript怎麼辦?"
a-js-help: "這裡有些範例和預製好的腳本。你也可以在 Discord 的支援頻道尋求幫助,但請記得具體描述你的問題。"
q-js-help: "我不會 JavaScript 怎麼辦?"
a-js-help: "這裡有些範例和預先編寫完的腳本。你也可以在 Discord 的支援頻道尋求幫助,但請記得具體描述你的問題。"

q-reload: "我可以熱重新載入腳本嗎?"
a-reload-st: "{st-s}: 重啟遊戲或使用 `/kubejs reload startup_scripts`,並不是所有的啟動腳本都能熱重新載入 - 有些東西必須得重啟遊戲(例如:註冊)或重啟世界(例如:世界生成);"
a-reload-se: "{se-s}: 使用 `/reload` 重新載入腳本、配方、標籤和所有資料,或使用 `/kubejs reload server_scripts` 來僅重新載入腳本;"
a-reload-cl: "{cl-s}: 使用 `F3 + T` 重新載入腳本和資源,或使用 `/kubejs reload client_scripts` 來僅重新載入腳本。"
a-reload-cl: "{cl-s}: 使用 `F3 + T` 重新載入腳本和資源包,或使用 `/kubejs reload client_scripts` 來僅重新載入腳本。"

q-mod-support: "什麼模組可以被 KubeJS 支援X 模組支援 KubeJS 嗎?"
a-mod-support: "如果模組使用資料包載入配方,基本上可以使用 KubeJS 來新增或修改;有些更複雜的模組需要使用擴展模組,理論上還是可以成功執行資料包配方,詳情請見 {recipes-url} 及 {addons-url} 頁面。"
q-mod-support: "哪些模組可以被 KubeJS 支援 / X 模組支援 KubeJS 嗎?"
a-mod-support: "如果模組使用資料包載入配方,基本上可以使用 KubeJS 來新增或修改;有些更複雜的模組需要使用附加模組,理論上還是可以成功執行資料包配方,詳情請見 {recipes-url} 及 {addons-url} 頁面。"

q-features: "這個模組有哪些功能?"
a-features: "請見 {tutorials-url} 頁面。"

q-how-work: "這個模組是如何運作的?"
a-how-work: "這個模組使用了 Rhino — 由 Mozilla 製作並用於執行時轉換 JavaScript 程式碼到 Java 類別,的分支。KubeJS 封裝了 Minecraft 類別並加入了一些實用的工具,以簡化了操作並移除了對映射的需求。{arch-api} 讓 Forge 和 Fabric 可以使用幾乎相同的原始碼,從而使移植變得相當簡單。"
a-how-work: "這個模組使用了 Rhino — 由 Mozilla 製作並用於執行時轉換 JavaScript 程式碼到 Java 類的分支。KubeJS 封裝了 Minecraft 類並加入了一些實用的工具,以簡化了操作並移除了對映射的需求。{arch-api} 讓 Forge 和 Fabric 可以使用幾乎相同的原始碼,從而使移植變得相當簡單。"

q-support: "好咧,但……如果它不起作用呢?"
q-support: "好的~但如果它不起作用呢?"
a-support: "你可以到 [這裡]({support-url}) 回報問題。"

q-discussion: "我有更多疑問、建議!"
Expand All @@ -39,4 +39,4 @@ a-discussion: "如果 Wiki 沒有解答你所尋找的問題,你可以加入 [
website: "網站"
source: "原始碼"
download: "下載"
no-support: "Minecraft 的最低支援版本是 {last-supported-version},如果低於這個版本,你就只能依靠你自己了!"
no-support: "KubeJS 的 Minecraft 最低支援版本是 {last-supported-version},如果低於這個版本,你就只能依靠你自己了!"
2 changes: 1 addition & 1 deletion wiki/other/source-code/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title: "原始碼"
description: "關於 KubeJS 的 GitHub 儲存庫"
description: "KubeJS 的 GitHub 儲存庫"
2 changes: 1 addition & 1 deletion wiki/tutorials/block-interactions/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title: "方塊互動"
description: "右鍵方塊、破壞等"
description: "右鍵、破壞方塊等"
2 changes: 1 addition & 1 deletion wiki/tutorials/block-modification/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title: "方塊修改"
description: "修改已經存在的方塊"
description: "修改已被註冊的方塊"
2 changes: 1 addition & 1 deletion wiki/tutorials/changing-window/zh-tw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ icon-info: "如要更換圖示,你需要放置圖片在 `kubejs/config/packico
icon-32-bit: "圖示必須儲存為 32 位元的 PNG 格式,而不是 Auto-detect/24-bit,否則將導致 Java 虛擬機器崩潰!"
pdn: "以下是在 {pdn-url} 中的操作方法:"
result: "範例結果:"
incompatible: "目前與 Fancy Menu 不相容!"
incompatible: "目前與 Fancy Menu 不相容!"
2 changes: 1 addition & 1 deletion wiki/tutorials/default-options/zh-tw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ title: "預設選項"
description: "生成預設的 options.txt 檔案"

intro: "你可以使用 KubeJS 從 option.txt 中呼叫預設選項。這包括按鍵綁定、顯示設定、已啟用的資源包、自動跳躍和切換疾走等控制選項、進階物品提示等奇奇怪怪的設定。"
overriden: "為什麼要使用此功能而非直接設定 option.txt?如果你直接設定 option.txt,當使用者更新模組包後,所有設定都會被覆蓋,而 KubeJS 只會在模組包首次啟動時為選項設定預設值。"
overriden: "為什麼要使用此功能而非直接設定 option.txt?如果你直接設定 option.txt 的話,當使用者更新模組包後,所有設定都會被覆蓋,而 KubeJS 只會在模組包首次啟動時為選項設定預設值。"
howto: "要使用此功能,只需要在 `kubejs/config` 資料夾中新增 `defaultoptions.txt` 檔案,然後從普通的 options.txt 檔案中複製你要設定成預設值的那一行,如果你想包含所有內容,也可以直接複製整個檔案。"
optionlist: "關於 options.txt 的完整選項清單可以在 [Minecraft Wiki](https://zh.minecraft.wiki/w/Options.txt) 上找到。"
2 changes: 1 addition & 1 deletion wiki/tutorials/item-modification/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title: "物品修改"
description: "修改已經存在的物品"
description: "修改已被註冊的物品"
6 changes: 3 additions & 3 deletions wiki/tutorials/loading-assets-and-data/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
title: "載入資源(assets)和資料(data)"
description: "從資源包載入資源(assets)及從資料包載入資料(data)"

intro: "你還可以使用 KubeJS 從資源包載入資源和從資料包載入資料,雖然這不是唯一的方法,但這是最簡單的方法之一。其他選項包括<TODO: make and link server datapack load page and client generate assets event page>"
data: "資料的載入方式與資料包中的資料夾相同。如果你已經有資料包,只需將資料包中的資料夾複製到 KubeJS 的資料(kubejs/data)資料夾中。"
assets: "資源的載入方式與資源包中的資料夾相同。如果你已經有資源包,只需將資源包中的資料夾複製到 KubeJS 的資源(kubejs/assets)資料夾中。"
intro: "你還可以使用 KubeJS 從資源包載入資源和從資料包載入資料,儘管這不是唯一的方法,但這是最簡單的方法之一。其他選項包括<TODO: make and link server datapack load page and client generate assets event page>"
data: "資料的載入方式與資料包中的資料夾相同。如果你已經有資料包,只需將資料包中的資料夾複製到 KubeJS 的資料包資料夾(kubejs/data)。"
assets: "資源的載入方式與資源包中的資料夾相同。如果你已經有資源包,只需將資源包中的資料夾複製到 KubeJS 的資源包資料夾(kubejs/assets)。"
2 changes: 2 additions & 0 deletions wiki/tutorials/mob-effect-registry/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: "生物效果註冊"
description: "添加新的生物效果"
EvanHsieh0415 marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions wiki/tutorials/painter-api/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: "Painter API"
2 changes: 2 additions & 0 deletions wiki/tutorials/tooltips/zh-tw.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: "物品提示"
description: "自訂物品提示"