Please note that this solution might be outdated or not applicable to your specific 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 problem persists, please open a new support ticket with us.
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 ensure that emails are sent in the correct language based on the user's selection or the site's locale. I noticed this issue while working with AffiliateWP and Membership Pro. Here is the link to the page where the issue can be seen: hidden link.
Symptoms:
Emails are being sent in English regardless of the user's language selection. This issue affects all AffiliateWP emails and some Membership Pro emails, even when users have selected languages like Spanish or Portuguese.
Questions:
Why are AffiliateWP emails always sent in English?
Why are some Membership Pro emails sent in English despite the user's language selection?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
Our apologies for the delay in getting back to you.
Have you already verified if all the strings from your emails are appearing as translated on WPML > String Translation, and further that those strings are assigned to the correct source language?
If you are unaware of how to find those strings, you can go to WPML > Translation Management > Dashboard > Other texts (strings) and search for them. If they are not yet translated, you can translate a job and translate them.
If you can confirm that those strings are properly translated, I can offer a WPML test site now which you can install the plugin and I will run some tests and try to recreate the issues.
Yes, I have already verified that all the strings from the emails are correctly translated and assigned to the proper source language within WPML > String Translation. Everything appears to be in order there.
Since the issue persists and affects all outgoing emails (except the email verification one, which works correctly), I believe it would be more efficient to give you access to a test site, which is a clone of the live environment, so you can safely run your checks and try to reproduce the problem directly.
You can check a short video showing what happens: hidden link
Please let me know how to proceed or if you need credentials.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
I'd like to take a closer look and request temporary access (wp-admin and FTP) to the website to investigate the issue further.
The required fields can be found below the comments section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.
IMPORTANT
Please be sure to back up your website and database before granting us access.
If you can't see the "wp-admin / FTP" fields, your post and website credentials will be set to "PUBLIC." DO NOT publish the data unless you see the required wp-admin / FTP fields.
I may need to install a plugin called "Duplicator PRO" to create a copy of the website so I can investigate the issue further.
However, I would also be very grateful if you could provide a staging site yourself for this purpose, or a copy of the website from your server.
If you have any questions about creating such a staging site, you can consult your hosting provider. Please note that WPML must also be registered on this staging site at https://wpml.org/account/websites/.
If you are unable to provide such a copy of the website for testing, please let me know via this ticket.
The private reply form looks like this: hidden link
Click "I still need help" the next time you reply.
Video: hidden link
Please note that we are required to request this information individually for each ticket. We are not permitted to access credentials that were not specifically submitted for this ticket in the private response form.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
Thank you very much for the test site!
According to AffiliateWP, the plugin does not yet support translation for email templates:
Lastly, when translating the email content sent to your affiliates in AffiliateWP » Settings » Emails, there is currently not a way to set multiple versions of each email for each language separately. As a workaround, it is recommended to include a version of each language you are supporting combined in the main, default language email settings for each email content section. Also, email template tags must remain in English.
Source: hidden link
Surely they could also use WPML String Translation to translate the texts from admin screens, but for this, you would need to add the strings again.
Please try this:
Go to WPML > Translation Management > Dashboard > Other texts and search for something very random that will not lead to any search results.
Once no string is found, you will see options that allow you to locate strings.
Use the option to search for texts in admin screens.
Here, search for the texts from the email, then add them to WPML String Translation and translate them.
Now, create a new affiliate in a second language and check if this solved the issue.
If this does not solve the issue, I would suggest you contact AffiliateWP about it and ask what state they are in obtaining 100% compatibility with WPML.