Originally Posted by ravagernl
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:
Then you always load only one file, ignore the rest.