I will add the first reply before this ticket is assigned to one of my colleagues.
First thing, kindly update WPML and WPML string translation plugins to the latest version:
- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Go to "WordPress Dashboard > Plugins > Add new > Commercial (tab)".
- Click the "Check for Updates" button.
- Update WPML and its addons there.
After that, please do a test by changing something on the main language page and try to re-translate. In the video, you only changed the translation and not the original page content.
Finally, please check and tell us what is the translation preferences for the TEXT BODY Advanced Custom Fields field in ACF > Field Groups.
Would it be possible to get access to your site so I can check the original page and go through updating the translation myself to see exactly what happens?
Let me mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.
Can you also confirm the url of the page you are translating?
If so, can you let me know where you have added the code to register your custom blocks?
I'll want to take a closer look and possibly set up a test site that uses your custom block so I can go through the steps of translating content made with it.
Thanks for that. The block is registered with code, but the ACF fields are added within the UI, not registered programmatically.
I tried a test translation of a draft blog entry, and the initial translation worked as expected, but then when I went to edit the translation, the updated title was preserved but the updated text was not.
The user you have created for me doesn't seem to be an administrator, I cannot see the UI for ACF in the back end to review the settings.
The earlier screenshot you shared of the field group was for the wrong field group (assigned to the block BG Image and Text, the actual block in question is Body text).
Looking at the correct field group and comparing it to the field group you shared does highlight what I think is the problem, though.
The field groups contain fields with the same names (generic field names like title, and text).
In the screenshot I'm highlighting a warning from the documentation I linked to before. (The problem that arises is not exactly the same as warned of, but I think the cause is the same.)
I suggest you review the fields in your field groups to ensure they have unique field names. I suspect you will have to re-save posts before translating them.
Can you please try that and let me know how it goes.
The issue when using the same field name for different fields across different field groups only relates to saving the translation preference.
If you have different translation preferences for the same field, whichever one happened to save last will apply to all of them.
I can see that the Block: Accordion field group contains a "title" field, whose translation preference is set to Copy, while in other field groups the same field is set to Translate, so that is not going to work correctly everywhere.
You have a lot of field groups so I didn't go through checking them all, but you should review them and double-check that where you have re-used the same field name across different field groups, that they all have the same translation preference.
If some of them should have different translation preferences, then you will need to re-name the fields.
That should not have any effect on your actual content (original or translated), but will affect what happens during translation.
Pay particular attention to the "text" field, which seems to be the one causing trouble in my testing.
The topic ‘[Closed] Post is not translated.’ is closed to new replies.