From 28b74a524553018f1b270d81490fb7e6c47b9966 Mon Sep 17 00:00:00 2001 From: Road-block Date: Mon, 22 Jan 2018 16:12:59 +0200 Subject: [PATCH] Add warning to localization --- localization.lua | 2 ++ shootyepgp.lua | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/localization.lua b/localization.lua index 0d7ec1f..449734e 100644 --- a/localization.lua +++ b/localization.lua @@ -172,6 +172,7 @@ Results will print here when done.]], ["%s looted %s. What do you want to do?"] = true, ["GP Actions"] = true, ["Remind me Later"] = true, + ["Need MasterLooter to perform Bid Calls!"] = true, } end) L:RegisterTranslations("zhCN", function() return { @@ -346,4 +347,5 @@ L:RegisterTranslations("zhCN", function() return { ["%s looted %s. What do you want to do?"] = "%s 拾取了 %s. 你想做什么?", ["GP Actions"] = "GP 操作", ["Remind me Later"] = "以后提醒我", + ["Need MasterLooter to perform Bid Calls!"] = "Need MasterLooter to perform Bid Calls!", } end) \ No newline at end of file diff --git a/shootyepgp.lua b/shootyepgp.lua index 8252c51..8176db2 100644 --- a/shootyepgp.lua +++ b/shootyepgp.lua @@ -465,8 +465,8 @@ function sepgp:LootFrameItem_OnClick(button,data) if not IsAltKeyDown() then return end if not UnitInRaid("player") then return end if not (self:lootMaster()) then - self:defaultPrint("Need MasterLooter to perform Bid Calls!") - UIErrorsFrame:AddMessage("Need MasterLooter to perform Bid Calls!",1,0,0) + self:defaultPrint(L["Need MasterLooter to perform Bid Calls!"]) + UIErrorsFrame:AddMessage(L["Need MasterLooter to perform Bid Calls!"],1,0,0) return end local slot, quality @@ -502,8 +502,8 @@ function sepgp:ContainerFrameItemButton_OnClick(button,ignoreModifiers) return self.hooks["ContainerFrameItemButton_OnClick"](button,ignoreModifiers) end if not (self:lootMaster()) then - self:defaultPrint("Need MasterLooter to perform Bid Calls!") - UIErrorsFrame:AddMessage("Need MasterLooter to perform Bid Calls!",1,0,0) + self:defaultPrint(L["Need MasterLooter to perform Bid Calls!"]) + UIErrorsFrame:AddMessage(L["Need MasterLooter to perform Bid Calls!"],1,0,0) return self.hooks["ContainerFrameItemButton_OnClick"](button,ignoreModifiers) end if not (this._hasExtraClicks) then