source: client_files/_czwow/Interface/AddOns/CzWoW/Localization.lua

Last change on this file was 1, checked in by george, 17 years ago

Import z původního repozitáře http://game/svn/wow/quests/

File size: 1.2 KB
Line 
1local i=CzWoW_interface;
2local n=CzWoW_interface_entoname;
3--GameMenuFrame begin
4CzWoW_MAIN_MENU:SetText(i["MAIN_MENU"]);
5GameMenuButtonOptions:SetText(i["VIDEOOPTIONS_MENU"]);
6GameMenuButtonSoundOptions:SetText(i["SOUNDOPTIONS_MENU"]);
7GameMenuButtonUIOptions:SetText(i["UIOPTIONS_MENU"]);
8GameMenuButtonKeybindings:SetText(i["KEY_BINDINGS"]);
9GameMenuButtonMacros:SetText(i["MACROS"]);
10GameMenuButtonLogout:SetText(i["LOGOUT"]);
11GameMenuButtonQuit:SetText(i["EXIT_GAME"]);
12GameMenuButtonContinue:SetText(i["RETURN_TO_GAME"]);
13--GameMenuFrame end
14
15--OptionsFrame begin
16CzWoW_VIDEOOPTIONS_MENU:SetText(i["VIDEOOPTIONS_MENU"]);
17OptionsFrameResolutionDropDownLabel:SetText(i["RESOLUTION"]);
18--OptionsFrame end
19
20--hooksecurefunc(GameTooltip, "SetOwner", function(a, object) DEFAULT_CHAT_FRAME:AddMessage(object:GetName()); end);
21
22--GameTooltipFrame begin
23local oldTooltipSetText=GameTooltip["SetText"];
24GameTooltip["SetText"]=function(object, text, r, g, b, alphaValue, textWrap)
25 if type(n[text])=="string" then
26 text=i[n[text]];
27 end
28 oldTooltipSetText(object, text, r, g, b, alphaValue, textWrap);
29end
30--hooksecurefunc(GameTooltip, "SetText", TooltipSetText);
31
32--GameTooltipFrame end
Note: See TracBrowser for help on using the repository browser.