• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Question Set plesk client language dynamically

serreri

New Pleskian
Server operating system version
Debian 10.0
Plesk version and microupdate number
Plesk Obsidian v18.0.60
Good morning, I apologize but I couldn't find a solution.
Could you kindly help me understand if it is possible to activate a Plesk customer account by setting the language based on the language spoken by the customer.

Basically, I would like an English user to enter his profile and find his account already in English, his French account in French, etc.

I would like to point out that to generate my client and his domain I use the API with curl but by setting:

"local": "fr_FR"

the customer panel always remains in English and not French, leaving the customer the option to change the language from his profile.

I hope I explained myself, I apologize.

HI
 
Good question!

There are a couple of options I can think of.

1) Via Plesk GUI you can login as a customer and set the language for the customer account manually.
Schermafbeelding 2024-05-15 204114.png
2) You can automate things via the Plesk API

a) With the REST API using the /client endpoint setting the locale in the body payload.
Code:
{
  "name": "John Smith",
  "company": "Plesk",
  "login": "john-unit-test",
  "status": 0,
  "email": "[email protected]",
  "locale": "en-US",
  "owner_login": "admin",
  "external_id": "link:12345",
  "description": "Nice guy",
  "password": "changeme1Q**",
  "type": "reseller"
}

b) Or if you use the XML-RPC API.
 
Thanks Kaspar,
unfortunately I was convinced that I had at least two languages available in the Plesk license, I had to purchase the language pack to add a language.

I don't understand why in the license
plesk Web Pro Edition I have two languages installed,
while in the Web Host Edition license I only have one language.

It seems excessive to me to buy another license, but never mind, let's get on with the work:)

Thanks again
 
Back
Top