m
Move page script moved page API GetLocale to WoW:API GetLocale without leaving a redirect
No edit summary |
m (Move page script moved page API GetLocale to WoW:API GetLocale without leaving a redirect) |
||
| (7 intermediate revisions by 7 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}}Returns information about the client locale. | ||
locale = GetLocale(); | locale = GetLocale(); | ||
== Description == | == 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. | 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. | ||
| Line 11: | Line 9: | ||
== Example == | == Example == | ||
<pre> | <pre> | ||
if (GetLocale() == "frFR") then | if (GetLocale() == "frFR") then | ||
| Line 20: | Line 17: | ||
</pre> | </pre> | ||
== | == Locales == | ||
"frFR": French | * "frFR": French (France) | ||
"deDE": German | * "deDE": German (Germany) | ||
"enUS": | * "enGB": English (Great Britain) ''if returned, can substitute 'enUS' for consistancy'' | ||
" | * "enUS": English (America) | ||
"koKR": Korean | * "itIT": Italian (Italy) | ||
"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 | * "ruRU": Russian (Russia) | ||
* "esES": Spanish (Spain) | |||
* "esMX": Spanish (Mexico) | |||
* "ptBR": Portuguese (Brazil) | |||