Skip Navigation

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 2 voices.

Last updated by Alejandro 1 year, 9 months ago.

Assisted by: Alejandro.

Author Posts
September 11, 2023 at 5:02 pm #14378663

yvesS-11

Hello,

I have an issue with the internal emails not being translated.

I have raised a ticket to my theme support (WP Rental which is one of your partner). They advised that I should contact you to solve the issue by highlighting the following points:

MY QUESTION: All internal emails are not translated into French. All the emails sent for registration, new bookings, and messages sent to French-speaking users remain in English. How do I make sure those emails sent to users are translated as per their spoken language..

WP RENTAL SUPPORT ANSWER: You use WPML and this question is related to 2nd language managed by WPML, correct? It is possible emails picked up by WPML from WPML string transalations will be sent to users based on the language in which they use the site to trigger an email, but I am not 100% sure. Please contact WPMl to confirm how this would work. Our emails are managed in theme options - Email management so technically they could be translated with WPML as string translation.

What I am not sure is
- if WPML needs to register these emails we already have in email management in wpml string in a specific way. they can check
- if wpml can detect user language and send an email based on string translation - this they have to confirm.

In the information we know about WPML, we do not have this info hidden link - we put here all they told us about their plugin. In general support for WPMl si managed by their team. If you need us to look over a ticket you opened please send us the WPML ticket to checck and we will put our input there.

September 11, 2023 at 5:05 pm #14378673

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

In order to tackle the internal mail issue please let me know the following:

1) By internal mails you mean they are sent to the ADMINs of the site, correct?

2) Can you let me know where you can set the original text of these mails?

3) Can you write the steps to recreate the problem with the mails, please?

I'll be able to understand better the problem and understand what to do next 🙂

Regards.

September 11, 2023 at 11:45 pm #14379859

yvesS-11

Hi Alejandro,

Thank you for above. Here are the clarification as requested:

1) By internal emails I mean, every email that are sent by the system to Users (renter and property owner) such as, Email content for New user notification, Email content for New user admin notification, Email content for Purchase Activated, Email content for Password Reset Request, mail content for Password Reset etc.

2) The emails are located in Email management aria here: hidden link - WpRentals Options>Email Management>Email Content

3) Please see an example as per this video link (until 0:31s): hidden link.
For this illustration, the website is turned on French version. But when I reserve or book, the email is received in English. I tested different email options (New user admin notification, Email content for Purchase Activated, Email content for Password Reset Request, mail content for Password Reset) with someone living in France, the result is the same. Remember, this was the reason why I enabled the Browser Language and you advised me not to.
The correct working setting should be: French speaking users (website turned onto French) receive all the system notifications in French, and all English users their notifications emails in English (website turned onto English).

Hope this clarifies everything.

Best regards

September 13, 2023 at 7:33 am #14387465

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

By default the mails are sent in the language of the users. the thing is that by default the user's mail is created in the default language of the WordPress site which in your case is English.

Can you try going to your user's profile and change the language from "default" to a specific one, like french and then try to send yourself a mail? see if the mail is in french this time and if it is, then you can change the mail of the users to reflect the language that you want to send the mails in for them.

Try it out and let me know how it goes 🙂

September 18, 2023 at 6:31 pm #14414943

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Please check this video: hidden link

The problem here seems to be that you were translating the incorrect strings. you were translating internal strings that "looked" like the correct ones but they weren't really the actual ones that were used in the mails.

You can watch the video to know more, or just use this method to register the correct one: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#strings-arent-selected-for-translation

i know it's a tricky situation, however i'd suggest you talk to the WP Rental support about this, because it seems this particular issue happens quite often among WPRental and WPML users (And we can't really do more than wha't we're doing here about this).

They can contact us, since they are partners and we can help them fix this permanently 🙂

------------

By the way, this code snippet might also come in handy: hidden link

Regards.