Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
use ATE to translate a post that contains Kadence Blocks "Testimonial" block
Solution:
Please go to WPML->Settings->Custom XML Configuration (tab at the top) and add the following

<wpml-config>
<gutenberg-blocks>
<gutenberg-block type="kadence/testimonial" translate="1">
<key name="title"></key>
<key name="content"></key>
<key name="name"></key>
<key name="occupation"></key>
</gutenberg-block>
</gutenberg-blocks>
</wpml-config>

Then edit the default language page with the blocks -> make small change and update -> access the translation again

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.

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by Lukas Cech 1 year, 10 months ago.

Assisted by: Bobby.

Author Posts
March 15, 2023 at 4:18 pm #13253625

Lukas Cech

I am trying to: use ATE to translate a post that contains Kadence Blocks "Testimonial" block

Link to a page where the issue can be seen: hidden link
Original EN post: hidden link

I expected to see: ATE showing the texts in "testimonials" block for translation

Instead, I got: nothing, texts from "testimonials" block are ignored by WPML

March 15, 2023 at 8:52 pm #13255139

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

This may be a compatibility issue with the *Kadence Testimonials* Block.

I created a sandbox for us to test this with a minimal environment

1) Click this URL to visit the Sandbox site backend - hidden link
2) Configure WPML like your live site and activate WPML add-ons
3) Install the Kadence theme & plugin
4) Create a page with a testimonial and translate it

Let me know your results, please.

March 16, 2023 at 8:56 am #13257379

Lukas Cech

Hi Bobby,

all set up and not translating, same as my site. Didn't even have to install Kadence Theme (it's not linked to Kadence Blocks, they are two stand alone products).
Here's the test: hidden link

March 17, 2023 at 6:58 am #13266523

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for updating me!

I have escalated this to our compatibility team and will update you once there is news.

In the meantime you can add translation manually by doing the following:

1. View the translated post in the front end
2. Click on "edit post" on the top bar
3. this will allow editing the translation in the backend manually (dismiss the warning)

hidden link

April 26, 2023 at 9:34 pm #13545075

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hello,

Please go to WPML->Settings->Custom XML Configuration (tab at the top) and add the following

<wpml-config>
<gutenberg-blocks>
<gutenberg-block type="kadence/testimonial" translate="1">
<key name="title" />
<key name="content" />
<key name="name" />
<key name="occupation" />
</gutenberg-block>
</gutenberg-blocks>
</wpml-config>

Then edit the default language page with the blocks -> make small change and update -> access the translation again, does it show OK now?

April 29, 2023 at 11:28 am #13561029

Lukas Cech

Hi Bobby,

this works, now I can translate the teestimonials, thanks.

One small issue though - every sentence of a single testimonial is separated and needs to be translated on it's own in ATE, which doesn't make sense. They should be considered as one piece of text (the entire testimonial = one ATE translation box).

April 29, 2023 at 11:43 am #13561069

Lukas Cech

and the option to join them manually is unnecessary work + doesn't always work (i.e. in some cases, I don't get the option (chain icon) to click to join them, even if the two sentences are part of a single testimonial.

May 1, 2023 at 9:03 pm #13566333

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Glad to hear it's working now!

Thank you for the feedback, this is expected behavior, the sense of joining segments is to make automatic translation work better in case a sentence has too many segments and the automatic translation does not work as expected in terms of grammar or sense.

https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/#joining-sentences

May 2, 2023 at 1:45 pm #13571261

Lukas Cech

Ok, in that case, all is good now. Thanks!