Skip Navigation

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 2 voices.

Last updated by Alejandro 1 year, 9 months ago.

Assisted by: Alejandro.

Author Posts
August 10, 2023 at 8:23 am

saschaB-18

we've been translating our entire website which is built with Toolset and the Astra theme. We are working with templates and forms. So far most of the elements were translated without any issues. Unfortunately on the "last mile" we are having some issues with our forms not showing up as translated as well as singular lines even though they were translated through the interface. I will send some screenshots - one second

August 10, 2023 at 10:15 am
August 11, 2023 at 5:11 pm #14190091

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Hello!

The problem happens because that accordion title seems to come from a third party plugin that might have some issues with the translation editor. Interestingly, when i translate it on a test page like: hidden link i do see it in the back-end as translated, but then i have to save the translation manually and do a bunch of other stuff to see it in the front-end which is not possible to do in your page specifically since you're using a toolset template.

The problem seems to come on the nesting of the gutenberg block for the accordion.

That accordion comes from a third party plugin that has a prefix "esab" so could you please add the plugin that creates it in this sandbox site so we can test and see how to make it work: hidden link

We'll test it here and see why it's not working correctly.

Regards.

August 16, 2023 at 8:24 am #14207113

saschaB-18

Dear Alejandro,

thank you for taking up the issue. I've installed the third party plugin in the sandbox site. It is called "Easy Accordion Gutenberg Block".

Hopefully you have any luck finding the issue. Thank you for your support!

Cheers,
Zoë

August 16, 2023 at 4:30 pm #14239831

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Hello,

I found the problem and i have asked our devs to help me figure out how to fix it. i'll let you know when i have more info about this.

Regards.

August 16, 2023 at 4:32 pm #14239857

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Changing the status so the ticket doesn't close automatically.

August 23, 2023 at 3:59 pm #14279379

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Hello there!

Sorry for the delay but i believe we have a solution for this.

Please add the following code in WPML > Settings > Custom XML configuration (it's a tab at the beginning of the page).

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="esab/accordion" translate="0">        
    </gutenberg-block>
    <gutenberg-block type="esab/accordion-child" translate="1">
      <key name="heading" /> 
      <xpath>//*[contains(@class, 'esab__heading_tag')]</xpath>
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

- Then go to the place where the accordion is and edit the original page.
- Add a character to the title, save the changes and try to translate the page again

This time everything should appear as translatable AND should also be applied to the translation correctly.

Try it out and let me know how it goes. if it works, kindly share that code to the author of the plugin that creates the accordion because it seems they registered it incorrectly.

Regards.

August 23, 2023 at 4:01 pm #14279407

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Oh yes, they can actually contact us via this form to become an officially compatible plugin: https://wpml.org/documentation/support/go-global-program/

this way we can make sure we're both on the same page and we can both improve the quality of your experience with our plugins 🙂

Regards.

August 28, 2023 at 10:51 am #14299707

saschaB-18

Dear Alejandro,

that worked like a charme!
Thank you so much for your assistance.

Have a great week ahead!