Skip to content

Commit 207eb13

Browse files
author
Ruben Zantingh
committed
Add traditional Chinese language
1 parent 2ce9550 commit 207eb13

File tree

7 files changed

+76261
-10
lines changed

7 files changed

+76261
-10
lines changed

Database/Items/zhTW.lua

Lines changed: 27396 additions & 0 deletions
Large diffs are not rendered by default.

Database/Npcs/zhTW.lua

Lines changed: 14452 additions & 0 deletions
Large diffs are not rendered by default.

Database/Quests/zhTW.lua

Lines changed: 6117 additions & 0 deletions
Large diffs are not rendered by default.

Database/Spells/zhTW.lua

Lines changed: 28220 additions & 0 deletions
Large diffs are not rendered by default.

Frames/MultiLanguageOptionsFrame.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ local function getDefaultOptions(optionsTranslations)
144144
{value = 'de', text = optionsTranslations["languages"]["de"]},
145145
{value = 'pt', text = optionsTranslations["languages"]["pt"]},
146146
{value = 'ko', text = optionsTranslations["languages"]["ko"]},
147-
{value = 'cn', text = optionsTranslations["languages"]["cn"]}
147+
{value = 'cn', text = optionsTranslations["languages"]["cn"]},
148+
{value = 'tw', text = optionsTranslations["languages"]["tw"]}
148149
},
149150
SELECTED_INTERACTION = 'hover',
150151
AVAILABLE_INTERACTIONS = {

Localization/Translations.lua

Lines changed: 69 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ local function addonLoaded(self, event, addonLoadedName)
4444
pt = "Portuguese",
4545
ru = "Russian",
4646
ko = "Korean",
47-
cn = "Chinese (simplified)"
47+
cn = "Chinese (simplified)",
48+
tw = "Chinese (traditional)"
4849
},
4950
questDisplayModes = {
5051
tooltip = "Tooltip",
@@ -96,7 +97,8 @@ local function addonLoaded(self, event, addonLoadedName)
9697
pt = "Portugués",
9798
ru = "Ruso",
9899
ko = "Coreano",
99-
cn = "Chino (simplificado)"
100+
cn = "Chino (simplificado)",
101+
tw = "Chino (tradicional)"
100102
},
101103
questDisplayModes = {
102104
tooltip = "Información sobre herramientas",
@@ -148,7 +150,8 @@ local function addonLoaded(self, event, addonLoadedName)
148150
pt = "Portugiesisch",
149151
ru = "Russisch",
150152
ko = "Koreanisch",
151-
cn = "Chinesisch (vereinfacht)"
153+
cn = "Chinesisch (vereinfacht)",
154+
tw = "Chinesisch (traditionell)"
152155
},
153156
questDisplayModes = {
154157
tooltip = "Tooltip",
@@ -200,7 +203,8 @@ local function addonLoaded(self, event, addonLoadedName)
200203
pt = "Portugais",
201204
ru = "Russe",
202205
ko = "Coréen",
203-
cn = "Chinois (simplifié)"
206+
cn = "Chinois (simplifié)",
207+
tw = "Chinois (traditionnel)"
204208
},
205209
questDisplayModes = {
206210
tooltip = "Info-bulle",
@@ -252,7 +256,8 @@ local function addonLoaded(self, event, addonLoadedName)
252256
pt = "Português",
253257
ru = "Russo",
254258
ko = "Coreano",
255-
cn = "Chinês (simplificado)"
259+
cn = "Chinês (simplificado)",
260+
tw = "Chinês (tradicional)"
256261
},
257262
questDisplayModes = {
258263
tooltip = "Dica de ferramenta",
@@ -304,7 +309,8 @@ local function addonLoaded(self, event, addonLoadedName)
304309
pt = "Португальский",
305310
ru = "Русский",
306311
ko = "Корейский",
307-
cn = "Китайский (упрощённый)"
312+
cn = "Китайский (упрощённый)",
313+
tw = "Китайский (традиционный)"
308314
},
309315
questDisplayModes = {
310316
tooltip = "Подсказка",
@@ -356,7 +362,8 @@ local function addonLoaded(self, event, addonLoadedName)
356362
pt = "葡萄牙语",
357363
ru = "俄语",
358364
ko = "韩语",
359-
cn = "中文(简体)"
365+
cn = "中文(简体)",
366+
tw = "中文(繁體)"
360367
},
361368
questDisplayModes = {
362369
tooltip = "工具提示",
@@ -408,7 +415,8 @@ local function addonLoaded(self, event, addonLoadedName)
408415
pt = "포르투갈어",
409416
ru = "러시아어",
410417
ko = "한국어",
411-
cn = "중국어(간체)"
418+
cn = "중국어(간체)",
419+
tw = "중국어(번체)"
412420
},
413421
questDisplayModes = {
414422
tooltip = "툴팁",
@@ -420,6 +428,59 @@ local function addonLoaded(self, event, addonLoadedName)
420428
}
421429
}
422430
}
431+
432+
_G["MultiLanguageTranslations"]["tw"] = {
433+
description = "描述",
434+
objectives = "任務目標",
435+
level = "等級",
436+
creatureTypes = {
437+
["Aberration"] = "異像",
438+
["Beast"] = "野獸",
439+
["Dragonkin"] = "龍類",
440+
["Demon"] = "惡魔",
441+
["Elemental"] = "元素生物",
442+
["Giant"] = "巨人",
443+
["Undead"] = "不死族",
444+
["Humanoid"] = "人型生物",
445+
["Critter"] = "小動物",
446+
["Mechanical"] = "機械",
447+
["Not specified"] = "未指定"
448+
},
449+
options = {
450+
generalOptionsTitle = "一般選項",
451+
languageDropdownLabel = "選擇語言:",
452+
interactionDropdownLabel = "選擇互動方式:",
453+
registerHotkeyDescriptionText = "註冊快捷鍵(右鍵取消綁定):",
454+
registerHotkeyNotBoundText = "未綁定",
455+
registerHotkeyPressButtonText = "按下按鈕..",
456+
questOptionsTitle = "任務選項",
457+
questDisplayModeText = "選擇任務顯示模式:",
458+
itemOptionsTitle = "物品選項",
459+
spellOptionsTitle = "法術選項",
460+
npcOptionsTitle = "NPC選項",
461+
enableText = "啟用",
462+
onlyDisplayNameText = "僅顯示名稱",
463+
languages = {
464+
en = "英文",
465+
es = "西班牙文",
466+
fr = "法文",
467+
de = "德文",
468+
pt = "葡萄牙文",
469+
ru = "俄文",
470+
ko = "韓文",
471+
cn = "中文(簡體)",
472+
tw = "中文(繁體)"
473+
},
474+
questDisplayModes = {
475+
tooltip = "工具提示",
476+
replace = "取代文字"
477+
},
478+
interactionModes = {
479+
hover = "懸停",
480+
["hover-hotkey"] = "懸停 + 快捷鍵"
481+
}
482+
}
483+
}
423484
end
424485
end
425486

