Skip Navigation

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

Problem:
The client was experiencing issues with Media Translation not working in Gutenberg, specifically with anchors not showing up for translation.

Solution:
We recommended that the client incorporate a custom XML configuration into WPML. Here is the step-by-step process:
1. Navigate to WPML > Settings > Custom XML Configuration tab.
2. Insert the following custom XML configuration:

<wpml-config><br />  <gutenberg-blocks><br />    <gutenberg-block type="core/group" translate="1"><br />      <key name="style"><br />        <key name="background"><br />          <key name="backgroundImage"><br />            <key name="id" type="post-ids" sub-type="attachment" /><br />            <key name="url" type="media-url" /><br />          </key><br />        </key><br />      </key><br />    </gutenberg-block><br />  </gutenberg-blocks><br /></wpml-config>

3. Make slight adjustments to the primary language page and re-translate it.
4. In the advanced Translation Editor, attempt to locate the image name.

If the solution provided does not resolve the issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket with us.

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

Last updated by Kor 9 months ago.

Assisted by: Kor.

Author Posts
February 9, 2024 at 7:51 am

Martynas.V

Media Translation not working in Gutenberg

February 9, 2024 at 10:05 am
February 9, 2024 at 2:32 pm #15286546

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

Here is the ticket and please let me know if you need anything further.

February 9, 2024 at 3:52 pm #15286890
Martynas.V

I will wait for you response on how to fix the issue.

In the meantime I just noticed that ATE is separating sentence because it finds dot after a year mark. hidden link - on the left I marked that all the fields are one sentence. It is impossible to make a translation like this. Is it possible to translate by paragraph elements at least?

New threads created by Kor and linked to this one are listed below:

https://wpml.org/forums/topic/ate-is-separating-sentence/

February 9, 2024 at 6:05 pm #15287234

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

We apologize for the inconvenience, but in order to proceed with troubleshooting, we kindly request a site snapshot. Alternatively, with your permission, we can create a snapshot on our own.

For this purpose, we typically recommend using the free plugin "Duplicator." If you are already familiar with how Duplicator works ( https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To assist you further, please follow these instructions:
Watch the Duplicator instructions video: hidden link

Refer to the instructions provided by WPML on how to provide supporters a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

If the archive file exceeds 400MB in size, please utilize Duplicator's file filters to exclude the cache, wp-uploads directory, media, and archive files.

Once you have the archive file, please share the link with us. You can use services such as Google Drive, Dropbox, or similar platforms as the snapshot file will likely be large.

Please note that your next reply will be private, visible only to you and me. You can paste the link to the file there. Rest assured that once the issue is resolved, I will delete the local site.

February 10, 2024 at 12:34 pm #15288449

Martynas.V

hidden link - here is duplicator files. I made this before reading you reply and didn't check password for user "laikinas". So when extracting you can make a new user or just reset password via phpmyadmin. Or do reset password and I will send you a link.

P.S. I can see this reply when not logged in so it is not private.

February 12, 2024 at 8:43 pm #15294782

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your patience.

Apologies, we require additional time to investigate this matter thoroughly. I will get back to you as soon as possible.

February 14, 2024 at 8:27 pm #15304377

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

I've created a sandbox site here hidden link and could you please replicate this page hidden link so that I could check? I cannot find a way to display a background image in a Gutenberg block.

February 15, 2024 at 7:32 am #15305174

Martynas.V

Hello,

I changed theme to twenty twenty four. It has an option to have background image on a group element. That where image is set.

And I changed front page.

February 18, 2024 at 7:44 pm #15315521

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

I've escalated this to our 2nd Tier Support and I'll come back to you once I've feedback.

February 20, 2024 at 5:30 pm #15324236

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your understanding.

We have a resolution ready, requiring you to incorporate the provided custom XML configuration into WPML > Settings > Custom XML configuration tab.

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="core/group" translate="1">
      <key name="style">
        <key name="background">
          <key name="backgroundImage">
            <key name="id" type="post-ids" sub-type="attachment" />
            <key name="url" type="media-url" />
          </key>
        </key>
      </key>
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

Afterward, make slight adjustments to the primary language page and re-translate it. In the advanced Translation Editor, attempt to locate the image name. Inform me if you manage to do so. If not, please update your Website WP admin access credentials here, and I will demonstrate the process for you.

February 21, 2024 at 7:06 am
February 21, 2024 at 7:31 am #15325579

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for getting back to me.

I've noticed that the group background image is now showing the English version on hidden link.

Did you resolve the issue, or could it possibly be a caching problem?

Regarding the group anchors issue, could you provide further details so that I can split the ticket appropriately for follow-up?

Screenshot 2024-02-21 at 3.30.11 PM.jpg
February 21, 2024 at 7:45 am #15325606
Martynas.V

Yes, it might be cached for a second. I see that it is working now.

As for anchors not sure what details more can be told. It just not showing to be translated.
hidden link

New threads created by Kor and linked to this one are listed below:

https://wpml.org/forums/topic/gutenberg-group-anchors-cannot-be-translated/

February 21, 2024 at 7:48 am #15325612

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Glad that the image translation works now. I've split the ticket here https://wpml.org/forums/topic/gutenberg-group-anchors-cannot-be-translated/ so that we can follow up with the group anchor translation issue.

As for this ticket, kindly I will mark it as resolved.