core: add translations to all texts

This commit is contained in:
shikulja
2024-01-25 23:20:32 +01:00
committed by shagu
parent a07351c4ea
commit fd56ed9192
40 changed files with 340 additions and 112 deletions
+7 -6
View File
@@ -1,10 +1,11 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local module = ShaguTweaks:register({
title = "MiniMap Clock",
description = "Adds a small 24h clock to the mini map.",
title = T["MiniMap Clock"],
description = T["Adds a small 24h clock to the mini map."],
expansions = { ["vanilla"] = true, ["tbc"] = nil },
category = "World & MiniMap",
category = T["World & MiniMap"],
enabled = nil,
})
@@ -43,9 +44,9 @@ module.enable = function(self)
GameTooltip:ClearLines()
GameTooltip:SetOwner(this, ANCHOR_BOTTOMLEFT)
GameTooltip:AddLine("Clock")
GameTooltip:AddDoubleLine("Localtime", time, 1,1,1,1,1,1)
GameTooltip:AddDoubleLine("Servertime", servertime, 1,1,1,1,1,1)
GameTooltip:AddLine(T["Clock"])
GameTooltip:AddDoubleLine(T["Localtime"], time, 1,1,1,1,1,1)
GameTooltip:AddDoubleLine(T["Servertime"], servertime, 1,1,1,1,1,1)
GameTooltip:Show()
end)