Skip Navigation

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

Problem:
The client is experiencing issues with WPML where changing languages causes URLs to change and some content, including image galleries, to not translate correctly.

Solution:
Firstly, we acknowledged that FooGallery may have compatibility issues with WPML, which could be causing the translation problems. We then suggested that since the text for the images is added within FooGallery and not the default WordPress media text, the client should create a separate gallery with English text. After creating the new gallery, the client should edit the second language page and insert the English gallery shortcode to display the English image text.

If you're experiencing similar issues, we recommend trying the above solution. However, please note that this solution might be outdated or not applicable to your case. If it doesn't resolve your issue, we encourage you to open a new support ticket. We also 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. For further assistance, please visit our 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.

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by aleksejsZ-2 7 months, 2 weeks ago.

Assisted by: Dražen Duvnjak.

Author Posts
April 5, 2024 at 9:20 am #15487089

aleksejsZ-2

Hello,

I'm trying to stop WMPL from jumping to different URLs when switching from one language to another. In this case, the base is Slovenian, and the additional language is English.

Whenever I change to English, URLs change, and also even some content can change + image galleries are not being translated despite me filling all the requested information in media translation section of WPML.

I believe URL translation is the problem here.

I've tried changing settings under WPML > Settings, as you described in some other forum posts, but it did nothing. Tried both options, "Copy from original language if translation language uses encoded URLs" and " Auto-generate from title (default)".

The URL keeps changing in any case. I also tried to make some edits to the page, saved it, checked for translation updates, but there were no new translations.

The page with problems is hidden link . Other pages do not matter, as the translation works fine there. Only for this page it doesn't work.

Please let me know the solution. The goal is to get the gallery titles/descriptions to show up translated, URL changing doesn't matter. The plugin for galleries I used is FooGallery.

Best,
Aleks

April 5, 2024 at 10:45 am #15487479

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello Aleks,

thanks for contacting us.

I am not sure if URLs are causing issues with gallery translation since this plugin has some issues with WPML and is not officially compatible with WPML, so some issues can happen.

As I understand the goal here is to translate the gallery text, and I will do my best, but note it might need further collaboration from the plugin author.

Can you share how are you adding this text to images and then translating them?

Thanks,
Drazen

April 5, 2024 at 11:24 am #15487681

aleksejsZ-2

Hello Drazen,

Thank you for such a quick response!

As with most image gallery plugins, it adds images from WordPress media library, where I believe it pulls from all those descriptions. Then I translated all the media files in WPML in media translation.

I did a test in NextGen gallery on that page, which is supported by WPML, but the gallery wasn't translated either. And tried another plugin (Photo Gallery by 10Web), still having the same problem.

Would it help to create a new page?

Best,
Aleks

April 5, 2024 at 12:19 pm #15488103

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

thanks for getting back, I do not think it would help to create another page, since I do not believe it is related to that, but to some configuration or steps required to work properly.

Let me have a look for any quick solutions, just make sure to have a backup just in case.

Please share admin access to the safe box below.

Regards,
Drazen

April 8, 2024 at 7:34 am #15492796

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

thanks.

I have checked and it seems the image text is not coming from the default WP media text, but from the text you added for these images inside Foogallery. When you edit an image item you can add text there and that is the text that shows in front.

The best solution here would be to create another gallery and add EN text, then edit your 2nd language page and add EN gallery shortcode, to show EN image text there.

I hope this helps, let me know if any doubts.

Regards,
Drazen

Screenshot_1.jpg
April 8, 2024 at 8:38 am #15493069

aleksejsZ-2

Hello Drazen,

Thank you for looking into this!

Let me try to do this and double-check that everything works. Will let you know.

Best,
Aleks

April 8, 2024 at 9:51 am #15493407

aleksejsZ-2

There is a weird issue with this - new galleries worked, but when I edit original ones now it's showing all new English descriptions, so I didn't want to update them (to avoid overwriting everything). But I guess this has nothing to do with WPML.

In any case, thank you very much! Will let you know if I need more help.

Best,
Aleks