SonicPanel provides .json language files that the root user can edit or upload a new language file easily.
How To Edit:
- Login to your server root SSH by using WinSCP with your root username and root password on SSH port.
- Go to the folder /usr/local/sonicpanel/locale
- Download the languge you want to edit, and take a backup first. For example Spanish.json and edit the file on your computer by using UTF-8 editor, such as notepad++.
- Do not remove the comma (,) at the end of every line. Do not use ( ' ) apostrophe character in the words and translations.
- Make sure to change the language words in the file, keep the same order for the playlist intervals feature words, do not change the play number and minutes words position, keep the same order.
- Upload back your Spanish.json file to the server /usr/local/sonicpanel/locale
- Test your language file on the sonicpanel. If the panel is showing everything in English, that means there is a mistake or error in your language file that you need to check. Such as missing comma or extra comma or using ' apostrophe in the words.
How To Add a New Language:
- Login to your server root SSH by using WinSCP with your root username and root password on SSH port.
- Go to the folder /usr/local/sonicpanel/locale
- Download the English.json file to your computer. Rename it to your own language without space or special characters, example German language file name, German.json. Edit the file on your computer by using UTF-8 editor, such as notepad++.
- Do not remove the comma (,) at the end of every line. Do not use ( ' ) apostrophe character in the words and translations.
- Make sure to change the language words in the file, keep the same order for the playlist intervals feature words, do not change the play number and minutes words position, keep the same order.
- Upload your Name.json file to the server /usr/local/sonicpanel/locale
- On the client side sonicpanel, use the Change Language link from the left menu and choose your new language, test it on your panel.
