mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +00:00
Localize hardcoded user-facing nameplate/bag/frame strings
Route the remaining hardcoded English labels through the T translation table and register the keys in enUS: - bags: "Sort Bags" / "Sort Bank" tooltips - farmmode: "FARM MODE" overlay - unitxp: "BEHIND" / "NO LOS" target indicators - unitframes: raid group header "Group" (reuses the existing key) - bgscore: "Battleground Frames" mover title
This commit is contained in:
+1
-1
@@ -1409,7 +1409,7 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick)
|
|||||||
f.group:SetFont(pfUI.font_unit, 8, "OUTLINE")
|
f.group:SetFont(pfUI.font_unit, 8, "OUTLINE")
|
||||||
f.group:SetTextColor(1,1,1,.8)
|
f.group:SetTextColor(1,1,1,.8)
|
||||||
f.group:SetHeight(16)
|
f.group:SetHeight(16)
|
||||||
f.group:SetText("Group " .. group)
|
f.group:SetText(T["Group"] .. " " .. group)
|
||||||
f.group:Hide()
|
f.group:Hide()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Vendored
+6
@@ -62,7 +62,9 @@ pfUI_translation["enUS"] = {
|
|||||||
["Bankslots Per Row"] = nil,
|
["Bankslots Per Row"] = nil,
|
||||||
["Bar Background"] = nil,
|
["Bar Background"] = nil,
|
||||||
["Bar Texture"] = nil,
|
["Bar Texture"] = nil,
|
||||||
|
["Battleground Frames"] = nil,
|
||||||
["Battleground Statistics"] = nil,
|
["Battleground Statistics"] = nil,
|
||||||
|
["BEHIND"] = nil,
|
||||||
["Blacklist"] = nil,
|
["Blacklist"] = nil,
|
||||||
["Blinding Powder"] = nil,
|
["Blinding Powder"] = nil,
|
||||||
["Blue Border On Friendly Players"] = nil,
|
["Blue Border On Friendly Players"] = nil,
|
||||||
@@ -328,6 +330,7 @@ pfUI_translation["enUS"] = {
|
|||||||
["Export"] = nil,
|
["Export"] = nil,
|
||||||
["Face"] = nil,
|
["Face"] = nil,
|
||||||
["Fade To Custom Color"] = nil,
|
["Fade To Custom Color"] = nil,
|
||||||
|
["FARM MODE"] = nil,
|
||||||
["Fast"] = nil,
|
["Fast"] = nil,
|
||||||
["Filter Mode"] = nil,
|
["Filter Mode"] = nil,
|
||||||
["Finish"] = nil,
|
["Finish"] = nil,
|
||||||
@@ -538,6 +541,7 @@ pfUI_translation["enUS"] = {
|
|||||||
["Next Memory Cleanup"] = nil,
|
["Next Memory Cleanup"] = nil,
|
||||||
["No"] = nil,
|
["No"] = nil,
|
||||||
["No Anchor"] = nil,
|
["No Anchor"] = nil,
|
||||||
|
["NO LOS"] = nil,
|
||||||
["None"] = nil,
|
["None"] = nil,
|
||||||
["Not a valid button!"] = nil,
|
["Not a valid button!"] = nil,
|
||||||
["No tracking spell active"] = nil,
|
["No tracking spell active"] = nil,
|
||||||
@@ -773,6 +777,8 @@ pfUI_translation["enUS"] = {
|
|||||||
["Small"] = nil,
|
["Small"] = nil,
|
||||||
["Some settings need to reload the UI to take effect.\nDo you want to reload now?"] = nil,
|
["Some settings need to reload the UI to take effect.\nDo you want to reload now?"] = nil,
|
||||||
["Some settings need to reload the UI to take effect.\nDo you want to reloadUI now?"] = nil,
|
["Some settings need to reload the UI to take effect.\nDo you want to reloadUI now?"] = nil,
|
||||||
|
["Sort Bags"] = nil,
|
||||||
|
["Sort Bank"] = nil,
|
||||||
["Sort Order"] = nil,
|
["Sort Order"] = nil,
|
||||||
["Soul Shard"] = nil,
|
["Soul Shard"] = nil,
|
||||||
["Soulshard Counter"] = nil,
|
["Soulshard Counter"] = nil,
|
||||||
|
|||||||
+2
-2
@@ -972,7 +972,7 @@ pfUI:RegisterModule("bags", function ()
|
|||||||
frame.sort.backdrop:SetBackdropBorderColor(1,1,.25,1)
|
frame.sort.backdrop:SetBackdropBorderColor(1,1,.25,1)
|
||||||
frame.sort.texture:SetVertexColor(1,1,.25,1)
|
frame.sort.texture:SetVertexColor(1,1,.25,1)
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
|
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
|
||||||
GameTooltip:SetText("Sort Bags")
|
GameTooltip:SetText(T["Sort Bags"])
|
||||||
GameTooltip:Show()
|
GameTooltip:Show()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
@@ -1207,7 +1207,7 @@ pfUI:RegisterModule("bags", function ()
|
|||||||
frame.sort.backdrop:SetBackdropBorderColor(1,1,.25,1)
|
frame.sort.backdrop:SetBackdropBorderColor(1,1,.25,1)
|
||||||
frame.sort.texture:SetVertexColor(1,1,.25,1)
|
frame.sort.texture:SetVertexColor(1,1,.25,1)
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
|
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
|
||||||
GameTooltip:SetText("Sort Bank")
|
GameTooltip:SetText(T["Sort Bank"])
|
||||||
GameTooltip:Show()
|
GameTooltip:Show()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -32,7 +32,7 @@ pfUI:RegisterModule("bgscore", function ()
|
|||||||
-- Title label
|
-- Title label
|
||||||
local title = mover:CreateFontString(nil, "OVERLAY")
|
local title = mover:CreateFontString(nil, "OVERLAY")
|
||||||
title:SetFont("Fonts\\FRIZQT__.TTF", 14, "OUTLINE")
|
title:SetFont("Fonts\\FRIZQT__.TTF", 14, "OUTLINE")
|
||||||
title:SetText("Battleground Frames")
|
title:SetText(T["Battleground Frames"])
|
||||||
title:SetPoint("TOP", mover, "TOP", 0, -2)
|
title:SetPoint("TOP", mover, "TOP", 0, -2)
|
||||||
|
|
||||||
-- BG score preview text
|
-- BG score preview text
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ pfUI:RegisterModule("farmmode", function ()
|
|||||||
pfUI.farmmap.button.txt = pfUI.farmmap.button:CreateFontString("pfFarmMapText", "LOW", "GameFontWhite")
|
pfUI.farmmap.button.txt = pfUI.farmmap.button:CreateFontString("pfFarmMapText", "LOW", "GameFontWhite")
|
||||||
pfUI.farmmap.button.txt:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE")
|
pfUI.farmmap.button.txt:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE")
|
||||||
pfUI.farmmap.button.txt:SetPoint("CENTER", 0, 0)
|
pfUI.farmmap.button.txt:SetPoint("CENTER", 0, 0)
|
||||||
pfUI.farmmap.button.txt:SetText("|cff33ffcc FARM MODE")
|
pfUI.farmmap.button.txt:SetText("|cff33ffcc " .. T["FARM MODE"])
|
||||||
end
|
end
|
||||||
|
|
||||||
CreateBackdrop(pfUI.farmmap)
|
CreateBackdrop(pfUI.farmmap)
|
||||||
|
|||||||
+2
-2
@@ -28,7 +28,7 @@ pfUI:RegisterModule("unitxp", function ()
|
|||||||
behindFrame.text:SetFont(pfUI.font_default, fontSize, "OUTLINE")
|
behindFrame.text:SetFont(pfUI.font_default, fontSize, "OUTLINE")
|
||||||
behindFrame.text:SetPoint("RIGHT", behindFrame, "RIGHT", -1, 0)
|
behindFrame.text:SetPoint("RIGHT", behindFrame, "RIGHT", -1, 0)
|
||||||
behindFrame.text:SetTextColor(0.3, 1, 0.3, 1)
|
behindFrame.text:SetTextColor(0.3, 1, 0.3, 1)
|
||||||
behindFrame.text:SetText("BEHIND")
|
behindFrame.text:SetText(T["BEHIND"])
|
||||||
behindFrame.text:Hide()
|
behindFrame.text:Hide()
|
||||||
|
|
||||||
local lastCheck = 0
|
local lastCheck = 0
|
||||||
@@ -62,7 +62,7 @@ pfUI:RegisterModule("unitxp", function ()
|
|||||||
losFrame.text:SetFont(pfUI.font_default, fontSize, "OUTLINE")
|
losFrame.text:SetFont(pfUI.font_default, fontSize, "OUTLINE")
|
||||||
losFrame.text:SetPoint("RIGHT", losFrame, "RIGHT", -1, -slot)
|
losFrame.text:SetPoint("RIGHT", losFrame, "RIGHT", -1, -slot)
|
||||||
losFrame.text:SetTextColor(1, 0.3, 0.3, 1)
|
losFrame.text:SetTextColor(1, 0.3, 0.3, 1)
|
||||||
losFrame.text:SetText("NO LOS")
|
losFrame.text:SetText(T["NO LOS"])
|
||||||
losFrame.text:Hide()
|
losFrame.text:Hide()
|
||||||
|
|
||||||
local lastCheck = 0
|
local lastCheck = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user