How to add a new locale in Plesk?

Refers to:

  • Plesk 11.0 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 13:09:31 UTC

Modified:

2016-12-21 20:04:55 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to add a new locale in Plesk?

Question

How to add a new locale in Plesk?

Answer

In examples below English en-US locale is used as an original one and Czech cs-CZ locale as a new one:

  1. Copy existing locale, e.g. en-US

    # cp -npr /usr/local/psa/admin/plib/locales/en-US /usr/local/psa/admin/plib/locales/cs-CZ
    # cd /usr/local/psa/admin/plib/locales/cs-CZ
  2. Rename the files according to the locale code:

    # for file in *php* ; do mv $file ${file//en-US/cs-CZ} ; done
  3. Modify messages_*.php file

    # sed -i 's/en-US/cs-CZ/g' ./messages_cs-CZ.php
  4. Add locale to Plesk:

    # mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e "replace into locales values ('cs-CZ', 'true');"
  5. Modify the files according to language specifics. When logged in using the new locale, GUI items will be reflected accordingly.

For more information check Plesk localization guide

Have more questions? Submit a request
Please sign in to leave a comment.