Skip Navigation

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

Problem:
The client reported that the order status in their WooCommerce order list was not being translated correctly, with only the first line appearing in Portuguese.

Solution:
We recommended the client to first deactivate all plugins except for WPML, WooCommerce Multilingual & Multicurrency, and WooCommerce to troubleshoot the issue. We also advised ensuring a database backup before making any changes.

Upon further investigation, we identified an issue with the Order Delivery Date Pro for WooCommerce plugin. We provided a workaround:

1. Navigate to the

wp-content/plugins/order-delivery-date/includes/orddd-common.php

file.
2. Open the file and locate line 506 (

require_once ABSPATH . 'wp-admin/includes/file.php';

).
3. Directly after line 506, insert the following code:

load_default_textdomain( 'en_GB' );

4. Locate line 562 (

return $delivery_date_formatted;

) and before it, add:

load_default_textdomain($initial_locale);

5. Save the changes.

These changes were applied to the client's staging website, and we will notify the plugin author about the necessary modifications.

Please note that the solution provided might be outdated or not applicable to your case. If the issue persists, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please do not hesitate to open a new support ticket in the 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.

This topic contains 14 replies, has 2 voices.

Last updated by Andrey 8 months, 1 week ago.

Assisted by: Andrey.

Author Posts
April 5, 2024 at 4:23 pm #15489044

ricardoA-22

Hi!
I've noticed that on my order list, the status is no longer translated, only the first line appears in Portuguese, see here: hidden link

What could be the cause? How can this be resolved?
I've just updated my staging, I'll post access data soon.

Thank you

April 6, 2024 at 8:30 am #15490312

Andrey
Supporter

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

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

Thank you for contacting WPML support.

To troubleshoot the issue, please try deactivating all plugins except WPML, WooCommerce Multilingual & Multicurrency, and WooCommerce. Also, did this issue occur before you updated the WPML plugins?

It's essential to take a database backup before making any changes. So, please ensure you have a database backup before proceeding with any changes.

April 8, 2024 at 7:13 am #15492669

ricardoA-22

Hi Andrey,

Seems to be related with my plugin Order Delivery Date Pro. I'll check with them or maybe try to update the strings related to the plugin and see if it fixes something...

Or is there any additional procedure I should do within WPML?

Thank you

April 8, 2024 at 7:19 am #15492692

Andrey
Supporter

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

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

To translate the order status, you can try scanning it for strings in WPML → Theme and Plugins Localization. Once you have selected the plugin and scanned it, navigate to WPML → String Translation and find the relevant string for translation.

If this method does not work, you may want to contact the plugin's author for assistance. I hope this helps! Here's the URL for WPML → Theme and Plugins Localization: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-do-n' t-appear-on-the-string-translation-page/# scan-the-theme-or-plugin.

April 8, 2024 at 7:39 am #15492816

ricardoA-22

Hi Andrey,

The issue was not solved by syncing strings for Order Delivery Date Pro, but one thing I noticed on my search on strings translation was that the strings for order status were duplicated. One has context, other doesn't. Please check these examples:

Processing: hidden link
Refunded: hidden link
Completed: hidden link

Maybe this is a conflict? Should I delete one of the strings and see if it fixes the issue?
Each one should I keep? With context or without context?

Please let me know what you think.

Thank you

April 8, 2024 at 7:44 am #15492827

Andrey
Supporter

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

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

I doubt there's a conflict, but you can delete these strings in WPML → String Traslation and scan them again. Translate those that appear.

Before proceeding with any changes, please backup your database first.

April 8, 2024 at 8:15 am #15492954

ricardoA-22

Hi Andrey,

A new update:

1. tried to remove the string without context but the order status kept in english. Then tried to remove the string with context and synced strings again to grab it back and still not working.

2. then i went back to my staging and noticed that, when activating order delivery date pro, the first strings were in portuguese but in the middle of the page i was still getting a group of orders in english: hidden link

So, maybe it's not only about order delivery date pro...

Please help.

Thank you

April 8, 2024 at 9:18 am #15493250

ricardoA-22

This is happening in other parts of the website Andrey.

Made a test order and noticed these strings in english when everything on the page is in portuguese: hidden link

On string translation panel, all strings related to "billing address" and "shipping address" are translated.

Please help

April 8, 2024 at 7:47 pm #15495963

Andrey
Supporter

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

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

Thank you for providing your feedback. I tested a new installation, but I could not reproduce the issue you reported. It would be helpful if you could replicate the problem on our staging site. Would you mind trying? Please check your private messages for the link to access it.

April 9, 2024 at 7:07 am #15496974

ricardoA-22

Hi Andrey,

I'm sorry but I have no time to reproduce error on your staging, that's why I've created a staging with my own environment to debug the issue. Moving my website to a new sandbox would be a lost of time for me. Certainly you understand. Please use and abuse of my staging if you wish, in order to find the cause. Thank you

April 9, 2024 at 7:10 am #15497005

Andrey
Supporter

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

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

I need to request temporary access (wp-admin and FTP) to your site – preferably to a test site where the problem has been replicated if possible – in order to be of better help. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

April 9, 2024 at 7:23 pm #15501215

Andrey
Supporter

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

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

Could you please double-check the access credentials? The login or password provided seems to be incorrect. The following reply is private.

April 10, 2024 at 8:05 pm #15506386

Andrey
Supporter

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

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

Thank you for the update. I noticed no issue when the Order Delivery Date Pro for the WooCommerce plugin was deactivated. However, I couldn't replicate the issue on the fresh installation. I will check this further and keep you posted.

April 11, 2024 at 7:13 am #15507264

ricardoA-22

Got an email notification saying you've replied "Thank you for the update. I noticed no issue when the Order Delivery Date Pro for the WooCommerce plugin was deactivated. However, I couldn't replicate the issue on the fresh installation. I will check this further and keep you posted." but that answer doesn't show up here.

Let me know if you find out something else.
Thank you

April 15, 2024 at 12:52 pm #15520038

Andrey
Supporter

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

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

Thank you for being patient.

As I mentioned, there is an issue with the Order Delivery Date Pro for the WooCommerce plugin. We were able to find a workaround:

1. Go to to the wp-content/plugins/order-delivery-date/includes/orddd-common.php file

2. Open it

3. Right after the line 506 (require_once ABSPATH . 'wp-admin/includes/file.php';), add the following code:

				load_default_textdomain( 'en_GB' );

4. Find the line 562 (return $delivery_date_formatted;) and before it, add:

load_default_textdomain($initial_locale);

5. Save it.

I have applied those changes to your staging website. We will inform the plugin's author about the changes that need to be done.