From 798f116ff0f3bbd1dcb8ecc287f0e91f73d917a5 Mon Sep 17 00:00:00 2001 From: jilinge2 Date: Fri, 27 Sep 2024 14:35:36 +0800 Subject: [PATCH 1/2] add zhCN locale --- Cursive.toc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cursive.toc b/Cursive.toc index ab5edf0..6220f3d 100644 --- a/Cursive.toc +++ b/Cursive.toc @@ -1,7 +1,9 @@ ## Interface: 11200 ## Title: [|CFF33AAFFSUPERWOW|R] Cursive +## Title-zhCN: [|CFF33AAFFSUPERWOW|R] Cursive ## Author: Pepopo ## Notes: Uses SuperWoW GUIDs to show units in combat and track curses +## Notes-zhCN: 使用SuperWoW的GUID功能来显示战斗中的单位并监视诅咒等 ## Version: 1.0 ## SavedVariablesPerCharacter: CursiveDB ## X-Embeds: Ace2, FuBarPlugin-2.0, CompostLib, DewDropLib, TabletLib From f18a60a414bfe7ab969acbacba447f4e4e066d37 Mon Sep 17 00:00:00 2001 From: jilinge2 Date: Sun, 29 Sep 2024 15:09:55 +0800 Subject: [PATCH 2/2] add zhCN locale for combat information. --- Localization.lua | 8 ++++++++ curses.lua | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Localization.lua b/Localization.lua index e4abe5b..00f9237 100644 --- a/Localization.lua +++ b/Localization.lua @@ -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 用于查看帮助命令,小地图图标打开设置选项.", diff --git a/curses.lua b/curses.lua index a9676da..6a65d3e 100644 --- a/curses.lua +++ b/curses.lua @@ -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