Changeset 272 for trunk/export/CzWoW-bymaron/Localization.lua
- Timestamp:
- Aug 8, 2009, 2:22:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/CzWoW-bymaron/Localization.lua
r269 r272 3 3 4 4 local old_TutorialFrame_Update = TutorialFrame_Update; 5 local old_UIErrorsFrame_OnEvent = UIErrorsFrame_OnEvent; 5 6 6 7 local Translate=function(index) … … 13 14 14 15 local TranslateByText=function(text) 15 if n[text] then16 16 if i[n[text]] then 17 17 return(i[n[text]]) … … 19 19 return(text) 20 20 end 21 end 22 23 --error message in the middle screen 24 local function onEvent(self, event, ...) 25 local arg1, arg2, arg3, arg4 = ... 26 if(event == 'UI_ERROR_MESSAGE') then 27 self:AddMessage(TranslateByText(arg1), 1.0, 0.1, 0.1, 1.0); 21 28 else 22 return(text)23 end 29 old_UIErrorsFrame_OnEvent(self, event, ...); 30 end 24 31 end 32 UIErrorsFrame:SetScript('OnEvent', onEvent) 25 33 26 34 --tutotial works … … 36 44 end 37 45 38 -- for index, value in pairs(OptionsFrameSliders) do39 -- value.text = TranslateByText(value.text);40 --value.tooltipText = TranslateByText(value.tooltipText);41 -- end;42 --OptionsFrame end43 44 45 -- for index, value in pairs(SoundOptionsFrameSliders) do46 -- value.text = TranslateByText(value.text);47 --value.tooltipText = TranslateByText(value.tooltipText);48 -- end;49 --SoundOptionsFrame end50 51 52 53 for index, value in pairs(uvarInfo) do54 --value.text = i[n[value.text]];55 value.event = TranslateByText(value.event);56 end;57 --UI Options end58 59 46 --GameTooltipFrame begin 60 47 local oldTooltipSetText=GameTooltip["SetText"]; … … 65 52 --hooksecurefunc(GameTooltip, "SetText", print); 66 53 67 --GameTooltipFrame end68 69 54 70 55 --Set global var with CZ texts … … 75 60 end 76 61 end 62 63 64 -- for index, value in pairs(OptionsFrameSliders) do 65 -- value.text = TranslateByText(value.text); 66 --value.tooltipText = TranslateByText(value.tooltipText); 67 -- end; 68 --OptionsFrame end 69 70 71 -- for index, value in pairs(SoundOptionsFrameSliders) do 72 -- value.text = TranslateByText(value.text); 73 --value.tooltipText = TranslateByText(value.tooltipText); 74 -- end; 75 --SoundOptionsFrame end 76 77 for index, value in pairs(uvarInfo) do 78 --value.text =TranslateByText(value.text); 79 value.event = TranslateByText(value.event); 80 end; 81 --UI Options end 82 77 83 78 84
Note:
See TracChangeset
for help on using the changeset viewer.