Originally Posted by Garkin
No, function will return localized names. However you don't need to download french or german client to test it out. Just switch client language using the SetCVar("language.2", "fr") or SetCVar("language.2", "de") function (it will reload UI in the selected language). I have defined the following slash commands in my private addon so I can test another languages:
Lua Code:
SLASH_COMMANDS["/langen"] = function() SetCVar("language.2", "en") end SLASH_COMMANDS["/langde"] = function() SetCVar("language.2", "de") end SLASH_COMMANDS["/langfr"] = function() SetCVar("language.2", "fr") end
If you don't want to define your own slash commands, just use /script:
Code:
/script SetCVar("language.2", "fr")
|
Holy cow, this is gold. I had NO IDEA you could do this. I guess I don't really have any more excuses for not testing other language localizations in FTC
/
/ ???