[Resolved] Wrong language in translated WPForms email confirmations
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an issue where the Swedish WPForms form sends an English confirmation email instead of Swedish, despite using WPForms Multilingual and WPML. This occurs even when other plugins and custom code are deactivated. Solution: The issue arises because the email address used to send the form is associated with a WordPress user account set to English in the WP language settings. This setting affects the language of the confirmation email, even if the form is sent while logged out. To ensure the confirmation email is sent in the correct language, use an email address that is not associated with a WordPress user, or use a non-WP user email like Gmail for testing. Updating the WPML plugin and add-ons to the latest version (4.7.2) might not resolve this specific issue but is recommended for general improvements and bug fixes. Instructions for updating can be found here: http://wpml.org/faq/install-wpml/.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. Additionally, 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. For further assistance, please visit our support forum at https://wpml.org/forums/forum/english-support/.
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.
Background of the issue:
I am trying to translate a Swedish WPForms form from Swedish to English. I use WPForms Multilingual and have deactivated all other plugins and custom code.
The issue can be seen at: hidden link
English translation: hidden link
The form is named
Screen recording: hidden link
Symptoms:
The Swedish form sends the English confirmation email instead of Swedish. This issue has been consistent across all sites using WPML and WPForms together for the last 6 months.
Questions:
Why is the Swedish form sending an English confirmation email?
How can I ensure the confirmation email is sent in the correct language?
Welcome to WPML support. I turned the chat into a ticket a you were not able to answer back there.
To check the issue I will nee dyou to do 2 steps:
1) Update WPML to version 4.7.1 and other plugins too. I checked your website and for some reason it does not show the new version. Maybe there is a connection issue for the website with our servers.
- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Make sure you are signed in wpml.org.
- Go to https://wpml.org/account/downloads/
- Click the "Download WPML manually" link to show the rest of the plugins on the page.
- Download the latest version of the WPML and its add-ons.
- Install them manually on your website.
- Test to see if the email language is correct this time.
2) Check the user language in the backend.
- To to WP Dashboard > Users > profile
- Change the language to English for the dashboard.
- test to see if the form emils now is sent all in English?
I updated the WPML plugins manually to the latest versions but I still get the English translation of the confirmation email when submitting the Swedish form.
I already have English as my profile language. But I'm sending the form logged out of WordPress, just to make sure that my personal WP profile settings doesn't affect the output.
Thank you. I went to the form in question. Changed Förnamn field to Förnamn 1 To make sure I made a small change on the original language.
Then I went to WPML > Translation Management and selected the form and sent it for translation.
I took the translation in WPML > Translations menu and made sure it is 100% complete.
After that, the emails are sent correctly in correct language.
By the way, I deactivated other plugins for testing and I installed a mail logging plugin to check the details.
Christopher is away, so I will be assisting you further.
Please update your WPML plugin and add-ons to the latest version, 4.7.2, to benefit from the latest bug fixes and improvements. This may not necessarily resolve your problem; however, we need to work on the newest code available to troubleshoot the issue best.
You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/
If you do not see the updates, you might need to click the Check for updates button in the Plugins → Add New Plugin → Commercial tab.
Please remember to backup your database before you proceed.
Let me know if the issue persists after an update has been done.
I know that this ticket is closed but I solved the problem, and I would like to share the real solution here:
Updating the plugins did not change anything. However, the reason that I got email confirmations in English when sending the Swedish form was that my email address has a WordPress user account with English in the WP language settings (even if I send the form logged out of WordPress).
I reproduced this behaviour with several user accounts with English in the WP User settings.
When sending the form from an email that is not a WP user, the confirmation email is sent in the correct language.
Since our real website visitors (that does not have WP accounts on our site) is not affected by this, it's not a critical error. However, it makes testing a bit harder since we have to use other email addresses, like Gmail, to test the forms to get the correct language in the confirmation emails.
So a fix that overrides the WP user settings would be nice, but not a must have.
Thank you for the update. This information is indeed helpful. I will update the summary of resolved information so that everyone who sees the ticket can test the solution.