Home›Support›English Support›[Resolved] Page after editing in WP Gutenberg editor, translated text via WPML tool reverted back to untranslat...
[Resolved] Page after editing in WP Gutenberg editor, translated text via WPML tool reverted back to untranslat...
This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to translate text using the WPML tool in WordPress, but some text is not being caught by the WPML translation tool. When you manually translate text directly in the WP Gutenberg editor and later update the content using the WPML translation editor, the manually translated text reverts back to the original language. Solution: You cannot use the Advanced Translation Editor (ATE) and manually edit content in Gutenberg simultaneously as this causes translation issues. You need to choose either to continue using ATE exclusively or to manually translate all content. If certain texts are not detected by ATE, it might be due to a compatibility issue with the plugin generating the Gutenberg block. If the plugin is tested and supported by WPML, we can help investigate the issue. If not, you should contact the plugin developer to make their plugin compatible with WPML. You can find guidance on making custom Gutenberg blocks translatable here: Make Custom Gutenberg Blocks Translatable. Additionally, if you prefer to use manual translation for specific pages, follow the steps outlined here: Using Different Translation Editors for Different Pages.
Please note that this solution might be outdated or not applicable to your specific case. 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 at WPML Support Forum.
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.
Background of the issue:
I am trying to translate text using the WPML tool in WordPress. Some text is not being caught by the WPML translation tool, so I translate the untranslated text directly in the WP Gutenberg editor. I want to update content like adding images or changing block styles without losing the translated text I worked on before using both the WPML Editor and the standard WP editor.
Symptoms:
When I update the content and use the WPML translation editor, the translated text I input directly in the WP Gutenberg editor reverts back to untranslated (back to English).
Questions:
How can I update content without losing the translated text?
Why does the translated text revert back to untranslated when using the WPML translation editor?
You can not use the Advanced translation editor and manually change stuff in Gutenberg at the same time. That mix and match will not work.
You either need to keep using ATE or use manual translation.
If there are texts that are not detected it might be a compatibility issue between the plugin that you use that generates the Gutenberg block and WPML.
If it is listed as a tested plugin by WPML we can check and see what that happens. If it is not tested then you will need to contact the developer of the plugin and ask them to make their plugin compatible with WPML using the method below:
Could you guide me how to work with the text_blocks attribute in Guteberg editor, so then the text string input will be detected by ATE?
Also is there any efficient way to update newly added content, like images or video, to different language version when the translation was edited manually?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: Europe/Madrid (GMT+02:00)
Hi Sharon,
My name is Marcel, and I’ll be handling your ticket from here.
In general, the text needs to be handled through an XML configuration that instructs WPML how to process it during translation. The document Christopher shared with you outlines the steps to automatically generate this configuration for your specific content within the mentioned block.
Just to clarify — is this text coming from a specific third-party add-on?
I use
useBlockProps,
RichText,
MediaUpload,
MediaUploadCheck,
from '@wordpress/block-editor for the custom block in the editor js. And WMPL cannot pick up the string I input into RichText, I also experienced the same issue with textblock.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: Europe/Madrid (GMT+02:00)
Hi Sharon,
as mentioned above in the doc, if you're using a custom block, you'll need to generate the XML configuration manually. Please refer again to the documentation I shared with you earlier. Once you've activated the required setting, you can generate the XML for the specific blocks.
Best Regards,
Marcel
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.