This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing issues with untranslated strings in the cart and checkout sections of their WooCommerce site after updates, despite using WPML's string translation features. Solution: We replicated the client's site in a local environment to investigate the issue. It was found that the untranslated strings are part of the WooCommerce blocks, dynamically served and not standard translatable strings in the database. After further investigation, it was determined that these strings are added through JavaScript, which WPML does not natively support for scanning and translating. We recommend using the "Loco Translate" plugin as a workaround to handle these translations. This plugin can be used alongside WPML to translate strings that are managed through JavaScript within blocks.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, 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 our 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.
Background of the issue:
Every time a do an update I find few strings in cart and checkout that are not translated.
No problem, but I can't find where to translate them?
Here hidden link
This is the cart link hidden link
Is there any special procedure I need to be following?
I'm using WPML and I try always scan xstore, elementor and Woocommerce for new strings. I also use the option "Track where strings appear on the site", "Auto register strings for translation" and try "Translate texts in admin screens".
But no luck hidden link
What else do I need to do?
Symptoms:
Every time I do an update, I find a few strings in the cart and checkout that are not translated, and I can't find where to translate them.
Questions:
Is there any special procedure I need to be following?
What else do I need to do?
Thank you for your incredible patience throughout the debugging process.
To help troubleshoot the issue further, I would like to replicate your website on a local environment.
Before proceeding, I will need your written approval to duplicate your site using a plugin called "Duplicator" (or a similar one) and debug the issue on a testing environment. Could you please confirm if this is ok with you?
Please create a full backup of your website before responding. Once the issue is resolved, the duplicate site will be deleted.
I’m going to escalate this to our development team right away to explore some custom code solutions that will help us translate those specific strings.
I’ll keep you updated as soon as I have more information. Thank you again for your amazing understanding and cooperation!
Thank you so much for your fantastic patience while we looked into this. I’m excited to share the findings from our dev team after their thorough investigation.
It appears that the strings you're seeing are being added through JavaScript, which is a bit different from the usual methods used by WordPress and its plugins/themes. While we’re not entirely sure why this approach was chosen, we want to help you find a solution.
Currently, our system doesn’t support scanning and translating strings in blocks that exist only in .js files. However, a great workaround is to use a plugin like "Loco Translate" to handle these translations effectively.
If you have any questions or need further assistance on this matter, feel free to reach out! Check out the attached screenshot so that you can see how you can find the strings and translate them with the help of the plugin I mentioned.
Yes, you can install it and use it simultaneously with WPML.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.