Splitting the 'New-Style' Locale Files

If you have merged locale files for more comfortable translation, you need to split the merged files before importing the locale into Plesk.

To split your translated files:

Run the following command for each of the files:

php <plesk-installation-dir>/admin/smb/application/utils/locale/plesk2smb.php -f <localeFile> -o <target-directory> -l <locale-code>

where

For example, to split the files /tmp/shared.php, /tmp/admin-panel.php, and /tmp/control-panel.php containing the locale translated into Brazilian Portuguese (pt-BR), and have the resulting files placed into the Plesk locale file structure, run the following commands:

# cd /usr/local/psa/admin/

# php smb/application/utils/locale/plesk2smb.php -f /tmp/shared.php -o application/default/resources/languages -l pt-BR

# php smb/application/utils/locale/plesk2smb.php -f /tmp/admin-panel.php -o application/admin/resources/languages -l pt-BR

# php smb/application/utils/locale/plesk2smb.php -f /tmp/control-panel.php -o application/smb/resources/languages -l pt-BR