Unable to change locale: the specified interface language pack files do not exist in the system

Created:

2016-11-16 13:13:53 UTC

Modified:

2017-04-24 11:42:22 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to change locale: the specified interface language pack files do not exist in the system

Applicable to:

  • Plesk 12.0 for Linux

Symptoms

Unable to set a custom locale as default in Parallels Plesk, the following error appears:

Error: Unable to change locale: the specified interface language pack files do not exist in the system.

Custom locale was added following the Guide to Localizing Parallels Plesk .

Cause

Names of custom locale files contain combination of letters that indicate inappropriate language, e.g. /usr/local/psa/admin/plib/locales/cz-CZ/messages_en-US.php

Resolution

Rename the files according to custom locale so that their names contain combination of letters that indicate your language and country codes according to ISO standards. To find a required locale code, use Locale Codes list .

For example for Czech locale the following commands may be used

# cd /opt/psa/admin/plib/locales/cz-CZ/
# ls -l
total 1264
-rw-r--r-- 1 root root 256414 Aug 6 18:39 common_cli_messages_en-US.php
-rw-r--r-- 1 root root 128 Aug 6 18:39 common_cli_messages_en-US.php.signature
-rw-r--r-- 1 root root 443517 Dec 8 09:26 common_messages_en-US.php
-rw-r--r-- 1 root root 128 Aug 6 18:39 common_messages_en-US.php.signature
-rw-r--r-- 1 root root 125388 Aug 6 18:39 conhelp_en-US.php
-rw-r--r-- 1 root root 128 Aug 6 18:39 conhelp_en-US.php.signature
-rw-r--r-- 1 root root 1083 Aug 6 18:39 devmessages_en-US.php
-rw-r--r-- 1 root root 128 Aug 6 18:39 devmessages_en-US.php.signature
-rw-r--r-- 1 root root 59367 Aug 6 18:39 license.html
-rw-r--r-- 1 root root 375882 Dec 8 09:24 messages_en-US.php
-rw-r--r-- 1 root root 128 Aug 6 18:39 messages_en-US.php.signature
# for file in *php* ; do mv $file ${file//en-US/cs-CZ} ; done
# ls -l
total 1264
-rw-r--r-- 1 root root 256414 Aug 6 18:39 common_cli_messages_cs-CZ.php
-rw-r--r-- 1 root root 128 Aug 6 18:39 common_cli_messages_cs-CZ.php.signature
-rw-r--r-- 1 root root 443517 Dec 8 09:26 common_messages_cs-CZ.php
-rw-r--r-- 1 root root 128 Aug 6 18:39 common_messages_cs-CZ.php.signature
-rw-r--r-- 1 root root 125388 Aug 6 18:39 conhelp_cs-CZ.php
-rw-r--r-- 1 root root 128 Aug 6 18:39 conhelp_cs-CZ.php.signature
-rw-r--r-- 1 root root 1083 Aug 6 18:39 devmessages_cs-CZ.php
-rw-r--r-- 1 root root 128 Aug 6 18:39 devmessages_cs-CZ.php.signature
-rw-r--r-- 1 root root 59367 Aug 6 18:39 license.html
-rw-r--r-- 1 root root 375882 Dec 8 09:24 messages_cs-CZ.php
-rw-r--r-- 1 root root 128 Aug 6 18:39 messages_cs-CZ.php.signature
Have more questions? Submit a request
Please sign in to leave a comment.