Skip Navigation

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

Problem:
The client is experiencing issues with partially untranslated WooCommerce emails in Spanish, despite having translations available in the String Translation. The client updated WPML and modified the TranslateWpmlString.php file, but the issue persisted.
Solution:
1. We recommended updating the WPML plugins and add-ons to the latest version, specifically to version 4.7.2, to benefit from the latest bug fixes and improvements. Instructions for updating can be found at http://wpml.org/faq/install-wpml/.
2. We suggested applying a workaround for a known issue related to WooCommerce order update emails containing mixed language texts, which can be found at https://wpml.org/errata/wc-order-update-emails-may-contain-mixed-language-texts/.
3. After applying the workaround, it is crucial to double-check that all strings are correctly translated in the String Translation.
4. If the issue persists, we advised creating a staging site and performing a step-by-step isolation test by deactivating and reactivating plugins and themes to identify the culprit.
5. As a last resort, downgrading the WPML plugins by manually uploading the plugin folders or restoring a backup with a previous version was suggested.

If this solution does not resolve your issue or seems 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. If the problem persists, please open a new support ticket at WPML support forum.

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: 

This topic contains 7 replies, has 1 voice.

Last updated by Carlos Rojas 5 days, 2 hours ago.

Assisted by: Carlos Rojas.

Author Posts
March 18, 2025 at 9:10 pm #16832520

ziga pipan

Background of the issue:
I am trying to ensure that my SPANISH Woocommerce emails are fully translated using WPML on my site hidden link.

Symptoms:
Many parts of my SPANISH Woocommerce email are not translated
hidden link

But everything is translated ok in strings translation.
hidden link

Questions:

March 18, 2025 at 10:25 pm #16832772

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

While one of my teammates handles your ticket, I will provide you with initial debugging steps.

You might be facing a known issue, and please have a look here for a workaround: https://wpml.org/errata/wc-order-update-emails-may-contain-mixed-language-texts/

Please update your WPML plugin and add-ons to the latest version, 4.7.2, to benefit from the latest bug fixes and improvements.

You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/

If you do not see the updates, you might need to click the Check for updates button in the Plugins → Add New Plugin → Commercial tab.

Please remember to backup your database before you proceed.

March 18, 2025 at 11:54 pm #16832909

ziga pipan

I'm not sure if I need to update, use a workaround or both? For now I just updated.

March 19, 2025 at 10:15 am #16834366

ziga pipan

I updated and even changed that string in TranslateWpmlString.php, cleared cache, but email still arrived half translated.

hidden link

Is there any way to fix this with downgrading. Store is going online today and my customer is totalyy freaking out about this.

March 20, 2025 at 10:20 am #16839280

Carlos Rojas
Supporter

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

Timezone: Europe/Madrid (GMT+01:00)

Hello,
My name is Carlos and I will continue working on this ticket

After upgrading the WPML plugins and applying the workaround described in the erratum shared by my colleague: https://wpml.org/errata/wc-order-update-emails-may-contain-mixed-language-texts/ you must double-check the strings are correctly translated in String Translation

If the above is finished, then you will need to create a staging site with a copy of the live site and follow these steps to isolate the cause of the issue:
- Update any outdated plugins or themes
- Flush any cache memory that might exist
- Deactivate all plugins, including the WPML ones
- Activate a default WordPress theme, like Twenty Twenty
- Activate the WPML plugins, Wooocommerce and Woocommerce Multilingual
- If the issue disappeared, start by activating the theme and then the rest of the plugins, one by one, until the issue reappears and you find the culprit.

Regards,
Carlos

March 20, 2025 at 11:29 am #16839638

ziga pipan

I see this will take days/weeks to get sorted. The spanish site just went live, google ads are running and I can't have customer emails looking like that. Can you just tell me how to downgrade? It used to work ok.

March 20, 2025 at 11:59 am #16839836

Carlos Rojas
Supporter

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

Timezone: Europe/Madrid (GMT+01:00)

To downgrade the WPML plugins, you must manually upload the WPML plugin folders to the wp-content/plugins folder on the site installation.

You can also restore a backup that contains a previous WPML versison

March 21, 2025 at 8:52 pm #16846468

ziga pipan

managed to create a website clone, please enable a private window.

March 24, 2025 at 8:07 am #16849993

Carlos Rojas
Supporter

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

Timezone: Europe/Madrid (GMT+01:00)

Hi,

Your next message will be private.

March 24, 2025 at 9:47 am #16850687

Carlos Rojas
Supporter

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

Timezone: Europe/Madrid (GMT+01:00)

Hi there,

Please double-check the credentials. The URL to access the site throws a 404 error.

Edit your previous (private message) if necessary.

March 24, 2025 at 10:01 am #16850926

ziga pipan

some other guy from wpml support is debugging some other issue and turned off security plugin, so that changed from /secure32 to /wp-admin

March 24, 2025 at 10:14 am #16851022

Carlos Rojas
Supporter

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

Timezone: Europe/Madrid (GMT+01:00)

Thanks, this time I was able to access the site.

Before we continue, isn't this other ticket: https://wpml.org/forums/topic/wrong-language-emails/ a duplicate of this ticket?

March 24, 2025 at 10:20 am #16851031

ziga pipan

To be honest I don't know how it should be treated.

One ticket is regarding the HR version where email were not translated at all, and the other ticket is regarding ES version where there were mixed translations.

One was a ticked and the other was a chat automaticaly transfered to a ticket. Feel free to combine them if you wish.

March 24, 2025 at 10:23 am #16851082

Carlos Rojas
Supporter

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

Timezone: Europe/Madrid (GMT+01:00)

Thank you for your message.

The solution is the same: translating the strings of the emails in String Translation.

I already talked to my colleague in the other ticket, and I'm closing this one to avoid duplicates. Please continue in https://wpml.org/forums/topic/wrong-language-emails/

Best regards,
Carlos