core: add translations to all texts
This commit is contained in:
+4
-3
@@ -1,4 +1,5 @@
|
||||
local _G = ShaguTweaks.GetGlobalEnv()
|
||||
local T = ShaguTweaks.T
|
||||
local GetExpansion = ShaguTweaks.GetExpansion
|
||||
local mod = math.mod or mod
|
||||
|
||||
@@ -47,7 +48,7 @@ settings.title.tex:SetTexture("Interface\\DialogFrame\\UI-DialogBox-Header")
|
||||
settings.title.tex:SetAllPoints()
|
||||
|
||||
settings.title.text = settings.title:CreateFontString(nil, "HIGH", "GameFontNormal")
|
||||
settings.title.text:SetText("Advanced Options")
|
||||
settings.title.text:SetText(T["Advanced Options"])
|
||||
settings.title.text:SetPoint("TOP", 0, -14)
|
||||
|
||||
settings.cancel = CreateFrame("Button", "AdvancedSettingsGUICancel", settings, "GameMenuButtonTemplate")
|
||||
@@ -102,7 +103,7 @@ settings.load = function(self)
|
||||
local gui = {}
|
||||
for title, module in pairs(ShaguTweaks.mods) do
|
||||
if module.expansions[expansion] then
|
||||
local category = module.category or "General"
|
||||
local category = module.category or T["General"]
|
||||
gui[category] = gui[category] or {}
|
||||
gui[category][title] = module
|
||||
end
|
||||
@@ -228,7 +229,7 @@ end
|
||||
|
||||
local advanced = CreateFrame("Button", "GameMenuButtonAdvancedOptions", GameMenuFrame, "GameMenuButtonTemplate")
|
||||
advanced:SetPoint("TOP", GameMenuButtonUIOptions, "BOTTOM", 0, -1)
|
||||
advanced:SetText("Advanced Options|cffffff00*")
|
||||
advanced:SetText(T["Advanced Options"] .. "|cffffff00*")
|
||||
advanced:SetScript("OnClick", function()
|
||||
HideUIPanel(GameMenuFrame)
|
||||
settings:Show()
|
||||
|
||||
Reference in New Issue
Block a user