This thread is resolved. Here is a description of the problem and solution.
Problem:
You are experiencing issues with email translations in a bilingual site (Spanish and English) using the Indeed Ultimate Membership Pro plugin. Specifically, emails notifying users about account activation and deletion are not translating correctly and default to Spanish regardless of the request language.
Solution:
The issue stems from the need for the Indeed Ultimate Membership Pro plugin to include compatibility code for WPML. We cannot resolve this directly from our end. We recommend forwarding the following documentation to the Indeed support team to request the necessary compatibility updates:
- https://wpml.org/documentation/support/sending-emails-with-wpml/
- https://wpml.org/documentation/support/go-global-program/
Additionally, you can contact the Indeed support directly here: https://support.wpindeed.com/
If this solution does not apply to your case, or if it becomes 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. Should you need further assistance, 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.
Tagged: Compatibility
This topic contains 24 replies, has 3 voices.
Last updated by Andreas W. 1 year, 5 months ago.
Assisted by: Andreas W..
| Author | Posts |
|---|---|
| April 11, 2024 at 1:16 pm #15509507 | |
|
anabellaR |
I have a problem with string translation. My site is currently set up in two languages, Spanish is the default language and English is the secondary language. All the emails I receive are arriving in Spanish if I make the request in Spanish and in English when I make the request in English with the exception of two cases, the email that notifies users when their account is activated and the other that notifies when It is eliminated. The field is translated, but it takes the text in Spanish regardless of the language in which the request was made, I did a test by placing one text in the translation and it takes another. Is there a way to reset that particular translation? Or how could you support me in verifying what may be happening with this case? The Membership plugin that we use in this case is Indeed Ultimate Membership Pro, but as I indicated, it is working without problems except for the translation of those two emails, which does not take the texts that I configure for them. |
| April 11, 2024 at 2:39 pm #15509876 | |
|
Itamar WPML Supporter since 02/2016
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, We need to replicate this issue on a fresh WordPress installation. Then, we'll be able to escalate it to our compatibility team. For this, I created a test website with a clean WordPress install. You can access it through this link: hidden link With this link, you'll be directly logged in. Could you please install the Ultimate Membership Pro plugin and see if the issue is replicable on a clean WordPress installation? I already configured WPML (Spanish as the default language and English as the second language) and WooCommerce.I also installed the Email Log plugin to catch the emails and check their strings. Please also ensure you install the latest version of the plugin. Please let us know when everything is finished, and you can replicate the problem. Regards, |
| April 11, 2024 at 5:46 pm #15510676 | |
|
anabellaR |
I already installed the latest version of the plugin. But here I had other problems: - When I put the text of the emails in the notification area of Ultimate Membership Pro, it does not appear in the string translations, it takes the default text that the tool brings. Could you access my site? At the moment it is in maintenance mode waiting to resolve this detail with the two pending emails. |
| April 12, 2024 at 1:39 pm #15513106 | |
|
anabellaR |
Hello! Do we have anything new on this? |
| April 12, 2024 at 11:24 pm #15514324 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, I can see the issue on the test site. In this case, you need to delete the title and the message for each notification from WPML String Translation and then save your Email Notification again. This will register the updated string. The test site can not send e-mails but I have installed a E-Mail Logger Plugin now. I can confirm that for example the "Your account has been deleted" e-mail is not getting translated. Now, as this plugin has never been tested by us and is not listed on our list of recommended plugins, could you please contact the plugin support and ask of there is another way to translate those notifications? According to their documentation, it says: Source: hidden link If further assistance from our side is needed, please let us know. Best regards |
| April 15, 2024 at 2:38 am #15516909 | |
|
anabellaR |
I can't get it to take the translation of the texts to approve a registration and delete a user. This is what I did: - I deleted the texts from the string translations (both to approve an account and to delete a user), in the Ultimate Membership Pro email notification settings I saved the texts, then I went back to the string translations to validate that I It will show the fields again to do the translation, just like when doing the test, when I approve a registration it sends me the notification in the default language, which in this case is Spanish and not in English, the same thing happens when I delete a user. - I eliminated the approve account email and the delete user email within the Ultimate Membership Pro notification settings, I went back to the string translation to eliminate the fields, I created new email notifications, I assigned them that one should be the email they receive the users when the accounts are approved and the other when a user is deleted from the administrator and I adjusted the translations, the same thing happens, it only takes the default language in the emails. - I placed the text only in English and it took that email for both languages, when I modified only the subject in Spanish and adjusted the translation it took the subject in Spanish for both languages and the text that was by default. I thought it was because in the administrator I was working selecting the Spanish language but the same thing happens when I select the English language, it does not verify the language where the action is executed and the email is always in Spanish as the default language. I really need help verifying what is happening with this, I have had the page in maintenance mode for several weeks because of this and I still haven't gotten any kind of solution. The Ultimate Membership Pro team tells me that I should consult with you since it is a translation issue. |
| April 16, 2024 at 6:34 pm #15527955 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
So far, I can confirm that this plugin is not working as expected with WPML. I can offer to create a ticket for our Compatilbity Team, but take note that to make the plugin work with WPML it requires the cooperation of the plugin author and very likely the code of that plugin will need various adjustments or a specific WPML Compatilbity Addon created by their team. For this purpose, the author can reach out to us and join our Go Global Program: Maybe you could let their support know about this and ask them to inform the author? In the meantime, our compatibility team will try to provide a workaround, if possible. Once I have feedback from our team, I will be in contact with you again. |
| April 17, 2024 at 12:30 am #15528587 | |
|
anabellaR |
I appreciate all the support you can offer me. |
| April 17, 2024 at 2:43 am #15528805 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Thank you! Same here, as soon our compatibility team has news about this issue I will contact you again. |
| April 25, 2024 at 5:47 pm #15567019 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, I received the following feedback from our compatibility team: Issue 1: Changes do not appear on ST, we need to translate the registered strings and register them again: This seems to be one in purpose by the author. However: Open .../wp-content/plugins/indeed-membership-pro/classes/services/WPMLActions.php file. Look for line 41. Comment out these lines:
// if ( function_exists( 'icl_st_is_registered_string' ) && icl_st_is_registered_string( $domain, $name ) !== null ){
// continue;
// }
Issue 2: E-mails like "User deleted" or "User approved" are not getting translated Actually, there is not an issue. Emails should be sent in the user language (the one set in Users > Your Profile) and not in the page language as most people expect. Create a user. Best regards |
| April 30, 2024 at 7:21 pm #15582556 | |
|
anabellaR |
I have tried to replicate this, but even though I select the English language in the user profile it still sends me the approved account notification with the Spanish version. I attach the image of the records so you can see that it only happens with that email despite making the language adjustment in the profile. |
| April 30, 2024 at 9:06 pm #15582814 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Do I understand correctly that it works now as expected for users who are non-admins but admins do not receive the email in the correct language? I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website 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 The private response form looks like this: Next time you reply, click "I still need assistance." Video: 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. |
| May 2, 2024 at 4:58 pm #15588588 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Did you run this test using the same user? Did you maybe use the option "Send test e-mail" from the plugin's settings page? The e-mail will be sent in the user's profile language. By default, this setting is set to "Site's default language". This means if you force an e-mail as admin then it might even be that this admin's language will interfere with this setting. Please test if you can recreate the issue on this test site and let me know the results: Also, please include a short list with the exact steps that you are taking as I am not familiar with this membership plugin and I am kind of not following for example how to "Approve" a user. |
| May 3, 2024 at 1:32 am #15589373 | |
|
anabellaR |
Sorry, but I can't receive emails from the test site you created. I carried out the tests with different emails, repeatedly and with none of them I was able to receive the notification in English even though I configured the language in the user's profile. I will explain the entire process I did: - Remove active account and deleted user fields (both title and message) within string translations. When I send the test email from the Indeed Ultimate Membership Pro plugin on my site, it arrives in Spanish and when I do this test on the site indicated to me, I do not receive notifications. |
| May 4, 2024 at 2:37 am #15593057 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
I can see the issue now and it occurs once the site's default language is not English. If I test the plugin with the site's default language English everything seems to work as expected. If a new user registers using the registration form, then his user language is set to "Site default language" and this will send the e-mail that an admin sends always in the site default language. Workaround: This means, that if a user registers on the Spanish registration form, then his user language should be set to "Spanish" and this would solve the issue. I am still looking into a programmatic fix for this and I will contact you tomorrow again. |
