WoW:API GetText

From AddOn Studio
Revision as of 19:31, 21 November 2005 by WoWWiki>WoWWiki-Two
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

function GetText(sIdentifier, nNumber);

GetText is used to localize some game text like PvP-ranks or spell text.

Parameters:
sIdentifier (string) - Identifier for the text to localize i.e.: PVP_RANK_5_1
nNumber (int) - Number that is used in the text (for format-strings), can be nil. GetText does not seem to use this.

Returns:
(string) - The localized text corresponding to sIdentifier.

Notes:
This is used for all the PvP-ranks titles that are displayed above characters (and some other stuff). So if you i.e. replace this with a function, that always returns "stupid", all players with PvP-ranks will run around with a name tag like "stupid xyz". This is used rarely and I am not sure what kind of ID-keys you can used.