WoW:API GetText: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 2: Line 2:




  strResult = GetText(sIdentifier, nNumber);
  strResult = GetText(sIdentifier, nNumber, ordinal);


GetText is used to localize some game text like PvP-ranks or spell text.
GetText is used to localize some game text like PvP-ranks or spell text.
Line 11: Line 11:
:;sIdentifier:String - Identifier for the text to localize i.e.: PVP_RANK_5_1
:;sIdentifier:String - Identifier for the text to localize i.e.: PVP_RANK_5_1
:;nNumber:Number - Number that is used in the text (for format-strings), can be nil. GetText does not seem to use this.
:;nNumber:Number - Number that is used in the text (for format-strings), can be nil. GetText does not seem to use this.
:;ordinal:Unknown


=== Returns ===
=== Returns ===
Anonymous user