Functions/DarkRP/Shared/addPhrase

From Official DarkRP Wiki
Jump to: navigation, search
Function
Function name DarkRP.addPhrase(string Language name, string key, string translation)
Description:
Add a phrase to the existing translation.
Returns: nil
Part of Library: DarkRP
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Shared/addPhrase]DarkRP.addPhrase[/url][/b]

Function parameters

  1. Language name (string)
  2. The short name of the language ("en" is English). Make sure the language name fits a possible value for gmod_language!

  3. key (string)
  4. The name of the translated phrase.

  5. translation (string)
  6. The translation of the phrase.


Function return values

This function does not return any value.