Article ID: 113871, created on May 12, 2012, last review on May 11, 2014

  • Applies to:
  • Plesk 9.x for Windows

Question

Despite the fact that many languages are present in Settings->Service Language in the Atmail interface, the only language installed by default is English. How do I install another language?

Answer

To add another language to the Atmail interface, for example, Portuguese, follow the below steps:

1) Make sure you have the the appropriate .lang file for the needed language. In our example, it is already present here: C:\inetpub\vhosts\webmail\atmail\lang\languages\portuguese\portuguese.lang.

2) Open the command line under the Administrator account and switch to the %plesk_dir%\Additional\PHP folder using this command:
cd %plesk_dir%\Additional\PHP

3) Run the command to add the new language:
C:\Program Files (x86)\Parallels\Plesk\Additional\Php>php.exe C:\inetpub\vhosts\webmail\atmail\lang.php portuguese C:\inetpub\vhosts\webmail\atmail\lang\languages\portuguese\portuguese.lang


Note: It may fail on the retrieval of some non-existent folders. In order to get rid of the errors, you need to comment out the corresponding lines in the lang.php file. In our case, they were as follows:

html_search("./lang/$langname/xp/heading/");
html_search("./lang/$langname/xp/calendar/");
html_search("./lang/$langname/xul/");
html_search("./lang/$langname/xul/css/");

After that, we started the command again and it finished successfully:
C:\Program Files (x86)\Parallels\Plesk\Additional\Php>php.exe C:\inetpub\vhosts\
webmail\atmail\lang.php portuguese C:\inetpub\vhosts\webmail\atmail\lang\languag
es\portuguese\portuguese.lang
X-Powered-By: PHP/4.4.7
Content-type: text/html

Writing new Language portuguese using C:\inetpub\vhosts\webmail\atmail\lang\lang
uages\portuguese\portuguese.lang

Searching ./lang/portuguese/.......................................... done
Searching ./lang/portuguese/calendar/.............. done
Searching ./lang/portuguese/help/............................................ do
ne
Searching ./lang/portuguese/javascript/................... done
Searching ./lang/portuguese/javascript/htmleditor/...... done
Searching ./lang/portuguese/msg/................................................
.. done
Searching ./lang/portuguese/simple/.............................................
.............................. done
Searching ./lang/portuguese/simple/heading/. done
Searching ./lang/portuguese/xhtml/.................. done
Searching ./lang/portuguese/xp/ done
New language installed to ./html/portuguese/
After that, it became possible to switch to Portuguese via the "Settings" page in the Atmail GUI.

aac4a8fcd879de03758354e15495d69a a914db3fdc7a53ddcfd1b2db8f5a1b9c 85a92ca67f2200d36506862eaa6ed6b8 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF