Thanks Vrul, this is a good way, but not quite it working.
Lua Code:
hooksecurefunc(QUEST_TRACKER_MODULE, "SetBlockHeader", function(self, block)
local objectives = block.lines
if objectives.QuestComplete then
objectives.QuestComplete.Text:SetText("Gotowy do oddania"); -- Ready for turn-in
else
for index = 1, #objectives do
objectives[index].Text:SetText("My translation");
end
end
end)
Line 4. and 7. - does not change the text in ObjectiveTracker on the game.
Blizzard does not support the Polish language in the game, so I developed some addons that display translated texts in key places in the game (quests, gossip, bubbles, cinematic subtitles, tutarials).