Skip Navigation

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

Problem:
You are using WPML with WPForms and the WPForms Multilingual plugin, and you're facing an issue where notification emails are not sent in the correct language after translating the form. Despite translating the texts in WPForms, the notification email still contains German text.
Solution:
We recommend modifying the plugin code to ensure that the notification emails are sent in the correct language. Specifically, you should edit the file wp-content\plugins\wpml-wpforms\classes\Hooks\WpForms\Notifications.php line 95 and comment it out, for example:

from

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

to

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

This change should help display the correct language in the notification emails as shown in the logs. Please check and confirm if this resolves the issue.

If this solution does not apply to your case, or if it seems outdated, 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.

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

Last updated by Jan 2 weeks, 3 days ago.

Assisted by: Kor.

Author Posts
May 13, 2025 at 2:13 pm #17028306

Jan

Background of the issue:
I am using WPML with WPForms and the WPForms Multilingual plugin on my site hidden link. I am trying to ensure that notification emails are sent in the correct language after translating the form.

Symptoms:
The notification email contains German text even though the form has been fully translated. I have changed the texts in WPForms and retranslated them, but German texts are still being sent.

Questions:
Why are some texts in the notification email still in German despite being translated?
How can I ensure that all notification emails are sent in the correct language?

May 15, 2025 at 1:19 am #17034708

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for contacting us. Based on the screenshots that you've shared, it looks like you've configured it correctly.

I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

May 15, 2025 at 3:02 pm #17037665

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I've tested three forms and it worked fine as shown in the email logs here hidden link . Could you check?

May 15, 2025 at 5:13 pm #17038204

Jan

Hey thanks for your reply. I Checked the mail Log and the problem still exists.
Take a look at the log 2025-05-15 15:00:51

this part:

--------

Etes-vous déjà client de La Mobilière? Nein <<< this is german
Avez-vous souscrit une cyberassurance? Ja <<< this is german

Falls Sie angeben, Mobiliar-Kundin oder Mobiliar-Kunde mit einer Cyberversicherung für Betriebe zu sein, überprüfen wir, ob Sie ein kostenloses/rabattiertes Sensibilisierungstraining beanspruchen können. Dazu übermittelt die Schweizerische Mobiliar Versicherungsgesellschaft AG, Bundesgasse 35, 3001 Bern, Ihre Policen-Nr. des Cyberversicherungsvertrags sowie die Angaben, ob zu diesem Zeitpunkt ein aktiver Versicherungsvertrag und eine entsprechende Berechtigung besteht, an die Schweizerische Mobiliar Services AG, Bundesgasse 35, 3001 Bern, welche diese Informationen an die Anqa IT-Security GmbH, Edmund-Rumpler-Strasse 5, 51149 Köln, weiterleitet. <<< this is german

D'après vos indications, le prix annuel est de .

--------

Nein, Ja and the checkbox text is still german. it should be replaced with the translated text by WPML. but there is always this part in german. the rest works well.
the value and names of the inputs and the text in the frontend are fine.

Bildschirmfoto 2025-05-15 um 19.12.25.png
Bildschirmfoto 2025-05-15 um 19.11.51.png
May 15, 2025 at 5:37 pm #17038287

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I see the issue now, please allow me to check and I will come back to you as quickly as possible.

May 16, 2025 at 5:34 pm #17043067

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. This needs to be escalated. Could you please install the required plugins, import the forms, and try to replicate the issue here? hidden link .

May 16, 2025 at 7:15 pm #17043236

Jan

Hi,

i added wpforms and wpform wpml multiligual and i translated the labels and placeholders (added an FR in front of the original text)

the translation layout looks a little bit fancier than on our page. maybe thats the new editor function.

i have also added my email to the notification and i did an test submit, but i didnt get an email. Maybe thats an spf oder dkim issue.

feel free to test, you can also add jan@likemachines.com to the mailing.

let me know

thanks for your support

Jan

May 19, 2025 at 7:13 am #17046592

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I've made some edits to the plugin code shown below and it seems to display the correct language shown in the logs hidden link . Could you check and confirm?

Edit the file wp-content\plugins\wpml-wpforms\classes\Hooks\WpForms\Notifications.php line 95 and comment it out, for example:

from

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

to

//$field['value'] = $this->getFieldValue( $field, $entry['fields'][ $key ], $formPostFields[ $key ], $translatedFields[ $key ] );
May 19, 2025 at 8:26 am #17047073

Jan

Hello,

ive checked the logs, looked fine.
ive commented out the line on my site, and it works fine.

Thank you, this will solve my issue, i have to launch the site today.