add zhCN locale for combat information.

This commit is contained in:
jilinge2
2024-09-29 15:09:55 +08:00
parent 9d13cb1d54
commit f18a60a414
2 changed files with 11 additions and 3 deletions
+8
View File
@@ -21,6 +21,10 @@ L:RegisterTranslations("enUS", function() return {
["Same as HIGHEST_HP_RAID_MARK but with INVERSE_RAID_MARK mark prio."] = true,
["|cffffcc00Cursive:|cffffaaaa Couldn't find a target to curse."] = true,
-- curses
["(.+) fades from (.+)"] = true,
["Your (.+) was resisted by (.+)"] = true,
-- global
["|cffffcc00Cursive:|cffffaaaa Couldn't detect SuperWoW."] = true,
["|cffffcc00Cursive:|cffffaaaa Loaded. /cursive for commands and minimap icon for options."] = true,
@@ -158,6 +162,10 @@ L:RegisterTranslations("zhCN", function() return {
["Same as HIGHEST_HP_RAID_MARK but with INVERSE_RAID_MARK mark prio."] = "与HIGHEST_HP_RAID_MARK相同,但是INVERSE_RAID_MARK标记优先.",
["|cffffcc00Cursive:|cffffaaaa Couldn't find a target to curse."] = "|cffffcc00Cursive:|cffffaaaa 找不到要诅咒的目标.",
-- curses
["(.+) fades from (.+)"] = "(.+)效果从(.+)身上消失",
["Your (.+) was resisted by (.+)"] = "你的(.+)被(.+)抵抗了",
-- global
["|cffffcc00Cursive:|cffffaaaa Couldn't detect SuperWoW."] = "|cffffcc00Cursive:|cffffaaaa 无法检测到SuperWoW.",
["|cffffcc00Cursive:|cffffaaaa Loaded. /cursive for commands and minimap icon for options."] = "|cffffcc00Cursive:|cffffaaaa 已加载。/cursive 用于查看帮助命令,小地图图标打开设置选项.",
+3 -3
View File
@@ -1,7 +1,7 @@
if not Cursive.superwow then
return
end
local L = AceLibrary("AceLocale-2.2"):new("Cursive")
local curses = {
trackedCurseIds = {},
trackedCurseNamesToTextures = {},
@@ -14,8 +14,8 @@ local curses = {
-- combat events for curses
local afflict_test = "^(.+) is afflicted by (.+) %((%d+)%)" -- for stacks 2-5 will be "Fire Vulnerability (2)".
local gains_test = "^(.+) gains (.+) %((%d+)%)" -- for stacks 2-5 will be "Fire Vulnerability (2)".
local fades_test = "(.+) fades from (.+)"
local resist_test = "Your (.+) was resisted by (.+)"
local fades_test = L["(.+) fades from (.+)"]
local resist_test = L["Your (.+) was resisted by (.+)"]
local lastGuid = nil