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:
). 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.
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.
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?
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.
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?
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...
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.
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
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.
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.
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