WoW:API GetLocale: Difference between revisions
Jump to navigation
Jump to search
m (Return information) |
|||
| Line 19: | Line 19: | ||
</pre> | </pre> | ||
== | == Locales == | ||
"frFR": French | * "frFR": French (France) | ||
"deDE": German | * "deDE": German (Germany) | ||
" | * "enGB : English (Great Brittan) ''if returned, can substitute 'enUS' for consistancy'' | ||
"koKR": Korean | * "enUS": English (America) | ||
"zhCN": Chinese (simplified) | * "koKR": Korean (Korea) ''RTL - right-to-left'' | ||
"zhTW": Chinese (traditional) | * "zhCN": Chinese (China) (simplified) ''implemented LTR left-to-right in WoW'' | ||
"ruRU": Russian ( | * "zhTW": Chinese (Taiwan) (traditional) ''implemented LTR left-to-right in WoW'' | ||
"esES": Spanish (Spain) | * "ruRU": Russian (Russia) | ||
"esMX": Spanish (Mexico) | * "esES": Spanish (Spain) | ||
* "esMX": Spanish (Mexico) | |||
* "ptBR": Portuguese (Brazil) | |||
Revision as of 04:20, 26 October 2012
Returns information about the client locale.
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
Locales
- "frFR": French (France)
- "deDE": German (Germany)
- "enGB : English (Great Brittan) if returned, can substitute 'enUS' for consistancy
- "enUS": English (America)
- "koKR": Korean (Korea) RTL - right-to-left
- "zhCN": Chinese (China) (simplified) implemented LTR left-to-right in WoW
- "zhTW": Chinese (Taiwan) (traditional) implemented LTR left-to-right in WoW
- "ruRU": Russian (Russia)
- "esES": Spanish (Spain)
- "esMX": Spanish (Mexico)
- "ptBR": Portuguese (Brazil)