local i=CzWoW_interface; local n=CzWoW_interface_entoname; --GameMenuFrame begin CzWoW_MAIN_MENU:SetText(i["MAIN_MENU"]); GameMenuButtonOptions:SetText(i["VIDEOOPTIONS_MENU"]); GameMenuButtonSoundOptions:SetText(i["SOUNDOPTIONS_MENU"]); GameMenuButtonUIOptions:SetText(i["UIOPTIONS_MENU"]); GameMenuButtonKeybindings:SetText(i["KEY_BINDINGS"]); GameMenuButtonMacros:SetText(i["MACROS"]); GameMenuButtonLogout:SetText(i["LOGOUT"]); GameMenuButtonQuit:SetText(i["EXIT_GAME"]); GameMenuButtonContinue:SetText(i["RETURN_TO_GAME"]); --GameMenuFrame end --OptionsFrame begin CzWoW_VIDEOOPTIONS_MENU:SetText(i["VIDEOOPTIONS_MENU"]); OptionsFrameResolutionDropDownLabel:SetText(i["RESOLUTION"]); --OptionsFrame end --hooksecurefunc(GameTooltip, "SetOwner", function(a, object) DEFAULT_CHAT_FRAME:AddMessage(object:GetName()); end); --GameTooltipFrame begin local oldTooltipSetText=GameTooltip["SetText"]; GameTooltip["SetText"]=function(object, text, r, g, b, alphaValue, textWrap) if type(n[text])=="string" then text=i[n[text]]; end oldTooltipSetText(object, text, r, g, b, alphaValue, textWrap); end --hooksecurefunc(GameTooltip, "SetText", TooltipSetText); --GameTooltipFrame end