From e04670392b8e36322d95ab12808036710b53ab14 Mon Sep 17 00:00:00 2001 From: Ludovicus Date: Tue, 14 Jul 2020 13:20:43 -0400 Subject: [PATCH] Add L lookups for Player: and Cursor: on map. --- TomTom.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/TomTom.lua b/TomTom.lua index a420f57..8cb2b57 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -1021,17 +1021,17 @@ do local opt = TomTom.db.profile if not x or not y then - self.Player:SetText("Player: ---") + self.Player:SetText(L["Player: ---"]) else - self.Player:SetFormattedText("Player: %s", RoundCoords(x, y, opt.mapcoords.playeraccuracy)) + self.Player:SetFormattedText(L["Player: %s"], RoundCoords(x, y, opt.mapcoords.playeraccuracy)) end local cX, cY = GetCurrentCursorPosition() if not cX or not cY then - self.Cursor:SetText("Cursor: ---") + self.Cursor:SetText(L["Cursor: ---"]) else - self.Cursor:SetFormattedText("Cursor: %s", RoundCoords(cX, cY, opt.mapcoords.cursoraccuracy)) + self.Cursor:SetFormattedText(L["Cursor: %s"], RoundCoords(cX, cY, opt.mapcoords.cursoraccuracy)) end end end @@ -1115,7 +1115,7 @@ function TomTom:DebugListAllWaypoints() for m in pairs(waypoints) do local c,z,w = TomTom:GetCZWFromMapID(m) local zoneName = hbd:GetLocalizedMap(m) or "?" - self:Printf("%s: (map: %d, zone: %s, continent: %s, world: %s)", zoneName, m, tostring(z), tostring(c), tostring(w)) + self:Printf(L["%s: (map: %d, zone: %s, continent: %s, world: %s)"], zoneName, m, tostring(z), tostring(c), tostring(w)) for key, wp in pairs(waypoints[m]) do local ctxt = RoundCoords(wp[2], wp[3], 2) local desc = wp.title and wp.title or L["Unknown waypoint"] -- 1.7.9.5