Article ID: 114964, created on Oct 17, 2012, last review on May 11, 2014

  • Applies to:
  • Plesk 11.x for Windows

Symptoms

Parallels Plesk Panel 11 documentation contains instructions for Merging 'New-Style' Locale Files and Splitting 'New-Style' Locale Files, however the commands used in the examples are only for Linux OS. Below you may find similar commands, but for Windows.

Note: It is recommended that you read the above mentioned instructions in order to understand what they do before running the below commands.

Merging

To join files in all 3 directories, and have the resulting files in the C:\tmp directory under the names shared.php, admin-panel.php and control-panel.php respectively, run the following commands:

"%plesk_bin%\php.exe" -dauto_prepend_file="" "%plesk_dir%admin\smb\application\utils\locale\smb2plesk.php" -d "%plesk_dir%admin\common\resources\languages\en-US" -o C:\tmp
rename C:\tmp\en-US.php shared.php
"%plesk_bin%\php.exe" -dauto_prepend_file="" "%plesk_dir%admin\smb\application\utils\locale\smb2plesk.php" -d "%plesk_dir%admin\panel\application\resources\languages\en-US" -o C:\tmp
rename C:\tmp\en-US.php admin-panel.php
"%plesk_bin%\php.exe" -dauto_prepend_file="" "%plesk_dir%admin\smb\application\utils\locale\smb2plesk.php" -d "%plesk_dir%admin\smb\application\resources\languages\en-US" -o C:\tmp
rename C:\tmp\en-US.php control-panel.php


Splitting

To split the files C:\tmp\shared.php, C:\tmp\admin-panel.php and C:\tmp\control-panel.php with Brazilian Portuguese (pt-BR) translation and have the resulting files placed into the Panel locale file structure, run the following commands:
"%plesk_bin%\php.exe" -dauto_prepend_file="" "%plesk_dir%admin\smb\application\utils\locale\plesk2smb.php" -f C:\tmp\shared.php -o "%plesk_dir%admin\common\resources\languages" -l pt-BR
"%plesk_bin%\php.exe" -dauto_prepend_file="" "%plesk_dir%admin\smb\application\utils\locale\plesk2smb.php" -f C:\tmp\admin-panel.php -o "%plesk_dir%\admin\panel\application\resources\languages" -l pt-BR
"%plesk_bin%\php.exe" -dauto_prepend_file="" "%plesk_dir%admin\smb\application\utils\locale\plesk2smb.php" -f C:\tmp\control-panel.php -o "%plesk_dir%\admin\smb\application\resources\languages" -l pt-BR

bd7fc88cf1b01f097749ae6f87272128 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 85a92ca67f2200d36506862eaa6ed6b8

Email subscription for changes to this article
Save as PDF