mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
Add Traditional Chinese, Fix Simplified Chinese (#1705)
* zh_tw translation * zh_hk translation * translation fix: zh_cn, zh_hk, zh_tw
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"commands.pumpkin.version": "Pumpkin %s\n",
|
||||
"commands.pumpkin.description": "赋予每个人托管快速高效的 \nMinecraft 服务器的能力。\n",
|
||||
"commands.pumpkin.minecraft_version": "(Minecraft %1$s, 协议 %2$s)\n",
|
||||
"commands.pumpkin.description": "让每个人都能搭建快速且高效的 Minecraft 服务器。\n",
|
||||
"commands.pumpkin.minecraft_version": "(Minecraft %s,协议 %s)\n",
|
||||
"commands.pumpkin.github": "[GitHub 仓库]",
|
||||
"commands.pumpkin.website": "[网页]",
|
||||
"commands.pumpkin.version.hover": "点击以复制版本。",
|
||||
"commands.pumpkin.description.hover": "点击以复制描述。",
|
||||
"commands.pumpkin.minecraft_version.hover": "点击以复制 Minecraft 的版本。",
|
||||
"commands.pumpkin.github.hover": "点击以打开仓库。",
|
||||
"commands.pumpkin.website.hover": "点击以打开网页。"
|
||||
"commands.pumpkin.website": "[官方网站]",
|
||||
"commands.pumpkin.version.hover": "点击复制版本号",
|
||||
"commands.pumpkin.description.hover": "点击复制描述",
|
||||
"commands.pumpkin.minecraft_version.hover": "点击复制 Minecraft 版本",
|
||||
"commands.pumpkin.github.hover": "点击打开仓库。",
|
||||
"commands.pumpkin.website.hover": "点击打开网站。"
|
||||
}
|
||||
12
assets/translations/zh_hk.json
Normal file
12
assets/translations/zh_hk.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"commands.pumpkin.version": "Pumpkin %s\n",
|
||||
"commands.pumpkin.description": "讓每個人都能架設高速及高效能的 Minecraft 伺服器。\n",
|
||||
"commands.pumpkin.minecraft_version": "(Minecraft %s,協定 %s)\n",
|
||||
"commands.pumpkin.github": "[GitHub 原始碼庫]",
|
||||
"commands.pumpkin.website": "[官方網站]",
|
||||
"commands.pumpkin.version.hover": "點擊以複製版本號",
|
||||
"commands.pumpkin.description.hover": "點擊以複製描述",
|
||||
"commands.pumpkin.minecraft_version.hover": "點擊以複製 Minecraft 版本",
|
||||
"commands.pumpkin.github.hover": "點擊以開啟原始碼庫。",
|
||||
"commands.pumpkin.website.hover": "點擊以開啟官方網站。"
|
||||
}
|
||||
12
assets/translations/zh_tw.json
Normal file
12
assets/translations/zh_tw.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"commands.pumpkin.version": "Pumpkin %s\n",
|
||||
"commands.pumpkin.description": "讓每個人都能輕鬆架設快速且高效能的 Minecraft 伺服器。\n",
|
||||
"commands.pumpkin.minecraft_version": "(Minecraft %s,通訊協定 %s)\n",
|
||||
"commands.pumpkin.github": "[GitHub 原始碼儲存庫]",
|
||||
"commands.pumpkin.website": "[官方網站]",
|
||||
"commands.pumpkin.version.hover": "點擊以複製版本資訊",
|
||||
"commands.pumpkin.description.hover": "點擊以複製說明",
|
||||
"commands.pumpkin.minecraft_version.hover": "點擊以複製 Minecraft 版本",
|
||||
"commands.pumpkin.github.hover": "點擊以開啟原始碼儲存庫。",
|
||||
"commands.pumpkin.website.hover": "點擊以開啟官方網站。"
|
||||
}
|
||||
@@ -23,6 +23,8 @@ static PUMPKIN_JA_JP_JSON: &str = include_str!("../../assets/translations/ja_jp.
|
||||
static PUMPKIN_NL_NL_JSON: &str = include_str!("../../assets/translations/nl_nl.json");
|
||||
static PUMPKIN_RU_RU_JSON: &str = include_str!("../../assets/translations/ru_ru.json");
|
||||
static PUMPKIN_ZH_CN_JSON: &str = include_str!("../../assets/translations/zh_cn.json");
|
||||
static PUMPKIN_ZH_HK_JSON: &str = include_str!("../../assets/translations/zh_hk.json");
|
||||
static PUMPKIN_ZH_TW_JSON: &str = include_str!("../../assets/translations/zh_tw.json");
|
||||
static PUMPKIN_TR_TR_JSON: &str = include_str!("../../assets/translations/tr_tr.json");
|
||||
static PUMPKIN_UK_UA_JSON: &str = include_str!("../../assets/translations/uk_ua.json");
|
||||
static PUMPKIN_VI_VN_JSON: &str = include_str!("../../assets/translations/vi_vn.json");
|
||||
@@ -219,6 +221,10 @@ pub static TRANSLATIONS: LazyLock<Mutex<[HashMap<String, String>; Locale::last()
|
||||
serde_json::from_str(PUMPKIN_RU_RU_JSON).expect("Could not parse ru_ru.json.");
|
||||
let pumpkin_zh_cn: HashMap<String, String> =
|
||||
serde_json::from_str(PUMPKIN_ZH_CN_JSON).expect("Could not parse zh_cn.json.");
|
||||
let pumpkin_zh_hk: HashMap<String, String> =
|
||||
serde_json::from_str(PUMPKIN_ZH_HK_JSON).expect("Could not parse zh_hk.json.");
|
||||
let pumpkin_zh_tw: HashMap<String, String> =
|
||||
serde_json::from_str(PUMPKIN_ZH_TW_JSON).expect("Could not parse zh_tw.json.");
|
||||
let pumpkin_tr_tr: HashMap<String, String> =
|
||||
serde_json::from_str(PUMPKIN_TR_TR_JSON).expect("Could not parse tr_tr.json.");
|
||||
let pumpkin_uk_ua: HashMap<String, String> =
|
||||
@@ -255,6 +261,12 @@ pub static TRANSLATIONS: LazyLock<Mutex<[HashMap<String, String>; Locale::last()
|
||||
for (key, value) in pumpkin_zh_cn {
|
||||
array[Locale::ZhCn as usize].insert(format!("pumpkin:{key}"), value);
|
||||
}
|
||||
for (key, value) in pumpkin_zh_hk {
|
||||
array[Locale::ZhHk as usize].insert(format!("pumpkin:{key}"), value);
|
||||
}
|
||||
for (key, value) in pumpkin_zh_tw {
|
||||
array[Locale::ZhTw as usize].insert(format!("pumpkin:{key}"), value);
|
||||
}
|
||||
for (key, value) in pumpkin_tr_tr {
|
||||
array[Locale::TrTr as usize].insert(format!("pumpkin:{key}"), value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user