API GetText

From Wowpedia
Jump to: navigation, search

GetText is used to localize some game text. Currently only for the FACTION_STANDING_LABEL..N globalstring.

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

Arguments=

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

Returns

text 
string - The localized text

Examples

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

Patch changes

  • Wrath of the Lich King Patch 3.1.0 (2009-04-14): Added. Replaced the FrameXML/LocaleProperties.lua implementation.

See also