WoW:API GetLocale: Difference between revisions

m
Move page script moved page API GetLocale to WoW:API GetLocale without leaving a redirect
mNo edit summary
m (Move page script moved page API GetLocale to WoW:API GetLocale without leaving a redirect)
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}}Returns information about the client locale.


  locale = GetLocale();
  locale = GetLocale();
Line 9: Line 9:


== Example ==
== Example ==
<pre>
<pre>
if (GetLocale() == "frFR") then
if (GetLocale() == "frFR") then
Line 18: Line 17:
</pre>
</pre>


== Known results ==
== Locales ==


"frFR": French<br>
* "frFR": French (France)
"deDE": German<br>
* "deDE": German (Germany)
"enUS": American english<br>
* "enGB": English (Great Britain) ''if returned, can substitute 'enUS' for consistancy''
"enGB": British english<br>
* "enUS": English (America)
"koKR": Korean<br>
* "itIT": Italian (Italy)
"zhCN": Chinese (simplified)<br>
* "koKR": Korean (Korea) ''RTL - right-to-left''
"zhTW": Chinese (traditional)<br>
* "zhCN": Chinese (China) (simplified) ''implemented LTR left-to-right in WoW''
"ruRU": Russian (UI AddOn)<br>
* "zhTW": Chinese (Taiwan) (traditional) ''implemented LTR left-to-right in WoW''
"esES": Spanish<br>
* "ruRU": Russian (Russia)
* "esES": Spanish (Spain)
* "esMX": Spanish (Mexico)
* "ptBR": Portuguese (Brazil)
Anonymous user