From 482c03ca2661ced67a99b49877397fc3512d4a0b Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 18 Oct 2017 23:49:50 +0200 Subject: [PATCH] translations: add missing words --- modules/autovendor.lua | 6 +++--- modules/bags.lua | 6 +++--- modules/sellvalue.lua | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/autovendor.lua b/modules/autovendor.lua index cfe5b523..8792496e 100644 --- a/modules/autovendor.lua +++ b/modules/autovendor.lua @@ -4,7 +4,7 @@ pfUI:RegisterModule("autovendor", function () local function RepairItems() local cost, possible = GetRepairAllCost() if cost > 0 and possible then - DEFAULT_CHAT_FRAME:AddMessage("Your items have been repaired for " .. CreateGoldString(cost)) + DEFAULT_CHAT_FRAME:AddMessage(T["Your items have been repaired for"] .. " " .. CreateGoldString(cost)) RepairAllItems() end end @@ -70,7 +70,7 @@ pfUI:RegisterModule("autovendor", function () autovendor:SetScript("OnHide", function() if this.count > 0 then - DEFAULT_CHAT_FRAME:AddMessage("Your vendor trash has been sold and you earned " .. CreateGoldString(this.price)) + DEFAULT_CHAT_FRAME:AddMessage(T["Your vendor trash has been sold and you earned"] .. " " .. CreateGoldString(this.price)) end end) @@ -112,7 +112,7 @@ pfUI:RegisterModule("autovendor", function () autovendor.button:SetHighlightTexture("Interface\\Buttons\\ButtonHilight-Square") autovendor.button:SetScript("OnEnter", function() GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); - GameTooltip:SetText("Sell Grey Items"); + GameTooltip:SetText(T["Sell Grey Items"]); GameTooltip:Show(); end) diff --git a/modules/bags.lua b/modules/bags.lua index 92479a20..fafb9d07 100644 --- a/modules/bags.lua +++ b/modules/bags.lua @@ -559,7 +559,7 @@ pfUI:RegisterModule("bags", function () frame.search.edit:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE") frame.search.edit:SetAutoFocus(false) - frame.search.edit:SetText("Search") + frame.search.edit:SetText(T["Search"]) frame.search.edit:SetTextColor(.5,.5,.5,1) frame.search.edit:SetScript("OnEditFocusGained", function() @@ -567,7 +567,7 @@ pfUI:RegisterModule("bags", function () end) frame.search.edit:SetScript("OnEditFocusLost", function() - this:SetText("Search") + this:SetText(T["Search"]) for bag=-2, 11 do local bagsize = GetContainerNumSlots(bag) if bag == -2 and pfUI.bag.showKeyring == true then bagsize = GetKeyRingSize() end @@ -581,7 +581,7 @@ pfUI:RegisterModule("bags", function () end) frame.search.edit:SetScript("OnTextChanged", function() - if this:GetText() == "Search" then return end + if this:GetText() == T["Search"] then return end for bag=-2, 11 do local bagsize = GetContainerNumSlots(bag) if bag == -2 and pfUI.bag.showKeyring == true then bagsize = GetKeyRingSize() end diff --git a/modules/sellvalue.lua b/modules/sellvalue.lua index 22cdc14a..4e40bcc3 100644 --- a/modules/sellvalue.lua +++ b/modules/sellvalue.lua @@ -25,15 +25,15 @@ pfUI:RegisterModule("sellvalue", function () GameTooltip:AddLine(" ") if count > 1 then - GameTooltip:AddDoubleLine("Sell:", CreateGoldString(sell) .. "|cff555555 // " .. CreateGoldString(sell*count), 1, 1, 1); + GameTooltip:AddDoubleLine(T["Sell"] .. ":", CreateGoldString(sell) .. "|cff555555 // " .. CreateGoldString(sell*count), 1, 1, 1); else - GameTooltip:AddDoubleLine("Sell:", CreateGoldString(sell * count), 1, 1, 1); + GameTooltip:AddDoubleLine(T["Sell"] .. ":", CreateGoldString(sell * count), 1, 1, 1); end if count > 1 then - GameTooltip:AddDoubleLine("Buy:", CreateGoldString(buy) .. "|cff555555 // " .. CreateGoldString(buy*count), 1, 1, 1); + GameTooltip:AddDoubleLine(T["Buy"] .. ":", CreateGoldString(buy) .. "|cff555555 // " .. CreateGoldString(buy*count), 1, 1, 1); else - GameTooltip:AddDoubleLine("Buy:", CreateGoldString(buy), 1, 1, 1); + GameTooltip:AddDoubleLine(T["Buy"] .. ":", CreateGoldString(buy), 1, 1, 1); end end GameTooltip:Show()