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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 -
- 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

This topic contains 32 replies, has 0 voices.

Last updated by Shekhar Bhandari 21 hours, 38 minutes ago.

Assisted by: Shekhar Bhandari.

Author Posts
May 26, 2025 at 6:17 am #17070880

marijusV

Background of the issue:
I am trying to manage a website with 3 different languages using WPML. Sometimes, the WooCommerce emails for clients are sent in the wrong language, but not always. I have seen a thread about this issue but no solution was provided: https://wpml.org/forums/topic/woocommerce-emails-are-_sometimes_-sent-in-an-incorrect-language/ and this one https://wpml.org/errata/wc-order-update-emails-may-contain-mixed-language-texts/. We have tried numerous filters to load the WPML language before the email is sent, but nothing has worked. The website is brand new.

Symptoms:
The WooCommerce emails are sometimes sent in the wrong language, and some text in the emails is in the wrong language.

Questions:
Is this issue related to the Errata bug mentioned in the link?
Why do the emails sometimes come in the wrong language?

May 26, 2025 at 7:23 am #17071169

marijusV

I have created a demo website for you.
Should I send you the link here? I don't want it to be exposed to everyone. Also, I need an email to create login details for you, so you can test out order emails yourself.

May 26, 2025 at 8:23 am #17071560

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

You can use my email address: shekhar.b@onthegosystems.com

I have enabled the private reply for you.

Thanks

May 28, 2025 at 6:30 am #17081312

marijusV

You should be getting an email with WP access to the website. Feel free create orders or if you need, create a payment method to finish up the order, like BACS etc.

May 28, 2025 at 10:56 am #17082972

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hi there,

Can you please let me know if you have a backup of your site? Sometimes, the site can get an error while I’m trying to fix it.

Also, if you could share the steps you took to reproduce the issue, that would be great. Maybe I could create orders from a different user?

Oh, and we recently released a new version of the WPML plugins. Could you please update your plugins to the latest version? If that fixes the issue, let me know.

We usually release our WPML updates gradually, so if your websites haven’t received the update yet, don’t worry. You should see it within a few days.

If you want to get the update right away, here’s what you can do:

1. Go to Plugins → Add New Plugin.
2. Click on the Commercial tab.
3. Then, click the “Check for updates” button.
https://wpml.org/wp-content/uploads/2020/04/wpml-force-plugin-update-1.png

Remember to make a backup before you update, just in case.

I’m looking forward to hearing from you!

Thanks

May 28, 2025 at 2:27 pm #17084038

marijusV

Hi, Shekhar,

You have full admin access to the development website so you can add as many test users and orders as you like. It would be probably good using your own account, since you can get emails.

To re-produce the wrong emails just create an order from the website itself. There are some products on the homepage. Add one of the products to the cart and complete the checkout. After that, you can switch the language by adding /lv or /et to the homepage website. To test various emails, just change the status of the order and send out an email to the customer (your test customer or yourself).

Do this proccess with all of the languages - Lithuanian, Latvian and Estonian. You'll notice that you have some english strings mixed up in emails or each language mixed with itself.

Don't worry about the website, it's a development stage, so I can rollback if anything breaks.

The updates DID NOT solve the problem. I'm still receiving some parts of the emails not being translated.

May 29, 2025 at 4:25 am #17085922

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I have installed a email log plugin and you can see emails being logged on the dev site here: hidden link

I created orders in separate language, changed it and it looks okay to me.

Can you please check it.

Thanks

May 29, 2025 at 6:05 am #17086033

marijusV

If you look at the email log, and look at the log ID 5 and log ID 8, you will see that the log ID 8 email has these strings in Lithuanian - hidden link

The log 5 has all of the translations in latvian, but for some reason the same email at log ID 8 has strings in lithuanian (in Latvian email).

So you have replicated the issue.

Does this makes sense to you?

May 29, 2025 at 10:36 am #17087621

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Yes, the issue is happening as I have set the administrator profile language to English, If I change it to site default hidden link it's working properly for me

Also, can you provide me ftp details of your staging site, I have enabled the private reply for you.

Thanks

May 30, 2025 at 2:37 am #17090301

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

The ftp details doesn't seems to be working, it says Login incorrect, can you please check and update the previous private reply.

Thanks

May 30, 2025 at 7:50 am #17090697

marijusV

You have removed the private messaging for me again. The FTP details are correct, I have checked the password. Just remove the "hidden link" that the reply box is putting in front. Only use my provided login url. For example hidden link. Should work as intended. If not, please provide me the access to the private reply and I will provide IP address instead of the FTP

May 30, 2025 at 8:05 am #17090732

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

It's still not working.

I have enabled the private reply for you.

May 30, 2025 at 8:53 am #17091164

marijusV

I have replied privately with details.

May 30, 2025 at 9:27 am #17091270

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Can you check the issue now, I made the changes as explained here and it seems to help me.
https://wpml.org/errata/wc-order-update-emails-may-contain-mixed-language-texts/

Look forward to your reply.

Thanks

May 30, 2025 at 10:24 am #17091616

marijusV

I will apply the fix to the LIVE site and let you know if this fixes the issue.