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

Last updated by Osama Mersal 1 year, 8 months ago.

Assisted by: Osama Mersal.

Author Posts
August 30, 2023 at 9:31 am #14311945

benR-2

Ok, thank you. Where lies the global widgets translation problem, elementor or wpml? Should I report this to elementor?

Kind Regards,
Ben

August 30, 2023 at 9:57 am #14312269

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi Ben,

I'm not sure what causes the issue, but I tried to replicate the issue on a sandbox site to consult our compatibility team. (hidden link)

Please go to this page and test the three forms to confirm if that is the same issue on your site. (hidden link)

Thanks for your cooperation

Best regards,
Osama

August 31, 2023 at 9:52 am #14319011

benR-2

Yes, same issue.

August 31, 2023 at 10:03 am #14319045

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for your confirmation. I've consulted our compatibility team and will update you when I get their reply.

Best regards,
Osama

August 31, 2023 at 11:24 am #14319871

benR-2

Another issue I have, is that my field shortcodes in the same form email are being translated from [field-id="email"] to [field-id= email=""].
Please check the sandbox site. I found the translation in string translation, searching for "message".

August 31, 2023 at 11:29 am #14319921

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I fixed this translation in String Translation. Please check the mail log and let me know if the issue is fixed. (hidden link)

Best regards,
Osama

August 31, 2023 at 11:31 am #14320113

benR-2

Its not ok, because if you translate again the page in ATE it gets overwritten

August 31, 2023 at 11:38 am #14320187

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I reported this issue to the compatibility team and will update you as soon as I get their reply.

Thanks for your cooperation

Best regards,
Osama

August 31, 2023 at 11:40 am #14320285

benR-2

I dont know where I found [field-id="..."], which is actually working in main language 🙂 [field id="..."] is correct (no dash). Sorry for this one.

August 31, 2023 at 11:44 am #14320317

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

It's okay 🙂. So, the only issue here now is the global widget form's success message. Am I right?

Best regards,

August 31, 2023 at 11:51 am #14320393

benR-2

and email/email2 messages AFAIK (see last email log). Global widget. Have not tested other features.

August 31, 2023 at 11:53 am #14320401

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Thanks for your update. I'll check it and update you when I get our compatibility team's reply.

September 2, 2023 at 10:03 am #14329913

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for your patience. Our compatibility team found a workaround for the success message issue. Please check the following steps:

1- Open .../wp-content/plugins/elementor-pro/modules/forms/classes/ajax-handler.php file.
2- Look for line 88.
3- Replace the following code

$template = Plugin::elementor()->documents->get( $form['templateID'] );

With

// WPML Workaround
$template = Plugin::elementor()->documents->get(apply_filters('wpml_object_id', $form['templateID'], 'elementor_library'));

After that, please clear the site's cache and check the global form success message.

Best regards,
Osama

September 2, 2023 at 2:06 pm #14330311

benR-2

Is this something elementor will implement? Otherwise I am not comfortable modifying plugin files directly.

September 2, 2023 at 3:17 pm #14330525

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

If you are uncomfortable editing the plugin, please consult Elementor support regarding the issue and our workaround.

Best regards,
Osama