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.

Sun Mon Tue Wed Thu Fri Sat
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

Tagged: 

This topic contains 12 replies, has 3 voices.

Last updated by Andreas W. 8 months, 2 weeks ago.

Assisted by: Andreas W..

Author Posts
March 7, 2024 at 10:58 am #15383674

Dimitri

In notifications emails, the shortcode {all_fields} return all fields with labels and answers.

Labels are correctly translated
Answers are NOT translated and are displayed in main language only.

See notification email screenshot attached

Regards,

Capture d'écran 2024-03-07 115532.png
March 7, 2024 at 2:24 pm #15384902

Carlos Rojas
Supporter

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

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

Hello,
Thank you for contacting us

1.- Could you tell me where this shortcode comes from?

2.- Also, have you tried translating these strings in WPML -> String Translation or by following this guide? https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

Regards,
Carlos

March 7, 2024 at 2:25 pm #15384903

Andreas W.
Supporter

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

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

Hello,

Do I understand right that this is a request about Gravity Forms?

If so, please confirm if you followed this workflow when translating your form:

https://wpml.org/documentation/related-projects/gravity-forms-multilingual/#creating-and-translating-gravity-forms

Best regards
Andreas

March 12, 2024 at 1:44 pm #15399728

Dimitri

Hello,

These shortcodes are called "smart tags" in wpforms.
See documentation here: hidden link

Thank you
Dimitri

March 12, 2024 at 4:08 pm #15400641

Andreas W.
Supporter

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

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

Are you following this workflow to translate the form?
https://wpml.org/documentation/related-projects/creating-multilingual-forms-using-wpforms-and-wpml/#translating-forms

As those are form option fields, did you try to search the strings on the WPML Translation Editor by using this search option?

https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/#main-features-of-the-advanced-translation-editor

March 12, 2024 at 5:31 pm #15400948

Dimitri

Yes, off course I did.

All "Smart tags" results are always in main language and are never translated.
I guess those smart tags are not compliant with WPML yet.

All my wpforms are correctly translated with WPML.

I invite you to try on a test environment.

Regards

March 12, 2024 at 6:18 pm #15401085

Andreas W.
Supporter

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

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

Hello,

I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the test site to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

Best regards
Andreas

March 13, 2024 at 9:12 am #15402618

Dimitri

Hello,

I'm sorry but this website is critical with many cronjobs. We can not give any access to this website in production.

It is very easy for you to replicate this on a temporary test website.
You only need a WordPress site with
- Wpml
- WPForms Multilingual
- WPForms Plugin
- A translated form with "Smart tag" {all_fields} in the notification email

Test the form in secondary language and you will receive an email with fields answers untranslated.

Regards

March 13, 2024 at 9:49 am #15402846

Andreas W.
Supporter

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

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

Sure, but I can't find any problem yet.

One-click login:
hidden link

See WP Mail Logging.

Please try to replicate the problem there and let me know afterward.

Captura de pantalla 2024-03-13 044424.png
March 13, 2024 at 4:23 pm #15405518

Dimitri

Hello,

Easy to replicate.
I've added a multi choices field.
I translated it in DE

In the email, result in email for the multi choices field is in English and not in DE.

See attached image

Regards

Capture d'écran 2024-03-13 172009.png
March 14, 2024 at 12:03 pm #15409604

Andreas W.
Supporter

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

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

This issue has already been reported internally and our developers are working on a fix in an upcoming version of WPForms Multilingual.

The following workaround should currently solve the problem:

Please make a backup copy of the website and database beforehand.

In the file wp-content\plugins\wpml-wpforms\classes\Hooks\WpForms\Notifications.php line 55:

Comment out the following line:

Change the line:

$field['value'] = $this->getFieldValue( $field, $entry['fields'][ $key ], $formPostFields[ $key ], $translatedFields[ $key ]

Change it to:

//$field['value'] = $this->getFieldValue( $field, $entry['fields'][ $key ], $formPostFields[ $key ], $translatedFields[ $key ]

If this workaround doesn't help, please let me know.

March 14, 2024 at 12:49 pm #15409965

Dimitri

In english please

March 14, 2024 at 2:02 pm #15410426

Andreas W.
Supporter

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

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

My apologies, I have translated my previous comment now.

The topic ‘[Closed] Shortcode {all_fields} do not translate answers in notification email’ is closed to new replies.