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.

Our next available supporter will start replying to tickets in about 1.51 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

Tagged: 

This topic contains 32 replies, has 2 voices.

Last updated by Bruno Kos 1 month, 1 week ago.

Assisted by: Bruno Kos.

Author Posts
October 1, 2024 at 12:17 pm #16240294

alinam-2

Clear now, after few other tests

I confirm what was written before, re. what I made in your sandbox, with precisions aiming at reducing potential misunderstanding.

The problem statement: when you open the translator for the 1st time, the image is proposed for translation in visual editor. When you open it for the 2nd time (eg for another language), the image has vanished. Supposedly, any image should be proposed for translation, incl. legend, description, etc.

I made 2 posts on your sandbox. First one, I already opened it for translation. If I re-open it for translation, image is not proposed for translation.
The 2nd is "virgin". If you open it, you will see image for translation. If you open it a second time, image won't be proposed.
If you need to re-create the issue, use code editor. Copy the code of 1st article in a new one. And repeat.

This is potentially linked with my other ticket , re visual translator working once every 2 times.

What is proposed for translation also varies ... the "interpretation"' from string, classic editor and advanced editor vary.

If something is not correct, precise what you don't see in sandbox when doing what.

Regards

regards

October 2, 2024 at 7:30 am #16243606

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

OK, I am escalating this to our compatibility team, so the issue with Modal Block.

I followed this:

1. **First Time Translation**:
- Open a post for translation
- In the translation editor, the image is presented for translation.
- Save the translation.

2. **Second Time Translation**:
- Open the same post for translation in another language.
- The image is no longer presented for translation.

3. **Test with a New Post**:
- Copy the content of the first post into a new post.
- Open the new post for translation.
- The image will show for translation the first time but not the second.

I was able to reproduce the issue, however no error appear in the logs.

Note that for our support rules we handle one issue per time, so this ticket will only involve Modal Block issue.

For CPU and other issues please open new tickets.

This may take some debugging time, I'll get back to you as soon as I have any news or questions for you.

moda block.png
October 4, 2024 at 5:18 am #16252331

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

Can you please try the following:

1. Go to **WPML > Settings > Custom XML Configuration** in your WordPress admin dashboard.
2. Add the following code to the **Custom XML Configuration** section and save the changes:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="bod/modal-block" translate="1">
      <key name="title" />
      <key name="showOn" />
      <key name="triggerImageSizes">
        <key name="thumbnail">
          <key name="url" />
        </key>
        <key name="medium">
          <key name="url" />
        </key>
        <key name="full">
          <key name="url" />
        </key>
      </key>
      <key name="triggerImageSrc" />
      <xpath>//img/@src</xpath>
      <xpath>//h2</xpath>
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

3. Make a small modification to the original post (for example, edit the content slightly and save).
4. Check if the issue is resolved after applying these changes.

The topic ‘[Closed] Too many reported errors’ is closed to new replies.