Translation / Language files

JetBackup supports multi-language. You can translate our language files for your own language.

Language files are located here -

WHM

Translation

/usr/local/cpanel/whostmgr/docroot/templates/jetbackup/app/lang/en/{SECTION.json}
/usr/local/cpanel/whostmgr/docroot/templates/jetbackup/app/lang/override/xx/

The "en" folder contains the default english language files for JetBackup, each file corresponding to each section in the JetBackup WHM interface. You may then copy the contents inside the English folder to the "/override/xx" folder and renaming "xx" with your preferred language code (for a list of language codes, please visit: http://www.lingoes.net/en/translator/langcode.htm).

You may create the override folder if it doesn't exist.

Once you have your override folder set up, you may start translating each section in your language folder.

For all WHM sections available for translation, please check the following directory: /usr/local/cpanel/whostmgr/docroot/templates/jetbackup/app/lang/en

For example, to translate the dashboard interface to Spanish:

1. Create the "es" folder in the "override" folder (/usr/local/cpanel/whostmgr/docroot/templates/jetbackup/app/lang/override/es/)
2. Copy /usr/local/cpanel/whostmgr/docroot/templates/jetbackup/app/lang/en/dashboard.json to /usr/local/cpanel/whostmgr/docroot/templates/jetbackup/app/lang/override/es/dashboard.json
3. Edit the override/es/dashboard.json file and begin translating:
{
   "Total Accounts" : "Cuentas Totales",
   "Total Jobs" : "Trabajos Totales",
   "Total Backups" : "Copias de Seguridad Totales",
   "Jobs Running" : "Trabajos en EjecuciĆ³n",
   "New Alerts" : "Nuevas Alertas",
   "Total Accounts Usage (%s)" : "Uso Total de Cuentas (%s)"
}

Translation Example

Time

You can change the date format showing on the WHM GUI. To view the available format click on https://momentjs.com/docs/#/displaying/

date: {
            /** See the moment date format documentation: https://momentjs.com/docs/#/displaying/ **/
            short: "D MMM YYYY",
            shorttime: "D MMM YYYY hh:mm A",
            long: "ddd, MMM D, YYYY",
            longtime: "ddd, MMM D, YYYY, hh:mm A"
         }

cPanel

/usr/local/cpanel/base/frontend/paper_lantern/jetbackup/app/lang/en/common.json

Unlike in the WHM interface, JetBackup uses a single common.json file for translation in the cPanel interface. You may then copy this file inside the English folder to the folder with your preferred language code and begin translating.

For example:

copy /usr/local/cpanel/base/frontend/paper_lantern/jetbackup/app/lang/en/common.json to /usr/local/cpanel/base/frontend/paper_lantern/jetbackup/app/lang/xx/common.js (xx is your language code)

WHM/cPanel translation structure

The translation structure is 'key':'value', change the value to your own translation.
For example: "AND": "AND", in French the translation will be: 'AND':'et'