Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
No edit summary
({{framexml}} and fix horrid formatting)
Line 1: Line 1:
  +
{{framexml}}
'''function GetText(sIdentifier, nNumber);'''<br>
 
  +
<br>
 
 
strResult = GetText(sIdentifier, nNumber);
GetText is used to localize some game text like PvP-ranks or spell text.<br>
 
  +
<br>
 
 
GetText is used to localize some game text like PvP-ranks or spell text.
'''Parameters:'''<br>
 
  +
sIdentifier ''(string)'' - Identifier for the text to localize i.e.: PVP_RANK_5_1<br>
 
 
== Parameters ==
nNumber ''(int)'' - Number that is used in the text (for format-strings), can be nil. GetText does not seem to use this.<br>
 
  +
=== Arguments ===
<br>
 
 
:;sIdentifier:String - Identifier for the text to localize i.e.: PVP_RANK_5_1
'''Returns:'''<br>
 
 
:;nNumber:Number - Number that is used in the text (for format-strings), can be nil. GetText does not seem to use this.
''(string)'' - The localized text corresponding to sIdentifier.<br>
 
  +
<br>
 
  +
=== Returns ===
'''Notes:'''<br>
 
 
:;:strResult:String - The localized text corresponding to sIdentifier.<br>
  +
  +
== 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.
 
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.
   
  +
__NOTOC__
{{template:WoW API}}
 

Revision as of 13:45, 10 June 2006

strResult = GetText(sIdentifier, nNumber);

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

Parameters

Arguments

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.

Returns

strResult
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.