WoW:API GetLocale: Difference between revisions

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


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


== Example ==
== Example ==
<pre>
<pre>
if (GetLocale() == "frFR") then
if (GetLocale() == "frFR") then
Line 23: Line 21:
* "frFR": French (France)
* "frFR": French (France)
* "deDE": German (Germany)
* "deDE": German (Germany)
* "enGB : English (Great Brittan) ''if returned, can substitute 'enUS' for consistancy''
* "enGB": English (Great Britain) ''if returned, can substitute 'enUS' for consistancy''
* "enUS": English (America)
* "enUS": English (America)
* "itIT": Italian (Italy)
* "koKR": Korean (Korea) ''RTL - right-to-left''
* "koKR": Korean (Korea) ''RTL - right-to-left''
* "zhCN": Chinese (China) (simplified) ''implemented LTR left-to-right in WoW''
* "zhCN": Chinese (China) (simplified) ''implemented LTR left-to-right in WoW''
Anonymous user