Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing an issue where user profile languages are not being saved.

Solution:
1. We explained that the "Set admin language as editing language" option is stored in a browser cookie, which causes the dashboard to load in the language of the last logged-in user if they are using the same browser.
2. To see the dashboard in the site's default language or in a different user's selected language, we recommended logging in through a private browsing window.
3. We clarified that WPML controls the language of the dashboard text but does not control the content language displayed to the user. Each user can select their preferred dashboard language using the admin language switcher.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 22 replies, has 3 voices.

Last updated by Noman 1 year, 3 months ago.

Assisted by: Noman.

Author Posts
October 19, 2023 at 7:01 am

kojiG

User profile languages aren't saved

October 19, 2023 at 7:50 am
October 19, 2023 at 8:49 am #14612695

kojiG

hi,

About the first item of the checklist: REST API is not enabled.
When i use mydomain/wp-json/wp/v2 to check if REST is enabled i get an answer and posts info are loaded.
and in tools>site health REST API is written available (passed test)

I dont understand why its not in WPML support info, also i have updated the plugin.

October 19, 2023 at 6:55 pm #14618809

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I have followed the below steps:

1. Created a new user as Content Editor from Admin account:
hidden link

2. Set it’s dashboard language as French from admin account.

3. Logged in with Content Editor account and the dashboard language was showing as French correctly, and the French language was also set from Content Editor user profile page:
hidden link

4. I tried to change the Content Editor account language from French to Spanish and it was changed successfully only on his account and the admin language was still in English.

Could you please try the same steps and let me know if I missed something?

Here is a doc for more details:
https://wpml.org/documentation/getting-started-guide/language-setup/setting-the-wordpress-administration-language/

Thank you

Editor dashboard - Spanish.png
October 20, 2023 at 2:44 am #14620181

kojiG

Hi Noman,

Thank you for reply.

With only the option Language changing everything works well.

My issue is that i want the top of the page "showing content in:" to be the same as in admin language, so i check the "Set admin language as editing language" option.
https://wpml.org/documentation/getting-started-guide/language-setup/setting-the-wordpress-administration-language/#convenient-content-editing-for-rtl-ltr-sites

1)If from Admin account, i set my Content Editor language to italian with the check on "Set admin language as editing language".

2) login with Content Editor go to profile, the "showing content in" and dashboard is in english.

3) go back to admin account, Content Editor language is also back to english

From content editor profile, i change to spanish with "Set admin language as editing language" option checked, showing content in changes and dashboard also is in spanish.
If i go back to Admin account and check content Editor language, spanish is set so it's okay.

But as Admin i should be able to change the user language right ? for example before giving the access to the user, so the dashboard and "showing content in" language are set together.

Or is there a hook or something i can configure so dashboard and showing content in are the same language from creating the user?

October 24, 2023 at 6:43 am #14642497

kojiG

Hi, can someone give me answer or help me out on this topic ??

October 24, 2023 at 8:56 am #14644275

kojiG

1. Connect as Admin, change language to IT and check Set admin language as editing language, save. As admin, i change content editor role language to FR and check set admin language as editing language. When the page is saved, Admin dashboard is back to english. Logout

2. Login as Content-editor role, dashboard is in ENG, with showing content in option to eng. When i go profile. The page is in eng until the languages option, then in FR for WPML language settings and back to english for the following settings. If i refresh the page, everything is going to ENG.

3. As content editor, i change my profile language to IT and check the Set admin language as editing language option. Logout and login as Admin, admin profile is IT, with some parts english.

I really need to make it work somehow.
If there is another way than "Set admin language as editing language option" to put the top of the page "showing content in" in the same language as admin dashboard, please could you tell me how? any hook, function?

Capture d’écran 2023-10-24 à 17.45.47.png
October 24, 2023 at 4:09 pm #14649573

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

please excuse the delay. My colleague Noman is unavailable today, so I'm responding to you in the meantime.

I tried to log in, but there is a web auth active that protects the backend, where the same credentials are not working. Would you please check this? Thank You!

Best Regards
Marcel

October 25, 2023 at 12:51 am
October 26, 2023 at 1:04 am #14665731

kojiG

Hello there!!
Can someone look into my issue???

October 26, 2023 at 3:59 pm #14672417

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I'm sorry for not responding earlier. I was on sick leave. I'm back now, and I will reply more quickly from now on.

When someone logs in to the site, it displays the selected language in the admin language switcher same as the default language of the site.

If you want to assign some specific language to the user, then please don’t select the "Set admin language as editing language option", in this way, when the user is logged in to the site he will be able to see a dashboard in the pre-selected language regardless of the selected language in the admin language switcher. Could you please give it a try and let me know how it goes?

Thank you

October 27, 2023 at 12:35 am #14674699

kojiG

Hi Norman,

Hope you are feeling better, sorry to have pressed you on this topic.

I think i've already asked those questions before but could you confirm those points :

・ the "Set admin language as editing language option", is to set the same admin language for all the users?

・Is there a way to automatically put "showing content in:" option to the same language as the language selected for the dashboard ? Any hook i could call to do that.

Thanks in advance,

October 27, 2023 at 7:32 am #14675593

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

1. The "Set admin language as editing language option" means If we choose the French language using the admin language switcher, then the backend will display in the French language, and if we choose the English language using the admin language switcher, then it will display the backend in the English language, and this setting will only apply to the specific user in which we set this option and not all users.

2. Sorry, there is no such hook available which I know to achieve it. Here you can see a list of available hooks: https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/

You may achieve it using custom programming work, which is beyond the scope of our support.

At this point, I would suggest you consider contacting one of our certified partners from this link: http://wpml.org/documentation/support/wpml-contractors/

Before doing so please have a look also here:
http://wpml.org/documentation/support/wpml-contractors/guidelines-for-people-looking-for-consulting-help/

You will get the custom assistance you need to get on with your project.

I am sorry, I couldn't be much help here.

Thank you for your cooperation and amazing patience

October 27, 2023 at 8:47 am #14676483

kojiG

1. The "Set admin language as editing language option" means If we choose the French language using the admin language switcher, then the backend will display in the French language, and if we choose the English language using the admin language switcher, then it will display the backend in the English language, and this setting will only apply to the specific user in which we set this option and not all users.

-> That's my problem, if i set this option for UserA, UserB will have the same language as userA set OR it will bug and go back to English even if i previously selected IT for userB.

October 28, 2023 at 9:33 am #14683125

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I have tried to reproduce this issue at fresh WP site by following the below steps:

1. Login with the admin account:
hidden link
And set the admin profile language as English with “Set admin language as editing language” option selected.

2. Created “User A” and assigned that user to French language from admin account with “Set admin language as editing language” option selected.

3. Created “User B” and assigned that user to German language from admin account with “Set admin language as editing language” option selected.

Then, logged in with each user account and it doesn’t change the langauge of other users. The “Set admin language as editing language” option just saved the last chosen value from admin language switcher but it doesn’t interfere with other users profile languages.

Could you please try to check it at above site and let me know the results.

The password of above 2 users are demo123

Thank you