This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues with translating text within Gutenberg blocks from Rehub theme like titlebox, review box you need to add custom XML configuration for them. Solution: We recommend adding specific XML configuration to your WPML settings. Here's a step-by-step guide: 1. Navigate to WPML > Settings > XML Configuration. 2. Add the following XML code:
3. After adding the code, make a small change to the default language and re-translate the content. Additionally, you may want to inform the theme author about this issue so they can include a fix in their theme updates.
If this solution doesn't seem relevant to your issue, please don't hesitate to 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.
When i translate my page, any text in blocks doesn't get translated. I have tried all settings that I can find and added strings but nothing I seem to do works. Any advice?
1) In order to expedite handling your support requests, can you please share WPML support debug information from your site.
- To give debug information, login to your site and go to WPML → Support. From there click on the “debug information” link at the bottom of the page.
- Once on the “debug information” page, select the entire content of the text box and copy it.
- Now go back to our support forum, find debug information box and paste it.
Hi Thanks for getting back to me. Sorry my site had redirect issues today but you should be able to see it again. I went through the information you sent me once again but the text I have in the boxes doesn't appear on the translation page at all (as in video). It's as if WPML can't see it. I wasn't sure if there is something I haven't enabled in settings or not. I Anyway, I have debugged, where should I paste it?
Thanks
For that page I have been using gutenberg blocks only. The home page (I think) is the only one currently edited using elementor, although other pages from the theme might be using elementor too. I haven't explored the whole theme yet though.
For the debug section, not sure if I am missing something, but I don't see the box available in this chat ( see photo )
Okay, let me check and see what is happening on that example page.
Please make a full backup of your site (files and database) and confirm it in your next reply.
If possible please provide access to the staging website, not production.
Please note, that I might need to do some debugging procedures like enable/disable plugins, switch themes, change the default language of the user account, and/or access your website database to debug the issue furtherly.
I will share with you any changes or steps done in this process. Please let me know if you do not agree with the above or if I do not have your permission for any.
I would need to access both your site's wp-admin and FTP account, if possible.
I have enabled the private username and password fields in your next reply.
I suggest you create a new user, set it as an administrator and then add those credentials in the private fields mentioned.
You can safely add your information into these fields.
I checked and I see text is added via blocks coming from there ReHub. Seems the author forgot to add XML code for WPML, so text in these blocks is translatable via WPML, for example for rehub/color-heading.
What I suggest is next, I create a test site, please go there install the Rehub theme, and create a new test page. On that page add all the ReHub blocks that are not translated in your website, as much you can add that is great.
Then I will check and escalate to our compatibility team, and we will try to provide XML code for all blocks so you can translate them.
Hi thanks for all your help. Hope you had a good Xmas. I have added a new post with the blocks that didn't translate. I am not sure if there are more but so far this is all I have used. The sidebar also didn't translate but it isn't a block as far as I can see (see photo).
hidden link
Should I also report this back to rehub if it is something they have left out?
I have checked and added the next XML code to WPML > Settings > XML Configuration. I made a small change to the default language and re-translate, it works fine now.
Sure, you can also contact the theme author and update on this, so they can add it theme and update on rest of the widgets if needed.
Amazing! Thanks so much for taking the time to help.
All the best
David
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.