Skip Navigation

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

Problem:
The client was experiencing issues with texts not being picked up by WPML in a custom stats block on a translated page.
Solution:
We advised the client to make their custom block translatable by adding specific XML configuration to the WPML settings. The correct XML configuration to make the custom block translatable is:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="cic/stat" translate="1">
      <key name="number"></key>
      <key name="description"></key>
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

After adding this configuration, the client should make a small change to the page where the block appears and retranslate the page. This should resolve the issue with the untranslated texts.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket at WPML support forum.

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 4 replies, has 2 voices.

Last updated by Dhanendran Rajagopal 3 weeks, 3 days ago.

Assisted by: Dražen Duvnjak.

Author Posts
May 24, 2024 at 6:04 am #15665661

Dhanendran Rajagopal

Hi, I'm using WPML pay as you go plan to translate one of our customer site. I'm testing the functionality on develop env. When I translated one page, I can see few texts are not picked up by WPML

May 24, 2024 at 6:36 am #15665708

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

I created a minimal installation of WordPress, WPML, and all necessary WPML add-ons.

You can access the WordPress dashboard using the link below:
- hidden link

Kindly follow the steps below:
- Install the necessary plugin.
- Try to replicate the issue.
- Share with me step by step guide on how can I check the issue

Regards,
Drazen

May 24, 2024 at 7:05 am #15665748

Dhanendran Rajagopal

Hi Drazen,

1. I have added our custom theme into the sanbox.
2. Created a test page with custom stats block hidden link
3. Added custom XML config in hidden link

But still I'm not seeing the texts from the stats block in the translation editor.

Thanks,
D9

Screenshot 2024-05-24 at 12.35.21 PM.png
Screenshot 2024-05-24 at 12.34.54 PM.png
May 24, 2024 at 7:11 am #15665839

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

thanks for the quick reply.

This is the code that needs to be added, I tested looks good now.

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="cic/stat" translate="1">
      <key name="number"/>
      <key name="description"/>
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

Regards,
Drazen

May 24, 2024 at 7:20 am #15665883

Dhanendran Rajagopal

Hi Drazen,

This is now working. Thank you for your support.

Thanks,
D9

Dhanendran Rajagopal confirmed that the issue was resolved on 2024-05-24 07:21:36.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.