[Resolved] Guttemberg block showing original language after translation
This thread is resolved. Here is a description of the problem and solution.
Problem:
Getwid – Gutenberg Blocks - the translation of the title of the toggle block is not translated on the front end.
Solution:
The Getwid – Gutenberg Blocks by MotoPress is not officially compatible with WPML. It is not on our list of compatible plugins here. https://wpml.org/plugin/.
Other plugins from MotoPress are compatible, so we will try to contact them and cooperate with them to solve this issue.
The user marked this ticket as resolved but did explain how it was resolved. It may be that MotoPress resolved it.
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.
Good evening,
I have translated a CPT instance build with elementor and Guttemberg. One of the guttemberg blocks displays the original language even though it appears in the advanced editor and the strings are translated. The widget is a toggle and the content of every element is properly translated, just the titles are in Spanish.
I can see the problem on your site. Please try the following suggestions to see if it helps to solve the problem.
1. The debug info you have attached shows that your server WP Memory Limit is set to 40M. Our recommendations are to have the following as minimal requirements:
- PHP 5.6 and above (this OK with your installation) with a WP Memory Limit of at least 128MB while 256MB is recommended.
MySQL 5.6 and above.
Please follow this link for detailed documentation:
Is it possible for you to change those to the minimum requirement?
You may need to contact your hosting provider for that. Meeting those baseline requirements is critical before debugging and sometimes solves issues you experience. The most important thing is to raise the WP Memory Limit. Please try to raise it before you contact your hosting company. You can do it from the wp-config.php file in your WordPress installation. Insert this code in that file:
Good morning,
I have extended the memory limits and the guttemberg block still shows the original language.
Additionally, I have carried out the first steps of the second link you provided, I have replaced the code with the fix but I am not sure what would mean "Translate the Loop template" in my case, since I am not using that template for the corrupted block.
I have updated the translations and the original language is still visible.
I could provide credentials for the site if you like.
Yes, please share access with me and explain where to see the issue. Tell me where the CPT instance was built with Elementor and Guttenberg with this problem.
If you need further help with this, please share the access details to your site with me.
I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ **IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--
So also, in this case, the problem might be in the CPT code. For now, I'll wait to hear the results of the minimum environment test I asked you to perform in my last reply. Then if needed, I'll consult our second-tier supporters if they can help find the problem in the CPT code.
I must mention that supporting custom code is limited and generally out of the scope of our support forum. We will do our best to point out what may be the problem, but we may not be able to provide a fix for the custom code. Please check our support policy here.
Good morning,
I have added the same block in a normal post, to avoid relying in cpts and custom codes. The same issue occurs, the strings are properly found and translated in the translation editor, but the front-end still shows the original string in the toggle item.
The information you gave us helped me find the cause of this issue. The problem is with the Getwid – Gutenberg Blocks plugin. I could replicate this problem on a clean WordPress installation with WPML and this plugin. This plugin is not officially compatible with WPML. It is not on our list of compatible plugins here. https://wpml.org/plugin/.
I've escalated this issue to our compatibility team. They will check this issue and will try to find a fix for it.
Meanwhile, it would be great if you could contact the authors of the Getwid – Gutenberg Blocks plugin and urge them to join our Go Global Program. You can find details about it here.
We will happily cooperate with the authors in making their plugin officially compatible with WPML.
I'll update you on any news from our compatibility team regarding this issue.
Thank you for your patience.
Itamar.
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.