Skip to content Skip to sidebar

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

Problem:
The "AREA RISERVATA" from "Full Menu" shows untranslated in the Front End due to a compatibility issue with dynamic fields from the Lottie widget.
Solution:
If you're experiencing this issue, we recommend creating a full website backup first. Then, add the following code to your functions.php file:

/*<br />* WPML Workaround for wpmlsupp-11806<br />*/<br />add_filter( 'wpml_pb_elementor_widget_dynamic_id_converters', function( $converters ) {<br /><br />    $isLottie = \WPML\FP\Relation::propEq( 'widgetType', 'lottie' );<br />    $lottieLinksLens = \WPML\FP\Obj::lensPath( [ 'settings', '__dynamic__', 'custom_link' ] );<br /><br />    return array_merge(<br />        $converters,<br />        [<br />            [ $isLottie, $lottieLinksLens, 'popup', 'popup' ],<br />        ]<br />    );<br /><br />} );

This solution might be irrelevant if it's outdated or not applicable to your case. 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 the issue persists, 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.

Tagged: 

This topic contains 11 replies, has 2 voices.

Last updated by Lucas Vidal de Andrade 1 year, 7 months ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
May 31, 2024 at 1:35 pm

barbaraP-21

The "AREA RISERVATA" from "Full Menu" shows untranslated in the Front End.

May 31, 2024 at 5:18 pm #15693577

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

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

Hey there,

I sent your ticket to our development team, to get a second opinion on what the solution can be. As soon as I have a feedback from them, I'll let you know.

June 3, 2024 at 5:55 pm #15698902

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

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

Hey there,

I checked your issue and noticed it only happens to this specific pop-up. Could you please try creating a new one and delete the previous one?

I know it takes some work, but in this case, it might be simpler and quicker to solve the issue this way. I appreciate your cooperation.

Thanks in advance,
Lucas Vidal

June 4, 2024 at 12:48 pm #15702096

barbaraP-21

Hi Lucas,
thank you for your reply.
Ok, I will try creating another popup but please, don't close this ticket until we solve the problem.

Thank you so much

June 4, 2024 at 5:31 pm #15703838

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

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

Ok, let me know!

June 7, 2024 at 8:16 am #15714069

barbaraP-21

Hi Lucas,
I've tried to create another popup, as you can see now, but still the same problem. only the button AREA RISERVATA can't be translated by wpml.
I really can't understand why.
Please help me....
thank you

June 7, 2024 at 3:03 pm #15717174

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

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

Hey there, thank you for sharing your results. I'm in touch with our developers, we'll take a more profound look and get back to you as soon as we have new information. Thank you for your patience.

June 17, 2024 at 11:29 am #15744994

barbaraP-21

Hi Lucas,
hope you're well.

Have you got any good news for me?

thanks

June 18, 2024 at 12:07 pm #15748882

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

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

Hey there,

Thank you so much for your patience. We are still investigating, but haven't gotten into anything conclusive yet. We noticed that without the amination JSON file, the issue is not reproducible, but we are still investigating. I'll update you as soon as possible.

Thanks in advance,
Lucas Vidal

June 24, 2024 at 1:38 pm #15807706

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

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

Hey there,

Thank you for waiting. We found that the issue was indeed a compatibility issue between, we still don't support dynamic fields from the Lottie widget. As a workaround, please create a full website backup and add the following code to your functions.php file:

/*
* WPML Workaround for wpmlsupp-11806
*/
add_filter( 'wpml_pb_elementor_widget_dynamic_id_converters', function( $converters ) {

	$isLottie = \WPML\FP\Relation::propEq( 'widgetType', 'lottie' );
	
	$lottieLinksLens = \WPML\FP\Obj::lensPath( [ 'settings', '__dynamic__', 'custom_link' ] );

	return array_merge(
		$converters,
		[
			[ $isLottie, $lottieLinksLens, 'popup', 'popup' ],
		]
	);

} );

Let me know if you have further questions.

June 25, 2024 at 7:53 am #15817700

barbaraP-21

Hi Lucas,
thank you, it seems to work now!

only a question, now you've found this "bug" and I think you're gonna fix it in the next WPML update, isn't it?
If so, should I keep this code in the functions.php or it would be better to erase it (of course, only when the update will work perfectly...)?

Thank you for your help!

June 25, 2024 at 3:24 pm #15822588

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

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

Hey there,

It's best to keep the code in your functions.php file. Even though it will be fixed in the next releases, we do not have a specific date, so to keep your website working properly, you can keep the code there 🙂