From a3e5c7a2196e1496f3ad9b3a263279c6a7f569a9 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 3 Mar 2025 17:40:13 +0100 Subject: [PATCH] panel: localize item names of inventory counters --- modules/panel.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/panel.lua b/modules/panel.lua index f1cccae1..da8fff12 100644 --- a/modules/panel.lua +++ b/modules/panel.lua @@ -556,9 +556,9 @@ pfUI:RegisterModule("panel", "vanilla:tbc", function() widget:SetScript("OnEvent", function() local _, class = UnitClass("player") if class == "WARLOCK" then - local count = pfUI.api.GetItemCount("Soul Shard") + local count = pfUI.api.GetItemCount(T["Soul Shard"]) pfUI.panel:OutputPanel("soulshard", T["Soulshards"] .. ": " .. count) - end + end end) end @@ -578,7 +578,7 @@ pfUI:RegisterModule("panel", "vanilla:tbc", function() widget:SetScript("OnEvent", function() local _, class = UnitClass("player") if class == "ROGUE" then - local count = pfUI.api.GetItemCount("Flash Powder") + local count = pfUI.api.GetItemCount(T["Flash Powder"]) pfUI.panel:OutputPanel("flashpowder", T["Flash Powder"] .. ": " .. count) end end) @@ -591,7 +591,7 @@ pfUI:RegisterModule("panel", "vanilla:tbc", function() widget:SetScript("OnEvent", function() local _, class = UnitClass("player") if class == "ROGUE" then - local count = pfUI.api.GetItemCount("Thistle Tea") + local count = pfUI.api.GetItemCount(T["Thistle Tea"]) pfUI.panel:OutputPanel("thistletea", T["Thistle Tea"] .. ": " .. count) end end) @@ -604,7 +604,7 @@ pfUI:RegisterModule("panel", "vanilla:tbc", function() widget:SetScript("OnEvent", function() local _, class = UnitClass("player") if class == "ROGUE" then - local count = pfUI.api.GetItemCount("Blinding Powder") + local count = pfUI.api.GetItemCount(T["Blinding Powder"]) pfUI.panel:OutputPanel("blindpowder", T["Blinding Powder"] .. ": " .. count) end end)