WoW:API GetLocale: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(remove enGB from the "known results" list) |
||
Line 22: | Line 22: | ||
"frFR": French<br> | "frFR": French<br> | ||
"deDE": German<br> | "deDE": German<br> | ||
"enUS": American english | "enUS": American english (what should be "enGB" clients return "enUS", too)<br> | ||
"enGB" | |||
"koKR": Korean<br> | "koKR": Korean<br> | ||
"zhCN": Chinese (simplified)<br> | "zhCN": Chinese (simplified)<br> |
Revision as of 01:03, 3 February 2008
locale = GetLocale();
Description
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:
Example
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 (what should be "enGB" clients return "enUS", too)
"koKR": Korean
"zhCN": Chinese (simplified)
"zhTW": Chinese (traditional)
"ruRU": Russian (UI AddOn)
"esES": Spanish