Skip Navigation

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

Problem:
You are trying to translate AltTexts for images included through the WP-Carousel plugin on your site, but when images are included through a carousel, there is no option to translate the AltTexts - they are always shown in English.
Solution:
We recommend modifying the WP-Carousel plugin's code to include WPML's filters for translating attachments.
This change will allow you to translate the original media directly in the media library, without needing to translate the carousel or its meta-fields.

Please note that this solution might be outdated or not applicable to your specific case. If this solution does not resolve your issue, 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 you still need assistance, 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 23 replies, has 1 voice.

Last updated by alexZ-17 1 week, 1 day ago.

Assisted by: Andreas W..

Author Posts
March 29, 2025 at 4:26 pm #16875538

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Ok, let's wait for their reply. Maybe it might be something that they already cover if you purchase the PRO version.

March 30, 2025 at 7:44 am #16876140

alexZ-17

1 Congratulations! Your proposal is accepted:

Hi,
Thanks for sharing the code with us. We will forward it to the development team and include it in future versions of the plugin.
We appreciate your help and cooperation.
Thank you.
--
Pulak Ahmed
support@shapedplugin.com

If you don’t oppose, I would suggest I inform Amit (support.manager@onthegosystems.com) about it, because it is not only a proof of your professional level, but also the sign of importance of WPML in the WP community.

2 Due to the fact that I am unsure if my skills would be enough to implement your general workflow – even if you support me – maybe it is simpler that I update wp-content\plugins\wp-carousel-free\public\WPCF_Helper.php locally. It could be probably better if ShapedPlugin tests for side effects, but due the experience with you I assume the risks are minimal – and naturally are on my side.
What is your opinion?
thx

April 1, 2025 at 3:44 pm #16883796

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

The compatilbity team provided a new workaround, that is simpler and solves the issue, too:

wp-content\plugins\wp-carousel-free\public\WPCF_Helper.php

Look for line 258

Replace:
[php]
					foreach ( $attachments as $attachment ) {
						require self::wpcf_locate_template( 'loop/image-type.php' );
					} // End foreach.

With:

					foreach ( $attachments as $attachment ) {
						// WPML Workaround for compsupp-7940 
						$current_lang = apply_filters( 'wpml_current_language', NULL ); 
						$attachment = apply_filters( 'wpml_object_id', $attachment, 'attachment', TRUE, $current_lang ); 
						require self::wpcf_locate_template( 'loop/image-type.php' );
					} // End foreach.

This will translate the original media ID. No need to translate the carousel or its meta-fields. You can translate meta-fields from the IMG (alt, title, description) directly in the media library.

If you would like my assistance with implementing this change, please let me know.

April 2, 2025 at 3:15 pm #16887809

alexZ-17

Everything works fine.
Thanks a lot.
Should I forward the simpler code to ShapedPlugin?
Best regards

April 2, 2025 at 3:37 pm #16887888

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Yes, please report the issue to the author for further feedback.

It is yet unclear to me at this point if this is something they cover in their PRO version.

April 4, 2025 at 9:17 am #16896180
alexZ-17

It seems yesterday it was a blackout at WPML – translations not available, support -dead.
I have not understood it at first and looked for a failure on my side, and have found something strange – on some pages languages are mixed.
I could imagine that if translation is in progress, it could be a case.
But I enclose the page where no translation is in progress and I am sure the page was in order - English text is red-circled.
Have you any idea?
Should I open a new thread?
Basic question: if a page is translated is the website dependent on WPML servers?

New threads created by Andreas W. and linked to this one are listed below:

https://wpml.org/forums/topic/split-translations-are-mixed-up/

LanguageMix-B604_20250404_Seite_1.jpg
LanguageMix-B604_20250404_Seite_2.jpg
April 4, 2025 at 10:22 am #16896643

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

My apologies, but we can only handle one issue per ticket.

I am splitting your last comment into a new ticket and will follow up with you from there.

Can you please confirm if the issue that we handled on this ticket could be clarified with ShapedPlugin LLC?

April 4, 2025 at 11:19 am #16897140

alexZ-17

I have forwarded the second version to ShapedPlugin - but they are on holydays and will contact me in time due.
Can we close this thread?

April 4, 2025 at 11:29 am #16897154

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Let's close for now and wait for the feedback of ShapedPlugin.

In case further assistance regarding this issue is needed from our side, please let us know.

April 4, 2025 at 2:05 pm #16897938

alexZ-17

great support from Andreas and compatibility team