Skip to content Skip to sidebar

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

Problem:
The client is experiencing issues with emails from AffiliateWP and Membership Pro not being sent in the correct language, despite having translations set up in WPML. Emails are consistently sent in English, regardless of the user's language selection.
Solution:
First, ensure that all email strings are correctly translated and assigned to the proper source language in WPML > String Translation. If the strings are not appearing, use the guide to find and translate them: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/
For AffiliateWP, since the plugin does not support separate email templates for different languages, include all language versions in the default email settings. Also, ensure that email template tags remain in English. For translating admin screen texts, follow this guide to add and translate strings: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#register-admin-and-setting-strings-for-translation
If these steps do not resolve the issue, consider contacting AffiliateWP regarding their progress on achieving full compatibility with WPML.

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.

This topic contains 4 replies, has 0 voices.

Last updated by Andreas W. 6 days, 20 hours ago.

Assisted by: Andreas W..

Author Posts
June 22, 2025 at 1:42 pm #17157123

vitoG-4

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?

June 27, 2025 at 4:25 am #17175594

Andreas W.
WPML Supporter since 12/2018

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?

Guide:
https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/

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 not find them, please follow this guide:
https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

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.

Best regards
Andreas

July 7, 2025 at 3:29 pm #17209931

vitoG-4

Hello Andreas,

Thank you for your response.

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.

July 8, 2025 at 9:49 am #17212865

Andreas W.
WPML Supporter since 12/2018

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.

Best regards,
Andreas

July 9, 2025 at 8:48 pm #17221078

Andreas W.
WPML Supporter since 12/2018

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.

Guide:
https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#register-admin-and-setting-strings-for-translation

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.

Best regards
Andreas

find strings.png