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 <em><plesk-installation-dir></em>/admin/smb/application/utils/locale/<code>plesk2smb.php</code> -f <em><localeFile></em> -o <em><target-directory></em> -l <em><locale-code></em>
<plesk-installation-dir>is the Plesk installation directory (by default, that's
/usr/local/psaon Linux and
"C:\Program Files\Parallels\Plesk"on Windows).
<localeFile>is the locale file that had previously been merged and needs to be split.
<target-directory>is the name of the directory, in which another directory, one containing the individual locale files will be created. If not specified, the current directory will be used.
<locale-code>is the locale code that will be used as the name of the directory containing the individual locale files. Use the
xx-YYformat, to find the required locale code, see the Appendix. Locale Codes section).
For example, to split the files
/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 <code>application/default/resources/languages</code> -l pt-BR # php smb/application/utils/locale/plesk2smb.php -f /tmp/admin-panel.php -o <code>application/admin/resources/languages</code> -l pt-BR # php smb/application/utils/locale/plesk2smb.php -f /tmp/control-panel.php -o <code>application/smb/resources/languages</code> -l pt-BR