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.

Tagged: 

This topic contains 12 replies, has 2 voices.

Last updated by Carlos 1 year, 6 months ago.

Assisted by: Bigul.

Author Posts
May 30, 2023 at 12:35 am #13735615
Carlos

I currently have two issues:

1.- I can't translate image titles and descriptions.

I have a lot of galleries with photos that show each image's title and description (screenshot: hidden link ) and I'm trying to translate those using the Media Translation add-on (screenshot: hidden link ) but that isn't working, the title and description appear the same in both languages on the front-end. Am I missing something?

2.- Breadcrumbs won't translate.

I have a portfolio page, inside that page there are several portfolio items and inside each item in the page breadcrumb you can see the name of the portfolio page. I translated the page and changed the name accordingly but the breadcrumb won't change. Please check the following screenshots:

- Screenshot of original item (Spanish): hidden link
- Screenshot of translated item (English): hidden link

Can you help me figure out what's the problem?

Thanks in advance for your help.

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

https://wpml.org/forums/topic/breadcrumbs-wont-translate/

May 31, 2023 at 4:03 pm #13748783

Bigul
Supporter

Languages: English (English )

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

Hi Carlos,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

Please note, I have opened a new ticket for the Breadcrumbs won't translate issue. Because as per our support policies, we can only handle one issue per ticket. It will help us to serve you better and we can avoid discussing multiple problems in one ticket. I will get back to you soon on the latest ticket. Thank you for your understanding.

A couple of requests for tracking the *I can't translate image titles and descriptions* issue.

1) Please let us know the exact steps to reproduce the issue on your site with a couple of post URLs having this issue

2) Please allow me to make a duplicator copy of your site using the Duplicator plugin(https://wordpress.org/plugins/duplicator/) for debugging the issue on my local server. So we can troubleshoot the issue without affecting your live site.

--
Thanks!

Bigul

June 1, 2023 at 8:50 am #13751905

Bigul
Supporter

Languages: English (English )

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

Hi Carlos,

Thank you for the details and the login information. But the following URL is showing a 404 error for me. Please check the attached image for more details.

hidden link

So I would like to know I can't translate image titles and descriptions issue is happening on any other posts/pages.

--
Thanks!

Bigul

2023-06-01_14-14-17.png
June 1, 2023 at 12:48 pm #13753907

Carlos

Sorry about that, there was an error with the slug translation but it's now solved:

This is the original version: hidden link

This is the translated version: hidden link

The problem presents in all galleries in all posts.

Thanks.

June 2, 2023 at 11:15 am #13761053

Bigul
Supporter

Languages: English (English )

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

Hi Carlos,

Thank you for the details. I had a few rounds of testing on your staging site. But the Gallery items are not showing the translation. It looks like a compatibility issue with the *TheGem* theme.

Therefore I have created a test site in our Sandbox Server for further debugging of this bug. Because reproducing the issues in a fresh/minimal installation will help us a lot in debugging and also we can troubleshoot the issue without affecting your sites.

Please try the following steps and make sure the bug is existing or is not on the sandbox site.

1) Click this URL to visit the Sandbox site backend - hidden link
2) Install & Configure TheGem theme like your live site
3) Configure WPML like your live site and activate WPML add-ons
4) Create a Gallery and translate it
5) Create a Portfolio post with gallery & translate it

--
Thanks!

Bigul

June 5, 2023 at 12:03 pm #13770569

Carlos

Hi Bigul, thanks for your help.

I installed the theme, and created a portfolio item with a gallery: hidden link

I also configured WPML and translated the title, caption and description of the images: hidden link

Still translations aren't showing, you can check (language switcher in the footer).

Hope this will help you figure out what the problem is, really appreciate your help.

Best.

June 6, 2023 at 7:12 am #13775447

Bigul
Supporter

Languages: English (English )

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

Hi Carlos,

Thank you for configuring the sandbox site and reproducing the issue. We will debug it further and get back to you as early as possible. Please wait.

--
Thanks!

Bigul

June 6, 2023 at 12:06 pm #13778673

Bigul
Supporter

Languages: English (English )

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

Hi Carlos,

Please check the sandbox site now. I am getting the expected results after the following steps - hidden link

1) Visit WPML>>Settings>>Post Types Translation
2) Set *Translatable only show translated items* option for *Galleries(thegem_gallery)*
3) Save the changes
4) Visit Galleries>>All Galleries
5) Translate the Spanish Galleries to English manually - https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/#how-to-use-manual-translation
6) Visit WPML>>Settings>>Custom XML Configuration
7) Add the following code *Custom XML Configuration* field and save the changes

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag ignore-content="1">gem_gallery</tag>
      <attributes>
        <attribute type="post-ids" sub-type="thegem_gallery">gallery_gallery</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

8) Open the Portfolio post for editing in Spanish and make a minor change in the content to refresh the translation settings
9) Update the Spanish Portfolio post and update its English translation

It also worked in your sandbox site, when I manually translate the *Bosque de Chapultepec* gallery to English. Please check and let us know your feedback.

--
Thanks!

Bigul

June 7, 2023 at 3:05 pm #13787693

Carlos

Hi Bigul, I followed all the steps carefully and it doesn't work for me.

- Galleries are configured to be translatable: hidden link
- I made a manual duplicate translation of the gallery exactly as the instructions in the article you sent: hidden link
- I added the XML code: hidden link
- I updated the Spanish portfolio post and updated the English version.

I was very careful to follow all steps. When it didn't work I changed the gallery on the english version to the translated gallery duplicate but that also didn't work.

- You can see here the translation of a photo descritpion: hidden link
- And you can see here the translation wont show on the front end: hidden link

Is there a step missing?

June 7, 2023 at 4:01 pm #13788097

Bigul
Supporter

Languages: English (English )

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

Hi Carlos,

Thank you for the updates. Please try the following steps after a backup and check if is there any difference in the result.

1) Visit Galleries>>All Galleries
2) Switch to English via the Dashboard language switcher
3) Open the English Gallery post for editing - hidden link
4) Remove all the current images from Gallery. Guess it is still in Spanish
5) Insert the images translated into English
6) Save the Gallery post

--
Thanks!

Bigul

June 14, 2023 at 2:34 pm #13826389

Carlos

Hi Bigul, sorry that I haven't replied. I'm on vacation right now. As soon as I get back I'll try this extra step.

Best.

June 14, 2023 at 2:58 pm #13826605

Bigul
Supporter

Languages: English (English )

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

Hi Carlos,

Thank you for the updates. Take your time. We will wait for your feedback.

--
Thanks!

Bigul