Functions/DarkRP/Shared/addLanguage

From Official DarkRP Wiki
Jump to navigation Jump to search
Function
Function name DarkRP.addLanguage(string Language name, table Language contents)
Description:
Create a language/translation.
Returns: nil
Part of Library: DarkRP
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Shared/addLanguage]DarkRP.addLanguage[/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. Language contents (table)
  4. A table that contains the translation sentences. Look at sh_english.lua for an example.


Function return values

This function does not return any value.