My favorites | Sign in
Project Logo
Project hosting will be READ-ONLY Wednesday at 8am PST due to brief network maintenance.
                
New issue | Search
for
| Advanced search | Search tips
Issue 9: ag_UnitFrames locale update Chinese [zhCN & zhTW] v2
1 person starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  ji...@cwowaddon.com
Type-Patch
Priority-Medium


Sign in to add a comment
 
Reported by ji...@cwowaddon.com, Oct 29, 2008
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


ag_UnitFrames-r665-chinese-v2.zip
171 KB   Download
Sign in to add a comment

Hosted by Google Code