mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Add: [ALAS][TW] Standardize zh-TW translation
This commit is contained in:
parent
a5e2eb0004
commit
b303341297
@ -397,6 +397,21 @@ class ConfigGenerator:
|
|||||||
group, key = path
|
group, key = path
|
||||||
deep_load(keys=['Gui', group], words=(key,))
|
deep_load(keys=['Gui', group], words=(key,))
|
||||||
|
|
||||||
|
# zh-TW
|
||||||
|
dic_repl = {
|
||||||
|
'設置': '設定',
|
||||||
|
'支持': '支援',
|
||||||
|
'啓': '啟',
|
||||||
|
'异': '異',
|
||||||
|
'服務器': '伺服器',
|
||||||
|
'文件': '檔案',
|
||||||
|
}
|
||||||
|
if lang == 'zh-TW':
|
||||||
|
for path, value in deep_iter(new, depth=3):
|
||||||
|
for before, after in dic_repl.items():
|
||||||
|
value = value.replace(before, after)
|
||||||
|
deep_set(new, keys=path, value=value)
|
||||||
|
|
||||||
write_file(filepath_i18n(lang), new)
|
write_file(filepath_i18n(lang), new)
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
},
|
},
|
||||||
"Serial": {
|
"Serial": {
|
||||||
"name": "模擬器 Serial",
|
"name": "模擬器 Serial",
|
||||||
"help": "常見的模擬器 Serial 可以查詢下方列表\n填 \"auto\" 自動檢測模擬器,多個模擬器正在運行或使用不支持自動檢測的模擬器時無法使用 \"auto\",必須手動填寫\n模擬器預設 Serial:\n- 藍疊模擬器 127.0.0.1:5555\n- 藍疊模擬器4 Hyper-v版,填\"bluestacks4-hyperv\"自動連接,多開填\"bluestacks4-hyperv-2\"以此類推\n- 藍疊模擬器5 Hyper-v版,填\"bluestacks5-hyperv\"自動連接,多開填\"bluestacks5-hyperv-1\"以此類推\n- 夜神模擬器 127.0.0.1:62001\n- 夜神模擬器64位元 127.0.0.1:59865\n- MuMu模擬器/MuMu模擬器X 127.0.0.1:7555\n- MuMu模擬器12 127.0.0.1:16384\n- 逍遙模擬器 127.0.0.1:21503\n- 雷電模擬器 emulator-5554 或 127.0.0.1:5555\n- WSA,填\"wsa-0\"使遊戲在後臺運行,需要使用第三方軟件操控或關閉\n如果你使用了模擬器的多開功能,他們的 Serial 將不是預設的,可以在 console.bat 中執行 `adb devices` 查詢,或根據模擬器官方的教程填寫"
|
"help": "常見的模擬器 Serial 可以查詢下方列表\n填 \"auto\" 自動檢測模擬器,多個模擬器正在運行或使用不支援自動檢測的模擬器時無法使用 \"auto\",必須手動填寫\n模擬器預設 Serial:\n- 藍疊模擬器 127.0.0.1:5555\n- 藍疊模擬器4 Hyper-v版,填\"bluestacks4-hyperv\"自動連接,多開填\"bluestacks4-hyperv-2\"以此類推\n- 藍疊模擬器5 Hyper-v版,填\"bluestacks5-hyperv\"自動連接,多開填\"bluestacks5-hyperv-1\"以此類推\n- 夜神模擬器 127.0.0.1:62001\n- 夜神模擬器64位元 127.0.0.1:59865\n- MuMu模擬器/MuMu模擬器X 127.0.0.1:7555\n- MuMu模擬器12 127.0.0.1:16384\n- 逍遙模擬器 127.0.0.1:21503\n- 雷電模擬器 emulator-5554 或 127.0.0.1:5555\n- WSA,填\"wsa-0\"使遊戲在後臺運行,需要使用第三方軟件操控或關閉\n如果你使用了模擬器的多開功能,他們的 Serial 將不是預設的,可以在 console.bat 中執行 `adb devices` 查詢,或根據模擬器官方的教程填寫"
|
||||||
},
|
},
|
||||||
"PackageName": {
|
"PackageName": {
|
||||||
"name": "遊戲伺服器",
|
"name": "遊戲伺服器",
|
||||||
@ -100,7 +100,7 @@
|
|||||||
},
|
},
|
||||||
"EmulatorInfo": {
|
"EmulatorInfo": {
|
||||||
"_info": {
|
"_info": {
|
||||||
"name": "模擬器設置",
|
"name": "模擬器設定",
|
||||||
"help": "下列數值是根據Serial自動填充的,如果不懂請不要隨意修改"
|
"help": "下列數值是根據Serial自動填充的,如果不懂請不要隨意修改"
|
||||||
},
|
},
|
||||||
"Emulator": {
|
"Emulator": {
|
||||||
@ -151,7 +151,7 @@
|
|||||||
},
|
},
|
||||||
"OnePushConfig": {
|
"OnePushConfig": {
|
||||||
"name": "錯誤推送設定",
|
"name": "錯誤推送設定",
|
||||||
"help": "發生無法處理的异常後,使用 Onepush 推送错误消息。設定參考文檔:https://github.com/LmeSzinc/AzurLaneAutoScript/wiki/Onepush-configuration-%5BCN%5D"
|
"help": "發生無法處理的異常後,使用 Onepush 推送错误消息。設定參考文檔:https://github.com/LmeSzinc/AzurLaneAutoScript/wiki/Onepush-configuration-%5BCN%5D"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Optimization": {
|
"Optimization": {
|
||||||
@ -182,7 +182,7 @@
|
|||||||
},
|
},
|
||||||
"Name": {
|
"Name": {
|
||||||
"name": "副本名稱",
|
"name": "副本名稱",
|
||||||
"help": "默認打本設置",
|
"help": "默認打本設定",
|
||||||
"Calyx_Golden_Memories": "材料:角色經驗(回憶之蕾•擬造花萼金)",
|
"Calyx_Golden_Memories": "材料:角色經驗(回憶之蕾•擬造花萼金)",
|
||||||
"Calyx_Golden_Aether": "材料:武器經驗(乙太之蕾•擬造花萼金)",
|
"Calyx_Golden_Aether": "材料:武器經驗(乙太之蕾•擬造花萼金)",
|
||||||
"Calyx_Golden_Treasures": "材料:信用點(藏珍之蕾•擬造花萼金)",
|
"Calyx_Golden_Treasures": "材料:信用點(藏珍之蕾•擬造花萼金)",
|
||||||
@ -213,7 +213,7 @@
|
|||||||
},
|
},
|
||||||
"NameAtDoubleCalyx": {
|
"NameAtDoubleCalyx": {
|
||||||
"name": "有雙倍花活動時,選擇副本",
|
"name": "有雙倍花活動時,選擇副本",
|
||||||
"help": "次數耗儘後回退到默認打本設置",
|
"help": "次數耗儘後回退到默認打本設定",
|
||||||
"do_not_participate": "不參與活動",
|
"do_not_participate": "不參與活動",
|
||||||
"Calyx_Golden_Memories": "材料:角色經驗(回憶之蕾•擬造花萼金)",
|
"Calyx_Golden_Memories": "材料:角色經驗(回憶之蕾•擬造花萼金)",
|
||||||
"Calyx_Golden_Aether": "材料:武器經驗(乙太之蕾•擬造花萼金)",
|
"Calyx_Golden_Aether": "材料:武器經驗(乙太之蕾•擬造花萼金)",
|
||||||
@ -228,7 +228,7 @@
|
|||||||
},
|
},
|
||||||
"NameAtDoubleRelic": {
|
"NameAtDoubleRelic": {
|
||||||
"name": "有遺器活動時,選擇副本",
|
"name": "有遺器活動時,選擇副本",
|
||||||
"help": "次數耗儘後回退到默認打本設置",
|
"help": "次數耗儘後回退到默認打本設定",
|
||||||
"do_not_participate": "不參與活動",
|
"do_not_participate": "不參與活動",
|
||||||
"Cavern_of_Corrosion_Path_of_Gelid_Wind": "遺器:冰套+風套(霜風之徑•侵蝕隧洞)",
|
"Cavern_of_Corrosion_Path_of_Gelid_Wind": "遺器:冰套+風套(霜風之徑•侵蝕隧洞)",
|
||||||
"Cavern_of_Corrosion_Path_of_Jabbing_Punch": "遺器:物理套+擊破套(迅拳之徑•侵蝕隧洞)",
|
"Cavern_of_Corrosion_Path_of_Jabbing_Punch": "遺器:物理套+擊破套(迅拳之徑•侵蝕隧洞)",
|
||||||
@ -704,17 +704,17 @@
|
|||||||
"UpdateStart": "開始更新",
|
"UpdateStart": "開始更新",
|
||||||
"UpdateWait": "等待所有 Alas 完成當前任務",
|
"UpdateWait": "等待所有 Alas 完成當前任務",
|
||||||
"UpdateRun": "更新中",
|
"UpdateRun": "更新中",
|
||||||
"UpdateSuccess": "更新成功,正在重啓",
|
"UpdateSuccess": "更新成功,正在重啟",
|
||||||
"UpdateFailed": "更新失敗,可在./log/*_gui.txt中找到錯誤日誌",
|
"UpdateFailed": "更新失敗,可在./log/*_gui.txt中找到錯誤日誌",
|
||||||
"UpdateChecking": "檢查更新中",
|
"UpdateChecking": "檢查更新中",
|
||||||
"UpdateCancel": "取消更新,重啓 Alas 中",
|
"UpdateCancel": "取消更新,重啟 Alas 中",
|
||||||
"UpdateFinish": "更新成功,請手動重啓",
|
"UpdateFinish": "更新成功,請手動重啟",
|
||||||
"Local": "本地",
|
"Local": "本地",
|
||||||
"Upstream": "上游倉庫",
|
"Upstream": "上游倉庫",
|
||||||
"Author": "作者",
|
"Author": "作者",
|
||||||
"Time": "提交時間",
|
"Time": "提交時間",
|
||||||
"Message": "提交資訊",
|
"Message": "提交資訊",
|
||||||
"DisabledWarn": "更新模塊未啟用,你需要手動重啓 Alas 進行更新",
|
"DisabledWarn": "更新模塊未啟用,你需要手動重啟 Alas 進行更新",
|
||||||
"DetailedHistory": "詳細提交歷史"
|
"DetailedHistory": "詳細提交歷史"
|
||||||
},
|
},
|
||||||
"Remote": {
|
"Remote": {
|
||||||
|
Loading…
Reference in New Issue
Block a user