Functions/DarkRP/Shared/addChatCommandsLanguage

From Official DarkRP Wiki
Revision as of 14:21, 31 October 2015 by DarkRPBot (talk | contribs) (Wikibot updated DarkRP documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Function
Function name DarkRP.addChatCommandsLanguage(string languageCode, table translations)
Description:
Add a translation table for chat command descriptions. See darkrpmod/lua/darkrp_language/chatcommands.lua for an example.
Returns: nil
Part of Library: DarkRP
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Shared/addChatCommandsLanguage]DarkRP.addChatCommandsLanguage[/url][/b]

Function parameters

  1. languageCode (string)
  2. The language code of the language. For English this is "en".

  3. translations (table)
  4. Key-value table with chat command strings as keys and their translation as value.


Function return values

This function does not return any value.