Wikia

WoWWiki

Changes: API GetLocale

Edit

Back to page

(Locales)
(Locales)
 
Line 26: Line 26:
 
* "enUS": English (America)
 
* "enUS": English (America)
 
* "koKR": Korean (Korea) ''RTL - right-to-left''
 
* "koKR": Korean (Korea) ''RTL - right-to-left''
* "zhCN": Chinese (China) (simplified) ''RTL - right-to-left, implemented LTR left-to-right in WoW''
+
* "zhCN": Chinese (China) (simplified) ''implemented LTR left-to-right in WoW''
* "zhTW": Chinese (Taiwan) (traditional) ''RTL - right-to-left, implemented LTR left-to-right in WoW''
+
* "zhTW": Chinese (Taiwan) (traditional) ''implemented LTR left-to-right in WoW''
 
* "ruRU": Russian (Russia)
 
* "ruRU": Russian (Russia)
 
* "esES": Spanish (Spain)
 
* "esES": Spanish (Spain)

Latest revision as of 04:20, October 26, 2012

WoW API < GetLocale

Returns information about the client locale.

locale = GetLocale();

Description Edit

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 Edit

if (GetLocale() == "frFR") then
    -- things for the french client
else
    -- for the rest, usually english since it's the default language
end

Locales Edit

  • "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)

Around Wikia's network

Random Wiki