From 5a03c7f3ef63e52309e2b766a6218de445cf1f67 Mon Sep 17 00:00:00 2001 From: Maple Saint <2303601+nanjuekaien1@users.noreply.github.com> Date: Sat, 28 Dec 2024 17:24:38 +0800 Subject: [PATCH 1/9] Update Options.lua --- Options.lua | 222 ++++++++++++++++++++++++++-------------------------- 1 file changed, 111 insertions(+), 111 deletions(-) diff --git a/Options.lua b/Options.lua index 4e7ae33..d5beccd 100644 --- a/Options.lua +++ b/Options.lua @@ -215,23 +215,23 @@ function WQA:UpdateOptions() order = newOrder(), type = "group", childGroups = "tree", - name = "General", + name = L["General"], args = {} }, reward = { order = newOrder(), type = "group", - name = "Rewards", + name = L["Rewards"], args = { general = { order = newOrder(), - name = "General", + name = L["General"], type = "group", -- inline = true, args = { gold = { type = "toggle", - name = "Gold", + name = L["Gold"], set = function(info, val) WQA.db.profile.options.reward.general.gold = val end, @@ -242,7 +242,7 @@ function WQA:UpdateOptions() order = newOrder() }, goldMin = { - name = "minimum Gold", + name = L["minimum Gold"], type = "input", order = newOrder(), set = function(info, val) @@ -256,13 +256,13 @@ function WQA:UpdateOptions() }, gear = { order = newOrder(), - name = "Gear", + name = L["Gear"], type = "group", -- inline = true, args = { itemLevelUpgrade = { type = "toggle", - name = "ItemLevel Upgrade", + name = L["ItemLevel Upgrade"], set = function(info, val) WQA.db.profile.options.reward.gear.itemLevelUpgrade = val end, @@ -274,7 +274,7 @@ function WQA:UpdateOptions() }, AzeriteArmorCache = { type = "toggle", - name = "Azerite Armor Cache", + name = L["Azerite Armor Cache"], set = function(info, val) WQA.db.profile.options.reward.gear.AzeriteArmorCache = val end, @@ -285,7 +285,7 @@ function WQA:UpdateOptions() order = newOrder() }, itemLevelUpgradeMin = { - name = "minimum ItemLevel Upgrade", + name = L["minimum ItemLevel Upgrade"], type = "input", order = newOrder(), set = function(info, val) @@ -297,7 +297,7 @@ function WQA:UpdateOptions() }, armorCache = { type = "toggle", - name = "Armor Cache", + name = L["Armor Cache"], set = function(info, val) WQA.db.profile.options.reward.gear.armorCache = val end, @@ -309,7 +309,7 @@ function WQA:UpdateOptions() }, weaponCache = { type = "toggle", - name = "Weapon Cache", + name = L["Weapon Cache"], set = function(info, val) WQA.db.profile.options.reward.gear.weaponCache = val end, @@ -321,7 +321,7 @@ function WQA:UpdateOptions() }, jewelryCache = { type = "toggle", - name = "Jewelry Cache", + name = L["Jewelry Cache"], set = function(info, val) WQA.db.profile.options.reward.gear.jewelryCache = val end, @@ -339,7 +339,7 @@ function WQA:UpdateOptions() }, PawnUpgrade = { type = "toggle", - name = "% Upgrade (Pawn)", + name = L["% Upgrade (Pawn)"], set = function(info, val) WQA.db.profile.options.reward.gear.PawnUpgrade = val end, @@ -351,7 +351,7 @@ function WQA:UpdateOptions() }, StatWeightScore = { type = "toggle", - name = "% Upgrade (Stat Weight Score)", + name = L["% Upgrade (Stat Weight Score)"], set = function(info, val) WQA.db.profile.options.reward.gear.StatWeightScore = val end, @@ -362,7 +362,7 @@ function WQA:UpdateOptions() order = newOrder() }, PercentUpgradeMin = { - name = "minimum % Upgrade", + name = L["minimum % Upgrade"], type = "input", order = newOrder(), set = function(info, val) @@ -380,7 +380,7 @@ function WQA:UpdateOptions() }, unknownAppearance = { type = "toggle", - name = "Unknown appearance", + name = L["Unknown appearance"], set = function(info, val) WQA.db.profile.options.reward.gear.unknownAppearance = val end, @@ -392,7 +392,7 @@ function WQA:UpdateOptions() }, unknownSource = { type = "toggle", - name = "Unknown source", + name = L["Unknown source"], set = function(info, val) WQA.db.profile.options.reward.gear.unknownSource = val end, @@ -403,8 +403,8 @@ function WQA:UpdateOptions() order = newOrder() }, azeriteTraits = { - name = "Azerite Traits", - desc = "Comma separated spellIDs", + name = L["Azerite Traits"], + desc = L["Comma separated spellIDs"], type = "input", order = newOrder(), set = function(info, val) @@ -415,8 +415,8 @@ function WQA:UpdateOptions() end }, conduit = { - name = "Conduit", - desc = "Track conduit", + name = L["Conduit"], + desc = L["Track conduit"], type = "toggle", order = newOrder(), set = function(info, val) @@ -434,22 +434,22 @@ function WQA:UpdateOptions() order = newOrder(), type = "group", childGroups = "tree", - name = "Custom", + name = L["Custom"], args = { quest = { order = newOrder(), - name = "World Quest", + name = L["World Quest"], type = "group", inline = true, args = { -- Add WQ header1 = { type = "header", - name = "Add a Quest you want to track", + name = L["Add a Quest you want to track"], order = newOrder() }, addWQ = { - name = "QuestID", + name = L["QuestID"], -- desc = "To add a worldquest, enter a unique name for the worldquest, and click Okay", type = "input", order = newOrder(), @@ -462,16 +462,16 @@ function WQA:UpdateOptions() end }, questType = { - name = "Quest type", + name = L["Quest type"], order = newOrder(), desc = - "IsActive:\nUse this as a last resort. Works for some daily quests.\n\nIsQuestFlaggedCompleted:\nUse this for quests, that are always active.\n\nQuest Pin:\nUse this, if the daily is marked with a quest pin on the world map.\n\nWorld Quest:\nUse this, if you want to track a world quest.", + L["IsActive:\nUse this as a last resort. Works for some daily quests.\n\nIsQuestFlaggedCompleted:\nUse this for quests, that are always active.\n\nQuest Pin:\nUse this, if the daily is marked with a quest pin on the world map.\n\nWorld Quest:\nUse this, if you want to track a world quest."], type = "select", values = { - WORLD_QUEST = "World Quest", - QUEST_PIN = "Quest Pin", - QUEST_FLAG = "IsQuestFlaggedCompleted", - IsActive = "IsActive" + WORLD_QUEST = L["World Quest"], + QUEST_PIN = L["Quest Pin"], + QUEST_FLAG = L["IsQuestFlaggedCompleted"], + IsActive = L["IsActive"] }, set = function(info, val) WQA.data.custom.questType = val @@ -481,9 +481,9 @@ function WQA:UpdateOptions() end }, mapID = { - name = "mapID", + name = L["mapID"], desc = - "Quest pin tracking needs a mapID.\nSee https://wow.gamepedia.com/UiMapID for help.", + L["Quest pin tracking needs a mapID.\nSee https://wow.gamepedia.com/UiMapID for help."], type = "input", width = .5, order = newOrder(), @@ -496,7 +496,7 @@ function WQA:UpdateOptions() }, --[[ rewardID = { - name = "Reward (optional)", + name = L["Reward (optional)"], desc = "Enter an achievementID or itemID", type = "input", width = .6, @@ -507,7 +507,7 @@ function WQA:UpdateOptions() get = function() return tostring(WQA.data.custom.rewardID ) end }, rewardType = { - name = "Reward type", + name = L["Reward type"], order = newOrder(), type = "select", values = {item = "Item", achievement = "Achievement", none = "none"}, @@ -520,7 +520,7 @@ function WQA:UpdateOptions() button = { order = newOrder(), type = "execute", - name = "Add", + name = L["Add"], width = .3, func = function() WQA:CreateCustomQuest() @@ -535,25 +535,25 @@ function WQA:UpdateOptions() -- Configure header2 = { type = "header", - name = "Configure custom World Quests", + name = L["Configure custom World Quests"], order = newOrder() } } }, reward = { order = newOrder(), - name = "Reward", + name = L["Reward"], type = "group", inline = true, args = { -- Add item header1 = { type = "header", - name = "Add a World Quest Reward you want to track", + name = L["Add a World Quest Reward you want to track"], order = newOrder() }, itemID = { - name = "itemID", + name = L["itemID"], -- desc = "To add a worldquest, enter a unique name for the worldquest, and click Okay", type = "input", order = newOrder(), @@ -568,7 +568,7 @@ function WQA:UpdateOptions() button = { order = newOrder(), type = "execute", - name = "Add", + name = L["Add"], width = .3, func = function() WQA:CreateCustomReward() @@ -577,25 +577,25 @@ function WQA:UpdateOptions() -- Configure header2 = { type = "header", - name = "Configure custom World Quest Rewards", + name = L["Configure custom World Quest Rewards"], order = newOrder() } } }, mission = { order = newOrder(), - name = "Mission", + name = L["Mission"], type = "group", inline = true, args = { -- Add WQ header1 = { type = "header", - name = "Add a Mission you want to track", + name = L["Add a Mission you want to track"], order = newOrder() }, missionID = { - name = "MissionID", + name = L["MissionID"], type = "input", order = newOrder(), width = .6, @@ -607,8 +607,8 @@ function WQA:UpdateOptions() end }, rewardID = { - name = "Reward (optional)", - desc = "Enter an achievementID or itemID", + name = L["Reward (optional)"], + desc = L["Enter an achievementID or itemID"], type = "input", width = .6, order = newOrder(), @@ -620,13 +620,13 @@ function WQA:UpdateOptions() end }, rewardType = { - name = "Reward type", + name = L["Reward type"], order = newOrder(), type = "select", values = { - item = "Item", - achievement = "Achievement", - none = "none" + item = L["Item"], + achievement = L["Achievement"], + none = L["none"] }, width = .6, set = function(info, val) @@ -639,7 +639,7 @@ function WQA:UpdateOptions() button = { order = newOrder(), type = "execute", - name = "Add", + name = L["Add"], width = .3, func = function() WQA:CreateCustomMission() @@ -648,25 +648,25 @@ function WQA:UpdateOptions() -- Configure header2 = { type = "header", - name = "Configure custom Missions", + name = L["Configure custom Missions"], order = newOrder() } } }, missionReward = { order = newOrder(), - name = "Reward", + name = L["Reward"], type = "group", inline = true, args = { -- Add item header1 = { type = "header", - name = "Add a Mission Reward you want to track", + name = L["Add a Mission Reward you want to track"], order = newOrder() }, itemID = { - name = "itemID", + name = L["itemID"], type = "input", order = newOrder(), width = .6, @@ -680,7 +680,7 @@ function WQA:UpdateOptions() button = { order = newOrder(), type = "execute", - name = "Add", + name = L["Add"], width = .3, func = function() WQA:CreateCustomMissionReward() @@ -689,7 +689,7 @@ function WQA:UpdateOptions() -- Configure header2 = { type = "header", - name = "Configure custom Mission Rewards", + name = L["Configure custom Mission Rewards"], order = newOrder() } } @@ -699,17 +699,17 @@ function WQA:UpdateOptions() options = { order = newOrder(), type = "group", - name = "Options", + name = L["Options"], args = { desc1 = { type = "description", fontSize = "medium", - name = "Select where WQA is allowed to post", + name = L["Select where WQA is allowed to post"], order = newOrder() }, chat = { type = "toggle", - name = "Chat", + name = L["Chat"], width = "double", set = function(info, val) WQA.db.profile.options.chat = val @@ -722,7 +722,7 @@ function WQA:UpdateOptions() }, PopUp = { type = "toggle", - name = "PopUp", + name = L["PopUp"], width = "double", set = function(info, val) WQA.db.profile.options.PopUp = val @@ -735,7 +735,7 @@ function WQA:UpdateOptions() }, popupRememberPosition = { type = "toggle", - name = "Remember PopUp position", + name = L["Remember PopUp position"], width = "double", set = function(info, val) WQA.db.profile.options.popupRememberPosition = val @@ -748,7 +748,7 @@ function WQA:UpdateOptions() }, sortByName = { type = "toggle", - name = "Sort quests by name", + name = L["Sort quests by name"], width = "double", set = function(info, val) WQA.db.profile.options.sortByName = val @@ -761,7 +761,7 @@ function WQA:UpdateOptions() }, sortByZoneName = { type = "toggle", - name = "Sort quests by zone name", + name = L["Sort quests by zone name"], width = "double", set = function(info, val) WQA.db.profile.options.sortByZoneName = val @@ -774,7 +774,7 @@ function WQA:UpdateOptions() }, chatShowExpansion = { type = "toggle", - name = "Show expansion in chat", + name = L["Show expansion in chat"], width = "double", set = function(info, val) WQA.db.profile.options.chatShowExpansion = val @@ -787,7 +787,7 @@ function WQA:UpdateOptions() }, chatShowZone = { type = "toggle", - name = "Show zone in chat", + name = L["Show zone in chat"], width = "double", set = function(info, val) WQA.db.profile.options.chatShowZone = val @@ -800,7 +800,7 @@ function WQA:UpdateOptions() }, chatShowTime = { type = "toggle", - name = "Show time left in chat", + name = L["Show time left in chat"], width = "double", set = function(info, val) WQA.db.profile.options.chatShowTime = val @@ -813,7 +813,7 @@ function WQA:UpdateOptions() }, popupShowExpansion = { type = "toggle", - name = "Show expansion in popup", + name = L["Show expansion in popup"], width = "double", set = function(info, val) WQA.db.profile.options.popupShowExpansion = val @@ -826,7 +826,7 @@ function WQA:UpdateOptions() }, popupShowZone = { type = "toggle", - name = "Show zone in popup", + name = L["Show zone in popup"], width = "double", set = function(info, val) WQA.db.profile.options.popupShowZone = val @@ -839,7 +839,7 @@ function WQA:UpdateOptions() }, popupShowTime = { type = "toggle", - name = "Show time left in popup", + name = L["Show time left in popup"], width = "double", set = function(info, val) WQA.db.profile.options.popupShowTime = val @@ -851,7 +851,7 @@ function WQA:UpdateOptions() order = newOrder() }, delay = { - name = "Delay on login in s", + name = L["Delay on login in s"], type = "input", order = newOrder(), width = "double", @@ -863,7 +863,7 @@ function WQA:UpdateOptions() end }, delayCombat = { - name = "Delay output while in combat", + name = L["Delay output while in combat"], type = "toggle", order = newOrder(), width = "double", @@ -876,7 +876,7 @@ function WQA:UpdateOptions() }, WorldQuestTracker = { type = "toggle", - name = "Use World Quest Tracker", + name = L["Use World Quest Tracker"], width = "double", set = function(info, val) WQA.db.profile.options.WorldQuestTracker = val @@ -889,8 +889,8 @@ function WQA:UpdateOptions() }, esc = { type = "toggle", - name = "Close PopUp with ESC", - desc = "Requires a reload", + name = L["Close PopUp with ESC"], + desc = L["Requires a reload"], width = "double", set = function(info, val) WQA.db.profile.options.esc = val @@ -903,7 +903,7 @@ function WQA:UpdateOptions() }, LibDBIcon = { type = "toggle", - name = "Show Minimap Icon", + name = L["Show Minimap Icon"], width = "double", set = function(info, val) WQA.db.profile.options.LibDBIcon.hide = not val @@ -925,7 +925,7 @@ function WQA:UpdateOptions() local args = self.options.args.reward.args.general.args args.header1 = { type = "header", - name = "World Quest Type", + name = L["World Quest Type"], order = newOrder() } for k, v in pairs(worldQuestType) do @@ -972,7 +972,7 @@ function WQA:UpdateOptions() if i > 6 then self.options.args.reward.args[self.ExpansionList[i]].args[self.ExpansionList[i] .. "WorldQuests"] = { order = newOrder(), - name = "World Quests", + name = L["World Quests"], type = "group", args = {} } @@ -983,7 +983,7 @@ function WQA:UpdateOptions() if WQA.ZoneIDList[i] then args.zone = { order = newOrder(), - name = "Zones", + name = L["Zones"], type = "group", args = {}, inline = false @@ -1009,7 +1009,7 @@ function WQA:UpdateOptions() if CurrencyIDList[i] then args.currency = { order = newOrder(), - name = "Currencies", + name = L["Currencies"], type = "group", args = {} } @@ -1038,7 +1038,7 @@ function WQA:UpdateOptions() if FactionIDList[i] then args.reputation = { order = newOrder(), - name = "Reputation", + name = L["Reputation"], type = "group", args = {} } @@ -1071,7 +1071,7 @@ function WQA:UpdateOptions() if self.EmissaryQuestIDList[i] then args.emissary = { order = newOrder(), - name = "Emissary Quests", + name = L["Emissary Quests"], type = "group", args = {} } @@ -1100,7 +1100,7 @@ function WQA:UpdateOptions() if i > 6 then args.profession = { order = newOrder(), - name = "Professions", + name = L["Professions"], type = "group", args = {} } @@ -1108,7 +1108,7 @@ function WQA:UpdateOptions() -- Recipes args.profession.args["Recipes"] = { type = "toggle", - name = "Recipes", + name = L["Recipes"], set = function(info, val) WQA.db.profile.options.reward.recipe[i] = val end, @@ -1130,8 +1130,8 @@ function WQA:UpdateOptions() } args.profession.args[tradeskillLineID .. "Skillup"] = { type = "toggle", - name = "Skillup", - desc = "Track every World Quest until skill level is maxed out", + name = L["Skillup"], + desc = L["Track every World Quest until skill level is maxed out"], set = function(info, val) WQA.db.profile.options.reward[i].profession[tradeskillLineID].skillup = val end, @@ -1142,8 +1142,8 @@ function WQA:UpdateOptions() } args.profession.args[tradeskillLineID .. "MaxLevel"] = { type = "toggle", - name = "Skill level is maxed out*", - desc = "Setting is per character", + name = L["Skill level is maxed out*"], + desc = L["Setting is per character"], set = function(info, val) WQA.db.char[i].profession[tradeskillLineID].isMaxLevel = val end, @@ -1180,7 +1180,7 @@ function WQA:UpdateOptions() -- Mission Table self.options.args.reward.args[self.ExpansionList[i]].args[self.ExpansionList[i] .. "MissionTable"] = { order = newOrder(), - name = (i ~= 6 and "Mission Table" or "Mission Table & Shipyard"), + name = (i ~= 6 and L["Mission Table"] or L["Mission Table & Shipyard"]), type = "group", args = {} } @@ -1191,7 +1191,7 @@ function WQA:UpdateOptions() if CurrencyIDList[i] then args.currency = { order = newOrder(), - name = "Currencies", + name = L["Currencies"], type = "group", args = {} } @@ -1199,7 +1199,7 @@ function WQA:UpdateOptions() args.currency.args = { gold = { type = "toggle", - name = "Gold", + name = L["Gold"], set = function(info, val) WQA.db.profile.options.missionTable.reward.gold = val end, @@ -1210,7 +1210,7 @@ function WQA:UpdateOptions() order = newOrder() }, goldMin = { - name = "minimum Gold", + name = L["minimum Gold"], type = "input", order = newOrder(), set = function(info, val) @@ -1248,7 +1248,7 @@ function WQA:UpdateOptions() if FactionIDList[i] then args.reputation = { order = newOrder(), - name = "Reputation", + name = L["Reputation"], type = "group", args = {} } @@ -1428,16 +1428,16 @@ function WQA:UpdateCustomQuests() } args[id .. "questType"] = { - name = "Quest type", + name = L["Quest type"], order = newOrder(), desc = - "IsActive:\nUse this as a last resort. Works for some daily quests.\n\nIsQuestFlaggedCompleted:\nUse this for quests, that are always active.\n\nQuest Pin:\nUse this, if the daily is marked with a quest pin on the world map.\n\nWorld Quest:\nUse this, if you want to track a world quest.", + L["IsActive:\nUse this as a last resort. Works for some daily quests.\n\nIsQuestFlaggedCompleted:\nUse this for quests, that are always active.\n\nQuest Pin:\nUse this, if the daily is marked with a quest pin on the world map.\n\nWorld Quest:\nUse this, if you want to track a world quest."], type = "select", values = { - WORLD_QUEST = "World Quest", - QUEST_PIN = "Quest Pin", - QUEST_FLAG = "IsQuestFlaggedCompleted", - IsActive = "IsActive" + WORLD_QUEST = L["World Quest"], + QUEST_PIN = L["Quest Pin"], + QUEST_FLAG = L["IsQuestFlaggedCompleted"], + IsActive = L["IsActive"] }, width = .8, set = function(info, val) @@ -1448,8 +1448,8 @@ function WQA:UpdateCustomQuests() end } args[id .. "mapID"] = { - name = "mapID", - desc = "Quest pin tracking needs a mapID.\nSee https://wow.gamepedia.com/UiMapID for help.", + name = L["mapID"], + desc = L["Quest pin tracking needs a mapID.\nSee https://wow.gamepedia.com/UiMapID for help."], type = "input", width = .4, order = newOrder(), @@ -1463,7 +1463,7 @@ function WQA:UpdateCustomQuests() --[[ args[id.."Reward"] = { - name = "Reward (optional)", + name = L["Reward (optional)"], desc = "Enter an achievementID or itemID", type = "input", width = .6, @@ -1476,7 +1476,7 @@ function WQA:UpdateCustomQuests() end } args[id.."RewardType"] = { - name = "Reward type", + name = L["Reward type"], order = newOrder(), type = "select", values = {item = "Item", achievement = "Achievement", none = "none"}, @@ -1489,7 +1489,7 @@ function WQA:UpdateCustomQuests() args[id .. "Delete"] = { order = newOrder(), type = "execute", - name = "Delete", + name = L["Delete"], width = .5, func = function() args[tostring(id)] = nil @@ -1547,7 +1547,7 @@ function WQA:UpdateCustomRewards() args[id .. "Delete"] = { order = newOrder(), type = "execute", - name = "Delete", + name = L["Delete"], width = .5, func = function() args[tostring(id)] = nil @@ -1602,8 +1602,8 @@ function WQA:UpdateCustomMissions() width = 1.2 } args[id .. "Reward"] = { - name = "Reward (optional)", - desc = "Enter an achievementID or itemID", + name = L["Reward (optional)"], + desc = L["Enter an achievementID or itemID"], type = "input", width = .6, order = newOrder(), @@ -1615,7 +1615,7 @@ function WQA:UpdateCustomMissions() end } args[id .. "RewardType"] = { - name = "Reward type", + name = L["Reward type"], order = newOrder(), type = "select", values = { item = "Item", achievement = "Achievement", none = "none" }, @@ -1630,7 +1630,7 @@ function WQA:UpdateCustomMissions() args[id .. "Delete"] = { order = newOrder(), type = "execute", - name = "Delete", + name = L["Delete"], width = .5, func = function() args[tostring(id)] = nil @@ -1687,7 +1687,7 @@ function WQA:UpdateCustomMissionRewards() args[id .. "Delete"] = { order = newOrder(), type = "execute", - name = "Delete", + name = L["Delete"], width = .5, func = function() args[tostring(id)] = nil From 3c60ab603799df1ecaff1d340eadfc6d42146996 Mon Sep 17 00:00:00 2001 From: Maple Saint <2303601+nanjuekaien1@users.noreply.github.com> Date: Sat, 28 Dec 2024 17:26:22 +0800 Subject: [PATCH 2/9] Update Locales.lua --- Locales.lua | 229 +++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 209 insertions(+), 20 deletions(-) diff --git a/Locales.lua b/Locales.lua index 0f906c4..f47c621 100644 --- a/Locales.lua +++ b/Locales.lua @@ -5,26 +5,110 @@ local WQA = WQAchievements local locale = GetLocale() WQA.L = {} local L = WQA.L -L["NO_QUESTS"] = "No interesting World Quests active!" -L["WQChat"] = "Interesting World Quests are active:" -L["WQforAch"] = "%s for %s" -L["WQforAchTime"] = "%s (%s) for %s" -L["achievements"] = "Achievements" -L["mounts"] = "Mounts" -L["pets"] = "Pets" -L["toys"] = "Toys" -L["completed"] = "Completed" -L["notCompleted"] = "Not completed" -L["tracking_disabled"] = "Don't track" -L["tracking_default"] = "Default" -L["tracking_always"] = "Always track" -L["tracking_wasEarnedByMe"] = "Track if not earned by active character" -L["tracking_exclusive"] = "Only track with this character" -L["tracking_other"] = "Only tracked by %s" -L["LE_QUEST_TAG_TYPE_PVP"] = "PVP" -L["LE_QUEST_TAG_TYPE_PET_BATTLE"] = "Pet Battle" -L["LE_QUEST_TAG_TYPE_PROFESSION"] = "Profession" -L["LE_QUEST_TAG_TYPE_DUNGEON"] = "Dungeon" + L["% Upgrade (Pawn)"] = "% Upgrade (Pawn)" + L["% Upgrade (Stat Weight Score)"] = "% Upgrade (Stat Weight Score)" + L["Achievement"] = "Achievement" + L["Add a Mission Reward you want to track"] = "Add a Mission Reward you want to track" + L["Add a Mission you want to track"] = "Add a Mission you want to track" + L["Add a Quest you want to track"] = "Add a Quest you want to track" + L["Add a World Quest Reward you want to track"] = "Add a World Quest Reward you want to track" + L["Add"] = "Add" + L["Armor Cache"] = "Armor Cache" + L["Azerite Armor Cache"] = "Azerite Armor Cache" + L["Azerite Traits"] = "Azerite Traits" + L["Chat"] = "Chat" + L["Close PopUp with ESC"] = "Close PopUp with ESC" + L["Comma separated spellIDs"] = "Comma separated spellIDs" + L["Conduit"] = "Conduit" + L["Configure custom Mission Rewards"] = "Configure custom Mission Rewards" + L["Configure custom Missions"] = "Configure custom Missions" + L["Configure custom World Quest Rewards"] = "Configure custom World Quest Rewards" + L["Configure custom World Quests"] = "Configure custom World Quests" + L["Currencies"] = "Currencies" + L["Custom"] = "Custom" + L["Delay on login in s"] = "Delay on login in s" + L["Delay output while in combat"] = "Delay output while in combat" + L["Delete"] = "Delete" + L["Emissary Quests"] = "Emissary Quests" + L["Enter an achievementID or itemID"] = "Enter an achievementID or itemID" + L["Gear"] = "Gear" + L["General"] = "General" + L["Gold"] = "Gold" + L["IsActive"] = "IsActive" + L["IsActive:\nUse this as a last resort. Works for some daily quests.\n\nIsQuestFlaggedCompleted:\nUse this for quests, that are always active.\n\nQuest Pin:\nUse this, if the daily is marked with a quest pin on the world map.\n\nWorld Quest:\nUse this, if you want to track a world quest."] = "IsActive:\nUse this as a last resort. Works for some daily quests.\n\nIsQuestFlaggedCompleted:\nUse this for quests, that are always active.\n\nQuest Pin:\nUse this, if the daily is marked with a quest pin on the world map.\n\nWorld Quest:\nUse this, if you want to track a world quest." + L["IsQuestFlaggedCompleted"] = "IsQuestFlaggedCompleted" + L["Item"] = "Item" + L["ItemLevel Upgrade"] = "ItemLevel Upgrade" + L["Jewelry Cache"] = "Jewelry Cache" + L["LE_QUEST_TAG_TYPE_DUNGEON"] = "Dungeon" + L["LE_QUEST_TAG_TYPE_PET_BATTLE"] = "Pet Battle" + L["LE_QUEST_TAG_TYPE_PROFESSION"] = "Profession" + L["LE_QUEST_TAG_TYPE_PVP"] = "PVP" + L["Mission Table & Shipyard"] = "Mission Table & Shipyard" + L["Mission Table"] = "Mission Table" + L["Mission"] = "Mission" + L["MissionID"] ="MissionID" + L["NO_QUESTS"] = "No interesting World Quests active!" + L["Options"] = "Options" + L["PopUp"] = "PopUp" + L["Professions"] = "Professions" + L["Quest Pin"] = "Quest Pin" + L["Quest pin tracking needs a mapID.\nSee https://wow.gamepedia.com/UiMapID for help."] = "Quest pin tracking needs a mapID.\nSee https://wow.gamepedia.com/UiMapID for help." + L["Quest type"] = "Quest type" + L["QuestID"] = "QuestID" + L["Recipes"] = "Recipes" + L["Remember PopUp position"] = "Remember PopUp position" + L["Reputation"] = "Reputation" + L["Requires a reload"] = "Requires a reload" + L["Reward (optional)"] = "Reward (optional)" + L["Reward type"] = "Reward type" + L["Reward"] = "Reward" + L["Rewards"] = "Rewards" + L["Select where WQA is allowed to post"] = "Select where WQA is allowed to post" + L["Setting is per character"] = "Setting is per character" + L["Show Minimap Icon"] = "Show Minimap Icon" + L["Show expansion in chat"] = "Show expansion in chat" + L["Show expansion in popup"] = "Show expansion in popup" + L["Show time left in chat"] = "Show time left in chat" + L["Show time left in popup"] = "Show time left in popup" + L["Show zone in chat"] = "Show zone in chat" + L["Show zone in popup"] = "Show zone in popup" + L["Skill level is maxed out*"] = "Skill level is maxed out*" + L["Skillup"] = "Skillup" + L["Sort quests by name"] = "Sort quests by name" + L["Sort quests by zone name"] = "Sort quests by zone name" + L["Track conduit"] = "Track conduit" + L["Track every World Quest until skill level is maxed out"] = "Track every World Quest until skill level is maxed out" + L["Unknown appearance"] = "Unknown appearance" + L["Unknown source"] = "Unknown source" + L["Use World Quest Tracker"] = "Use World Quest Tracker" + L["WQChat"] = "Interesting World Quests are active:" + L["WQforAch"] = "%s for %s" + L["WQforAchTime"] = "%s (%s) for %s" + L["Weapon Cache"] = "Weapon Cache" + L["World Quest Type"] = "World Quest Type" + L["World Quest"] = "World Quest" + L["World Quests"] = "World Quests" + L["Zones"] = "Zones" + L["achievements"] = "Achievements" + L["completed"] = "Completed" + L["completed"] = "completed" + L["itemID"] = "itemID" + L["mapID"] = "mapID" + L["minimum % Upgrade"] = "minimum % Upgrade" + L["minimum Gold"] = "minimum Gold" + L["minimum ItemLevel Upgrade"] = "minimum ItemLevel Upgrade" + L["mounts"] = "Mounts" + L["none"] = "none" + L["notCompleted"] = "Not completed" + L["pets"] = "Pets" + L["toys"] = "Toys" + L["tracking_always"] = "Always track" + L["tracking_default"] = "Default" + L["tracking_disabled"] = "Don't track" + L["tracking_exclusive"] = "Only track with this character" + L["tracking_other"] = "Only tracked by %s" + L["tracking_wasEarnedByMe"] = "Track if not earned by active character" if locale == "deDE" then L["WQChat"] = "Interessante Weltquests verfügbar:" L["WQforAch"] = "%s für %s" @@ -63,4 +147,109 @@ elseif locale == "frFR" then L["LE_QUEST_TAG_TYPE_PET_BATTLE"] = "Combat de mascotte" L["LE_QUEST_TAG_TYPE_PROFESSION"] = "Métier" L["LE_QUEST_TAG_TYPE_DUNGEON"] = "Donjon" +elseif locale == "zhCN" then + L["% Upgrade (Pawn)"] = "% 升级 (Pawn)" + L["% Upgrade (Stat Weight Score)"] = "% 升级 (属性权重评分)" + L["Achievement"] = "成就" + L["achievements"] = "成就" + L["Add a Mission Reward you want to track"] = "添加你想要追踪的任务奖励" + L["Add a Mission you want to track"] = "添加你想要追踪的任务" + L["Add a Quest you want to track"] = "添加你想要追踪的任务" + L["Add a World Quest Reward you want to track"] = "添加你想要追踪的世界任务奖励" + L["Add"] = "添加" + L["Armor Cache"] = "护甲缓存" + L["Azerite Armor Cache"] = "艾泽里特护甲缓存" + L["Azerite Traits"] = "艾泽里特特质" + L["Chat"] = "聊天" + L["Close PopUp with ESC"] = "按 ESC 关闭弹出窗口" + L["Comma separated spellIDs"] = "以逗号分隔的法术ID" + L["completed"] = "已完成" + L["completed"] = "已完成" + L["Conduit"] = "导灵器" + L["Configure custom Mission Rewards"] = "配置自定义任务奖励" + L["Configure custom Missions"] = "配置自定义任务" + L["Configure custom World Quest Rewards"] = "配置自定义世界任务奖励" + L["Configure custom World Quests"] = "配置自定义世界任务" + L["Currencies"] = "货币" + L["Custom"] = "自定义" + L["Delay on login in s"] = "登录延迟(秒)" + L["Delay output while in combat"] = "战斗中延迟输出" + L["Delete"] = "删除" + L["Emissary Quests"] = "特使任务" + L["Enter an achievementID or itemID"] = "输入成就ID或物品ID" + L["Gear"] = "装备" + L["General"] = "常规" + L["Gold"] = "金币" + L["IsActive"] = "是否激活" + L["IsActive:\nUse this as a last resort. Works for some daily quests.\n\nIsQuestFlaggedCompleted:\nUse this for quests, that are always active.\n\nQuest Pin:\nUse this, if the daily is marked with a quest pin on the world map.\n\nWorld Quest:\nUse this, if you want to track a world quest."] = "是否激活:\n作为最后手段使用。适用于某些日常任务。\n\n任务标记完成:\n用于始终激活的任务。\n\n任务图标:\n如果日常任务在世界地图上标记了任务图标,请使用此项。\n\n世界任务:\n如果你想追踪一个世界任务,请使用此项。" + L["IsQuestFlaggedCompleted"] = "任务标记完成" + L["Item"] = "物品" + L["itemID"] = "物品ID" + L["ItemLevel Upgrade"] = "物品等级升级" + L["Jewelry Cache"] = "珠宝缓存" + L["LE_QUEST_TAG_TYPE_DUNGEON"] = "地下城" + L["LE_QUEST_TAG_TYPE_PET_BATTLE"] = "宠物战斗" + L["LE_QUEST_TAG_TYPE_PROFESSION"] = "职业" + L["LE_QUEST_TAG_TYPE_PVP"] = "PVP" + L["mapID"] = "地图ID" + L["minimum % Upgrade"] = "最低 % 升级" + L["minimum Gold"] = "最低金币" + L["minimum ItemLevel Upgrade"] = "最低物品等级升级" + L["Mission Table & Shipyard"] = "任务桌 或 船坞" + L["Mission Table"] = "任务桌" + L["Mission"] = "任务" + L["MissionID"] = "任务ID" + L["mounts"] = "坐骑" + L["none"] = "无" + L["notCompleted"] = "未完成" + L["Options"] = "选项" + L["pets"] = "宠物" + L["PopUp"] = "弹出窗口" + L["Professions"] = "职业" + L["Quest pin tracking needs a mapID.\nSee https://wow.gamepedia.com/UiMapID for help."] = "任务图标追踪需要一个地图ID。\n请参见 https://wow.gamepedia.com/UiMapID 获取帮助。" + L["Quest Pin"] = "任务图标" + L["Quest type"] = "任务类型" + L["QuestID"] = "任务ID" + L["Recipes"] = "配方" + L["Remember PopUp position"] = "记住弹出窗口位置" + L["Reputation"] = "声望" + L["Requires a reload"] = "需要重新加载" + L["Reward (optional)"] = "奖励(可选)" + L["Reward type"] = "奖励类型" + L["Reward"] = "奖励" + L["Rewards"] = "奖励" + L["Select where WQA is allowed to post"] = "选择 WQA 允许发布的位置" + L["Setting is per character"] = "设置是按角色进行的" + L["Show expansion in chat"] = "在聊天中显示资料片" + L["Show expansion in popup"] = "在弹出窗口中显示资料片" + L["Show Minimap Icon"] = "显示小地图图标" + L["Show time left in chat"] = "在聊天中显示剩余时间" + L["Show time left in popup"] = "在弹出窗口中显示剩余时间" + L["Show zone in chat"] = "在聊天中显示区域" + L["Show zone in popup"] = "在弹出窗口中显示区域" + L["Skill level is maxed out*"] = "技能等级已达到上限*" + L["Skillup"] = "技能提升" + L["Sort quests by name"] = "按名称排序任务" + L["Sort quests by zone name"] = "按区域名称排序任务" + L["toys"] = "玩具" + L["Track conduit"] = "追踪导灵器" + L["Track every World Quest until skill level is maxed out"] = "追踪每个世界任务直到技能等级达到上限" + L["tracking_always"] = "始终追踪" + L["tracking_default"] = "默认" + L["tracking_disabled"] = "不追踪" + L["tracking_exclusive"] = "仅由此角色追踪" + L["tracking_other"] = "仅由 %s 追踪" + L["tracking_wasEarnedByMe"] = "如果不是由当前角色获得,则追踪" + L["Unknown appearance"] = "未知外观" + L["Unknown source"] = "未知来源" + L["Use World Quest Tracker"] = "使用世界任务追踪器" + L["Weapon Cache"] = "武器缓存" + L["World Quest Type"] = "世界任务类型" + L["World Quest"] = "世界任务" + L["World Quests"] = "世界任务" + L["WQChat"] = "有趣的世界任务正在进行:" + L["WQforAch"] = "%s 用于 %s" + L["WQforAchTime"] = "%s (%s) 用于 %s" + L["Zones"] = "区域" + L["NO_QUESTS"] = "没有有趣的世界任务!" end From 54fd7126e001a6d0f07f02f2b4b7c0955cad2434 Mon Sep 17 00:00:00 2001 From: Maple Saint <2303601+nanjuekaien1@users.noreply.github.com> Date: Thu, 2 Jan 2025 20:32:46 +0800 Subject: [PATCH 3/9] Update Tooltip.lua --- Tooltip.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tooltip.lua b/Tooltip.lua index d89f80f..b6f3461 100644 --- a/Tooltip.lua +++ b/Tooltip.lua @@ -23,8 +23,8 @@ function WQA:CreateQTip() tooltip:AddColumn() end - tooltip:AddHeader("World Quest") - tooltip:SetCell(1, tooltip:GetColumnCount(), "Reward") + tooltip:AddHeader(_G.WORLD_QUEST_BANNER) + tooltip:SetCell(1, tooltip:GetColumnCount(), _G.REWARDS) tooltip:SetFrameStrata("MEDIUM") tooltip:SetFrameLevel(100) tooltip:AddSeparator() From 459c50168fc72232aef6afd9ca78a86a738c5a48 Mon Sep 17 00:00:00 2001 From: Maple Saint <2303601+nanjuekaien1@users.noreply.github.com> Date: Thu, 2 Jan 2025 20:34:01 +0800 Subject: [PATCH 4/9] Update Expansions.lua --- DB/Expansions.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/DB/Expansions.lua b/DB/Expansions.lua index 67cbe98..2281b17 100644 --- a/DB/Expansions.lua +++ b/DB/Expansions.lua @@ -1,10 +1,10 @@ local WQA = WQAchievements WQA.ExpansionList = { - [6] = "Warlords of Draenor", - [7] = "Legion", - [8] = "Battle for Azeroth", - [9] = "Shadowlands", - [10] = "Dragonflight", - [11] = "War Within" + [6] = _G.EXPANSION_NAME5, -- "Warlords of Draenor" + [7] = _G.EXPANSION_NAME6, -- "Legion" + [8] = _G.EXPANSION_NAME7, -- "Battle for Azeroth" + [9] = _G.EXPANSION_NAME8, -- "Shadowlands" + [10] = _G.EXPANSION_NAME9, -- "Dragonflight" + [11] = _G.EXPANSION_NAME10, -- "War Within" } From cd2db7da1ad77049254fc163845e0a00ac7c887f Mon Sep 17 00:00:00 2001 From: Maple Saint <2303601+nanjuekaien1@users.noreply.github.com> Date: Thu, 2 Jan 2025 20:35:26 +0800 Subject: [PATCH 5/9] Update BattleForAzeroth.lua --- DB/Data/BattleForAzeroth.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DB/Data/BattleForAzeroth.lua b/DB/Data/BattleForAzeroth.lua index 60fee14..fea3f92 100644 --- a/DB/Data/BattleForAzeroth.lua +++ b/DB/Data/BattleForAzeroth.lua @@ -2,7 +2,7 @@ local WQA = WQAchievements -- Battle for Azeroth local data = { - name = "Battle for Azeroth" + name = _G.EXPANSION_NAME7 } WQA.data[8] = data From d5903db7d4082839df6062472b96de4df1202b31 Mon Sep 17 00:00:00 2001 From: Maple Saint <2303601+nanjuekaien1@users.noreply.github.com> Date: Thu, 2 Jan 2025 20:35:54 +0800 Subject: [PATCH 6/9] Update Dragonflight.lua --- DB/Data/Dragonflight.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DB/Data/Dragonflight.lua b/DB/Data/Dragonflight.lua index bccbf4b..4257fff 100644 --- a/DB/Data/Dragonflight.lua +++ b/DB/Data/Dragonflight.lua @@ -2,7 +2,7 @@ local WQA = WQAchievements -- Dragonflight local data = { - name = "Dragonflight" + name = _G.EXPANSION_NAME9 } WQA.data[10] = data From 4e0ca445576eeed15fc16c5de8a6a2ea69fc1fee Mon Sep 17 00:00:00 2001 From: Maple Saint <2303601+nanjuekaien1@users.noreply.github.com> Date: Thu, 2 Jan 2025 20:36:10 +0800 Subject: [PATCH 7/9] Update Legion.lua --- DB/Data/Legion.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DB/Data/Legion.lua b/DB/Data/Legion.lua index da2c2c6..5454461 100644 --- a/DB/Data/Legion.lua +++ b/DB/Data/Legion.lua @@ -2,7 +2,7 @@ local WQA = WQAchievements -- Legion local data = { - name = "Legion" + name = _G.EXPANSION_NAME6 } WQA.data[7] = data From 4e19abf0ab7246d85c64cf9ee0c71bd2d8b44d3d Mon Sep 17 00:00:00 2001 From: Maple Saint <2303601+nanjuekaien1@users.noreply.github.com> Date: Thu, 2 Jan 2025 20:36:30 +0800 Subject: [PATCH 8/9] Update Shadowlands.lua --- DB/Data/Shadowlands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DB/Data/Shadowlands.lua b/DB/Data/Shadowlands.lua index 610e76e..22e7ba7 100644 --- a/DB/Data/Shadowlands.lua +++ b/DB/Data/Shadowlands.lua @@ -2,7 +2,7 @@ local WQA = WQAchievements -- Shadowlands local data = { - name = "Shadowlands" + name = _G.EXPANSION_NAME8 } WQA.data[9] = data From 439138b0ebad22ca1ec78a99c527897ad9165b97 Mon Sep 17 00:00:00 2001 From: Maple Saint <2303601+nanjuekaien1@users.noreply.github.com> Date: Thu, 2 Jan 2025 20:36:50 +0800 Subject: [PATCH 9/9] Update WarWithin.lua --- DB/Data/WarWithin.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DB/Data/WarWithin.lua b/DB/Data/WarWithin.lua index b5ad4e6..7c8f0e9 100644 --- a/DB/Data/WarWithin.lua +++ b/DB/Data/WarWithin.lua @@ -2,7 +2,7 @@ local WQA = WQAchievements -- War Within local data = { - name = "War Within" + name = _G.EXPANSION_NAME10 } WQA.data[11] = data