It is possible to apply custom changes to MediaCP’s language files and even add a custom language translation. MediaCP does have a Crowdin group to allow for customers to contribute translations to the panel. New contributions are added on the next upcoming release. If you would like to join our Crowdin please contact our helpdesk: https://www.mediacp.net/portal/submitticket.php?step=2&deptid=2
Language Files
You can find the various language files in the languages directory in htdocs, it holds all the files necessary to edit translations and add new languages.
/usr/local/mediacp/htdocs/system/languages/
Language file images to be mapped via JSON file in:
/usr/local/mediacp/htdocs/system/languages/image-mapping.json
How to Add a Custom Language
If you would like to add your own custom language to the panel that we do not support you can do so by following these steps:
- Create a new directory for your language translation:
mkdir /usr/local/mediacp/htdocs/system/languages/{language-name}
2. Manually translate the files found in the languages directory, you can base these off the files used for other languages.
3. Add mapping to the new custom language mapping file at /../languages/image-mapping-custom.json
Once this is finished, you can reload the nginx service by running:
/usr/local/mediacp/nginx/sbin/nginx -s reload