This thread is resolved. Here is a description of the problem and solution.
Problem: You are experiencing an issue where after updating WPML, a custom plugin that sets a new order status shows the English fallback name instead of the translated string on the orders admin page. Solution: We recommend modifying your plugin code to use the existing "woocommerce" text domain instead of re-registering the string under its own custom plugin text domain. Here is an example of how you can adjust your code:
Please note that custom code is outside the scope of our support. If this solution does not resolve your issue or if it becomes 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 further assistance is needed, 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.
I am facing an issue since I updated to the last version of wpml where I have a custom plugin that sets a new status and registered at wpml as usual and on string translation I can see the string that is already translated but when I go to the orders admin page I get the english (fallback) name of the order status as seen on screenshots.
Thank you for sharing the details. Please make sure to have a full website backup and:
1. Go to WPML > String Translation, select and delete the mentioned string;
2. Go to WPML > Theme and Plugin localization, select and scan the related plugin/theme that contains the string;
3. Add the translation to it again;
Thank you for sharing the results. Can you please share the snippet from the custom plugin, where this specific string is being registered? With this information I can better understand what might be happening.
Thank you for sharing. It seems that the code wasn't properly registering the string. Please make sure to have a full website backup and try with the code below:
sorry for the late response, yes after the code update I have tried to delete the status and registered again now it appears two times as you can see in the screenshot.
I would like to look at this directly on your site. For this I would need temporary access (WP-Admin and FTP) to your site, preferably to a test/staging site where the problem has been replicated if possible.
The required fields can be found below the comments section. The information you enter is private, i.e. only you and I can see it and have access to it.
I may need to replicate your website locally. To do this, I need to temporarily install a plugin called "Duplicator" or "All in One WP Migration" on your website. This will allow me to create a copy of your website and content. Once the issue is resolved, I will delete the local website. Let me know if this works for you.
IMPORTANT
Please make a backup copy of the site files and database before giving us access.
- If you do not see the wp-admin/FTP fields, this means your post and site login details are being made PUBLIC. DO NOT post your website details if you do not see the required wp-admin/FTP fields. If you do not, ask me to enable the private box. The private box looks like this:
unfortunately we don't have enough space in server disk in order to create a staging site to replicate the issue, knowing that I would request a backup before I send you the credentials to live site.
Can you enable the private box in order to give you the credentials?
I've tried downloading a copy of your website, but the process failed multiple times. To be able to verify the issue and test solutions, I need you to please create a staging (testing) copy of your website on the same server, so I can check for causes and solutions without harming the live website.
You can use a plugin to achieve that, or reach out to your hosting support, and they might be able to help you creating a staging website. Please send me the link to it here, when you are done. Thank you for the cooperation on this matter.
You can keep the same user you've already shared on staging, so I can access it directly.