core: add translations to all texts
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user