GetText

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 3.0.2 / 1.13.2

Returns localized text depending on the specified gender.

text = GetText(token [, gender, ordinal])

Arguments

token
string - Reputation index
gender
number - Gender ID
ordinal
unknown

Returns

text
string - The localized text

Example

  • This should return FACTION_STANDING_LABEL1
/dump GetText("FACTION_STANDING_LABEL1") -- "Hated"
  • This should return FACTION_STANDING_LABEL1_FEMALE
/dump GetText("FACTION_STANDING_LABEL1", 3) -- "Hated"

Patch changes

Wrath-Logo-Small.png Patch 3.1.0 (2009-04-14): Added. Replaced the FrameXML/LocaleProperties.lua implementation.

See also