Skip to content

Commit

Permalink
Merge pull request ATTWoWAddon#1774 from NORPG/master
Browse files Browse the repository at this point in the history
Localization: Separate zhCN and zhTW translation
  • Loading branch information
DFortun81 authored Sep 6, 2024
2 parents 57cb63c + b7caddb commit 1fae0af
Show file tree
Hide file tree
Showing 3 changed files with 876 additions and 11 deletions.
1 change: 1 addition & 0 deletions AllTheThings.toc
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ locales\ko.lua
locales\pt.lua
locales\ru.lua
locales\cn.lua
locales\tw.lua

# Search Cache
src\Cache.lua
Expand Down
13 changes: 2 additions & 11 deletions locales/cn.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- Localization for Chinese (Simplified, PRC) and Chinese (Traditional, Taiwan) Clients.
if GetLocale() ~= "zhCN" and GetLocale() ~= "zhTW" then return; end
-- Localization for Chinese (Simplified, PRC) Clients.
if GetLocale() ~= "zhCN" then return; end
local app = select(2, ...);
local L = app.L;

Expand Down Expand Up @@ -458,11 +458,6 @@ for key,value in pairs({
["艾拉-卡拉,回响之城"] = "回响之城", -- ["Ara-Kara, City of Echoes"] = "Ara-Kara"
})
do a[key] = value; end
if GetLocale() == "zhTW" then
a["安托洛斯,燃燒王座"] = "安托洛斯" -- ["Antorus, the Burning Throne"] = "Antorus"
a["奈奧羅薩,甦醒之城"] = "奈奧羅薩" -- ["Ny'alotha, the Waking City"] = "Ny'alotha"
a["『帷幕市集』塔札維許"] = "塔札維許" -- ["Tazavesh, the Veiled Market"] = "Tazavesh"
end


if app.IsRetail then
Expand Down Expand Up @@ -518,10 +513,6 @@ for key,value in pairs({
[-5205] = "隐藏外观", -- Hidden Appearance
})
do a[key] = value; end
if GetLocale() == "zhTW" then
a[-1120] = "莫魯克半人馬"; -- Maruuk Centaur
a[-1130] = "伊斯凱拉巨牙海民"; -- Iskaara Tuskarrccord
end
end

local a = L.SETTINGS_MENU;
Expand Down
Loading

0 comments on commit 1fae0af

Please sign in to comment.