tst2005googlecode2 / cwdg

Automatically exported from code.google.com/p/cwdg
0 stars 0 forks source link

ag_UnitFrames locale update Chinese [zhCN & zhTW] v2 #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
update 2008-10-29
ver : ag_UnitFrames r665
locale by 急云@CWDG

# ag_Options.lua mod add ModuleNames locale

[code]
    for k,v in pairs(aUF.modules) do
        if not (v.hideFromMenu or aUF.layouts[k]) then
            if (GetLocale() == "zhCN")  then 
                values[k] = fixModuleNames[k]
            elseif (GetLocale() == "zhTW") then 
                values[k] = fixModuleNames[k]
            else 
                values[k] = k
            end
        end
    end
[/code]

# fixModuleNames[k] -> ag_Options-zhCN.lua or ag_Options-zhTW.lua

# add RegisterOptionsTable locale
[code]
function options:OpenOptions()
    if not (opened) then
        LibStub("AceConfig-3.0"):RegisterOptionsTable(L["GUnit"], 
aUF.Options.table)
        LibStub("AceConfigDialog-3.0"):SetDefaultSize(L["GUnit"], 
810, 550)
        options:PopulateOptions()
        opened = true
    end
    LibStub("AceConfigDialog-3.0"):Open(L["GUnit"]) 
end
[/code]

# other file mod list
ag_Options-zhCN.lua update
ag_Options-zhTW.lua new add
ag_Options\options.xml ->add zhTW locale

ag_UnitFrames-zhCN.lua new add
ag_UnitFrames-zhTW.lua new add
ag_UnitFrames.toc -> use locale zhCN & zhTW fix

Original issue reported on code.google.com by jiyun%cw...@gtempaccount.com on 29 Oct 2008 at 3:12

Attachments: