There was a problem loading the comments.

Language Support - add your own translations

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

As of version 0.3, this module uses language files for end user text.  The module currently only has English language files built-in. 

To make your own language file, please do the following:

  1. Open the whmcs_staff_kb/lang/english.php file in a plain text editor, PHP IDE, etc -- except Word or other such programs
  2. Save this file as a new file labeled after your language.  For example, if you are translating to italian, you would use "italian.php" for the file name
  3. In your language file, replace each language element with your translation.
    1. Each element is a PHP array item.  Your translated value goes on the RIGHT side of the equals sign. 
    2. For example, for Italian the following $_ADDONLANG['Staffkb']['Search']['Search'] = 'Search'; would be come
      $_ADDONLANG['Staffkb']['Search']['Search'] = 'ricerca';
  4. Once the language file is ready, upload the file to the modules/whmcs_staff_kb/lang directory within the WHMCS directory
  5. If you want to send the language file in to us, we will add the file to our releases

Share via

Related Articles

© Cooini, LLC