Functions/DarkRP/Shared/getPhrase
Function | |
Function name | DarkRP.getPhrase(string key, vararg Phrase parameters) |
Description: | |
Get a phrase from the selected language. | |
Returns: | string phrase |
Part of Library: | DarkRP |
Realm: | |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Shared/getPhrase]DarkRP.getPhrase[/url][/b] |
Function parameters[edit]
- key (string)
- Phrase parameters (vararg)
The name of the translated phrase.
Some phrases need extra information, like in "PLAYERNAME just won the lottery!". Not filling in the phrase parameters will cause errors.
Function return values[edit]
- phrase (string)
The formatted phrase.