• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

switch default interface language to another language

S

sebastien jura

Guest
Hi,

I would like to know how to change (trought command-line) the default language in Plesk Panel without without using an additionnal Language licence.

This bug is fixed since the Plesk Panel 9.2.3 realese:
" Inability to switch default interface language to another language if Parallels Plesk Panel license key has zero additional languages bug is fixed. "

server_pref.exe --set-def-locale fr-FR don't work, even after the French langpack's installation.

Thanks in advance
 
I have forwarded your question to development team and I will update this thread with their answer as soon as I receive it.
 
I have received following information from developers:

Need info:
Cannot reproduce nor at PPPfU 9.3.0 nor at PPPfW 9.3.0.
If there license key with 1 allowed LP - I switch default locale w/o problems from the GUI and from the command-line.
Could you please request more details (License details, installaed LP, steps for reproducing).
 
Hi Igor,

For windows 2008
Licence : 30 domains
Source files : plesk_9.3.0_build091222.06

step 1 - complete intall of IIS 7

step 2 - Install of SQLexpress

step 3 - Install of plesk

start /wait %SrcDir%\Plesk\plesk.msi /qb MSSQL_HOST=localhost MSSQL_ADMIN_NAME=sa MSSQL_ADMIN_PASSWD="abcABC123" INSTALLDIR="%PleskDir%" ADDLOCAL=ALL REMOVE=MSDE,MSSQLEXPRESS /l*v "%SrcDir%Plesk\plesk-install.log"
If "%ERRORLEVEL%" NEQ "0" exit /b %ERRORLEVEL%

step 4 - Plesk Initialisation

"%PleskDir%\admin\bin\init_conf.exe" --init -shared_ips %Ips% -hostname %Hostname% -name admin -passwd %SqlPassword% -email %Email% -send_announce false -sb_sync false

step 5 - install of langpack

start /wait %SrcDir%Plesk\plesk_9.3.0_languagepack_091217.14_fr-FR.msi /qb

step 6 - Setting default language

"%PleskDir%\admin\bin\server_pref.exe" --set-def-locale fr-FR

here come an error:
" SUCCESS: Server preferences are successfully updated
ERROR: Wrong syntax for option's "locale" parameter: unknown locale code "fr-FR"

I'm enable to set FR language in place of the default EN language...
Langpack is installes without problem and work well (test with an additionnal Lang pack license)

The goal is to set only one default lang of our choice insead of English lang, without need an additionnal Langpack license.
I think it's the use of this bug fixe since Plesk Panel 9.2.3 realese:

" Inability to switch default interface language to another language if Parallels Plesk Panel license key has zero additional languages bug is fixed. "
 
Thank you for detailed instruction for reproducing. I have forwarded it to developers. Let's wait their answer.
 
I have received following answer from developers:

From provided post:
-----------------
​step 6 - Setting default language

"%PleskDir%\admin\bin\server_pref.exe" --set-def-locale fr-FR

here come an error:
" SUCCESS: Server preferences are successfully updated
ERROR: Wrong syntax for option's "locale" parameter: unknown locale code "fr-FR"
----------------
Output looks like he uses another command:
C:\Program Files\Parallels\Plesk\admin\bin>server_pref.exe --set-def-locale fr-FR
ERROR: Unable to set default locale: specified locale "fr-FR" is not supported
or
C:\Program Files\Parallels\Plesk\admin\bin>server_pref.exe --set-default locale fr-FR
SUCCESS: Server preferences are successfully updated
ERROR: Error(s) in command line options: Cannot recognize option 'locale'
-----------------
But --set-def-locale option is depricated. He should use " --set-default -locale fr-FR":
---
C:\Program Files\Parallels\Plesk\admin\bin>server_pref.exe --set-default -locale fr-FR
SUCCESS: Server preferences are successfully updated
==========

Wrong reason of error - such error appear when LP is not installed.!!
there was mistake in command which installed language pack - there extra space in lp installer filename :
start /wait %SrcDir%Plesk\plesk_9.3.0_languagepack_091217.14_f r-FR.msi /qb
should be
start /wait %SrcDir%Plesk\plesk_9.3.0_languagepack_091217.14_fr-FR.msi /qb

also we recommend to add errors handler for LP installation too and do not use deprecated commands (see previous comment).
 
Back
Top