MultiLanguage.toc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## Title: MultiLanguage
33
## Notes: Tooltip displaying data in another language
44
## Author: Ruben Zantingh
5-
## Version: 1.0.1
5+
## Version: 1.1.0
66
## SavedVariables: MultiLanguageOptions
77
## OptionalDeps: LibStub, LibUIDropDownMenu
88

@@ -23,6 +23,7 @@ Database/Items/ptBR.lua
2323
Database/Items/ruRU.lua
2424
Database/Items/zhCN.lua
2525
Database/Items/koKR.lua
26+
Database/Items/zhTW.lua
2627

2728
Database/Npcs/enUS.lua
2829
Database/Npcs/esES.lua
@@ -32,6 +33,7 @@ Database/Npcs/ptBR.lua
3233
Database/Npcs/ruRU.lua
3334
Database/Npcs/zhCN.lua
3435
Database/Npcs/koKR.lua
36+
Database/Npcs/zhTW.lua
3537

3638
Database/Quests/enUS.lua
3739
Database/Quests/esES.lua
@@ -41,6 +43,7 @@ Database/Quests/ptBR.lua
4143
Database/Quests/ruRU.lua
4244
Database/Quests/zhCN.lua
4345
Database/Quests/koKR.lua
46+
Database/Quests/zhTW.lua
4447

4548
Database/Spells/enUS.lua
4649
Database/Spells/esES.lua
@@ -50,6 +53,7 @@ Database/Spells/ptBR.lua
5053
Database/Spells/ruRU.lua
5154
Database/Spells/zhCN.lua
5255
Database/Spells/koKR.lua
56+
Database/Spells/zhTW.lua
5357

5458
Localization/Translations.lua
5559

0 commit comments

Comments
 (0)