• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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