Cpanel - Creating Language Files

Through WHM

  1. Clone/Create a New Language File (in WHM)
    Usually clone english to your new language's name
  2. Edit a Language File (in WHM)
    Edit your new language file with the appropriate values and save the changes.
  3. Either have your users change their language in their cPanel interface (if the option was given to them) or use the "Modify an Account" function in the WHM to select the new language for them.

Manually

  1. Copy /usr/local/cpanel/lang/english to /usr/local/cpanel/lang/your_language_name.
  2. Edit the copied language file and save the changes.
  3. Run /usr/local/cpanel/bin/cachelangfiles as root from the command line.
  4. Either have your users change their language in their cPanel interface (if the option was given to them) or use the "Modify an Account" function in the WHM to select the new language for them.

Notes:

/usr/local/cpanel/lang/english is the default english language file provided by cPanel.

New language files should include all the values present in the english language file.

Changes to the english language file will be overwritten when cPanel is upgraded or resynced. You will need to create a new language file if you wish to edit the English language.

Any time changes are made to a language file, the changes must be cached to work properly. This is achieved by running /usr/local/cpanel/bin/cachlangfiles. When language files are edited through the WHM, this script is ran automatically upon saving the changes. This script is also ran automatically when cpsrvd is restarted (same as restarting cPanel).