Skip Navigation

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

Problem:
The client reported an issue where the block titles in the Gutenberg editor were displaying in Swedish when adding new blocks to a Swedish page, despite the admin language being set to English.

Solution:
Our supporter clarified that when using the WPML translation editor to translate a page and temporarily switching to the second language (Swedish) to edit the page manually, it is expected behavior for the field label in the newly added block to display in Swedish. To display the translation field label in English, the client should enable the option 'Set admin language as editing language' under User > Profile. However, this change would be lost if the WPML translation editor is used to update the translation page again. The correct workflow should be to edit the page in the original language (English), save the changes, and then update the translation in the WPML translation editor.

Lastly, we informed the client that it is not possible for the translation field label in the new block to display in English if the page language is Swedish. If the client wants the block info to display in English, they should go to ACF, edit the block, change all field labels and other info to English, and not translate them in WPML > String Translation.

Please note that this solution might be irrelevant due to being outdated or not applicable to your case. If so, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket with us.

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.

Tagged: 

This topic contains 7 replies, has 2 voices.

Last updated by Long Nguyen 7 months ago.

Assisted by: Long Nguyen.

Author Posts
April 11, 2024 at 6:25 am #15507104

gustavG-2

Hi, I have WPML on our site. My user have the settings to have the admin page in English. When I visit a Swedish page for eding I can see the blocks title in English but when I add a new block to the page the title on the blocks are in Swedish. This cant be correct?

April 11, 2024 at 7:00 am #15507224

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Here is the forum ticket. Please let me know when you can replicate the issue and steps you do on the sandbox site.

Looking forward to your reply.
Thanks

April 12, 2024 at 8:34 am #15511952

gustavG-2

I'm having difficulty reproducing the issue on the sandbox page. Can I send you login credentials to our website instead so I can demonstrate there?

April 12, 2024 at 9:01 am #15512157

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Please let me know where you setup the custom block on your site then I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.

Looking forward to your reply.
Thanks

April 15, 2024 at 2:59 am #15516926

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

The WP admin and FTP accounts are not correct. Can you please check them and share again?

Looking forward to your reply.
Thanks

April 15, 2024 at 10:32 am #15519257

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I try to replicate this issue on my local site and understand the issue. This happens if you are using the WPML translation editor to translate the page and temporarily switch to the second language Swedish to edit the page manually.

It is expected that the field label in the newly added block displays the translation in Swedish, it is the default behavior of WordPress. If you want to display the translation field label in the existing block when editing the translation page, please go to User > Profile > Enable option "Set admin language as editing language."

Also, please notice that, the change will be lost if you use the WPML translation editor to update the translation page next time. The correct workflow should be:
- Edit the page in the original language English.
- Make changes > Save.
- Update the translation in WPML translation editor.

I hope that makes sense.

April 16, 2024 at 9:10 am #15523695

gustavG-2

Hi,

If I do it like this:
User > Profile > Enable the option "Set admin language as editing language."

Then, when I switch to a Swedish page, the entire admin interface turns to Swedish. That's not correct. I want everything in English.

April 16, 2024 at 10:26 am #15524148

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

I'm afraid that it isn't possible. The translation field label in the new block will display according to the page language, regardless of the user's preferred language.
If you want to display the block info in English, please go to ACF > Edit the block > Change all field labels and other info to English and don't translate them in WPML > String Translation.

Thanks.