WoW:API GetLocale: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
| Line 18: | Line 18: | ||
---- | ---- | ||
Known results: | Known results:<br> | ||
"frFR": french | "frFR": french<br> | ||
"deDE": german | "deDE": german<br> | ||
"enUS": english | "enUS": American english<br> | ||
"koKR": korean | "enUK": British english<br> | ||
"zhCN": chinese (simplified) | "koKR": korean<br> | ||
"zhTW": chinese (traditional) | "zhCN": chinese (simplified)<br> | ||
"zhTW": chinese (traditional)<br> | |||
"ruRU": russian (UI AddOn) | "ruRU": russian (UI AddOn) | ||
Revision as of 03:06, 21 December 2005
Taken from http://forums.curse-gaming.com/showthread.php?p=1777#post1777
The locale is what makes it possible to know what language the interface is using and thus determine which specific code is going to be executed in a localized addon.
typically, this is used in a GetLocale block:
Code:
if (GetLocale() == "frFR") then
-- things for the french client
else
-- for the rest, usually english since it's the default language
end
Known results:
"frFR": french
"deDE": german
"enUS": American english
"enUK": British english
"koKR": korean
"zhCN": chinese (simplified)
"zhTW": chinese (traditional)
"ruRU": russian (UI AddOn)