Skip to content Skip to sidebar

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.

This topic contains 6 replies, has 3 voices.

Last updated by Dražen 4 years, 7 months ago.

Assisted by: Dražen.

Author Posts
December 1, 2020 at 7:44 am #7567213

Natan Kariti

Hi, We're having an issue with the ACFML plugin where it doesn't work as expected on Gutenberg. When we select pages to be a copy of the main language, when we change an ACF value from within a Gutenberg block, it doesn't sync with other languages.

It seems like it's a known bug here: https://wpml.org/forums/topic/acf-fields-created-in-gutenberg-blocks-are-not-translating-correctly/ that should've been fixed in the latest ACFML beta version, but we also tried that and it's not working.

December 2, 2020 at 3:23 pm #7580203

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

sorry for waiting, we have a higher queue these days.

I have checked your website and could see the issue.
This looks like a new issue just reported to us, that our developers are working on a fix: "Repeaters inside ACF Blocks don't get picked up for translation"

Since you have custom theme and plugins, to confirm this is the same issue, can you please set up "MH Block: Numeric Stats" field groups and block following ACF documentation on the next clean website:

- hidden link

Documentation: hidden link

Then I can check it and confirm it is happening on a clean website also, is the same issue happening when not using the WPML translation editor.

Please let me know how it goes and if there is anything I can do to help.

Kind regards,
Drazen

December 9, 2020 at 7:27 am #7621887

Natan Kariti

Hello Drazen,

Thank you for your response.

We the Gutenberg blocks already developed in a plugin, so we have installed the plugin on the demo site you provided and created a test page with the numeric states block here: hidden link

Thank you.

December 9, 2020 at 10:29 am #7623311

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks.

I have checked the issue, it happens with any field inside the ACF block, it is not copied to the translated page. I have escalated it to our developers to check and advise on this.

I will update you when I have some news.

Kind regards,
Drazen

December 16, 2020 at 10:09 am #7675577

Natan Kariti

Hi Drazen,

Any updates from the developers?

Thanks!

December 16, 2020 at 4:22 pm #7679319

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

yes, we are working on it.

We are testing a fix, and if everything goes well I will be sharing it with you soon.

Kind regards,
Drazen

December 22, 2020 at 7:16 am #7713937

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I am sharing an update on this issue, it seems to fix tested was not helping in this case.

Our developers have done some further debugging and concluded this it for now expected behavior.

Fields that you put inside the block which is used in post content behave as just text inside the post content. Therefore even if you set Copy for them they will be not copied between posts.

If you check values in the database there is no value for them in wp_postmeta, you can find them in post_content in wp_posts. They will be just a piece of text inside the whole post content.

Different approach to explain: suppose the user uses one of the standard wp blocks (he is not using ACF at all). This value will not be synchronized (copied) too, right? This is how WPML works with Gutenberg

The only way for the COPY option to work is to use the WPML Translation editor and not disabling it. Then all strings from blocks become registered strings in String Packages and are treated as unique entities.

Please, if it suits you, translate using WPML translation editor and not manually by disabling.

We might consider this as an issue in the future if the WPML workflow with Gutenberg changes, but for now, this is expected.

I hope you understand and we were helpful. 🙂

Let me know how it goes and if there is anything else I can do for you.

Kind regards,
Drazen