View Single Post
05-29-13, 01:25 PM   #7
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by ravagernl View Post
You mean something like:
Code:
## Interface: 50300
[<rest of toc headers>]
init.lua
locales\locale.{locale}.lua
and the game should automatically replace {locale}? Or create a new toc header:
Code:
## Interface: 50300
## LoadForLocale: zhTW, zhCN
And then set OptionalDependencies in the actual addon toc to all of these locale addons.

Second option would seriously be spamming the AddOns folder, even tough AddOns like Bigwigs already do this, and I don't see Blizzard implementing option 1 at all.

Blizzard would rather implement interface/addon localization in XML (in a way that a table was inserted as the third argument to vararg ...) i think.
Well i thing the best method would be like if you have more files for locales:

enUS.lua
enGB.lua

and you could load it from the toc like:

Code:
'gamelocale'.lua
Then you always load only one file, ignore the rest.
  Reply With Quote