[Resolved] Woocommerce checkout blocks, not getting translated
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing issues with translating WooCommerce WC-blocks. Some strings like 'Order summary' are present in 'String translation' but are not getting translated, and others like 'Shipping to %s' are missing entirely from the string translation section, despite all plugins being up to date and rescanned. Solution: We registered the problematic blocks using custom XML configuration in WPML. Here is the code you should add in WPML -> Settings -> Custom XML Configuration tab:
Please ensure you are using the latest versions of WPML and WooCommerce. If the issue persists after applying this solution, it might be due to other factors or newer issues that have arisen since this solution was provided. We recommend visiting our known issues page, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If this does not resolve your issue, please open a new support ticket.
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:
I'm trying to translate Woocommerce WC-blocks, but some strings are not getting translated, or string are missing.
A lot of WC-Block title string are present in 'String translation' but are not getting translated. Example:
'Order summary'.
I'm also seeing some strings that are not in string translation, which are not translated, but I expect them to be. Examples:
'Shipping to %s', 'Including %s vat', 'Use same address for billing', 'Add a note your order'.
I have deactivated every plugin on the site except Woocommerce and the WPML suite, the problem persists.
I have changed the theme to the standard WordPress 2024 theme, the problem persists.
All language and translations have been updated, the problem persists.
All plugins have been rescanned and string translations saved, the problem persists.
Link to a page where the issue can be seen: hidden link
Symptoms:
Strings are not translated.
Questions:
Why are some Woocommerce WC-block strings not getting translated?
Why are some strings missing from the 'String translation' section?
What steps can I take to ensure all strings are translated correctly?
Being impatient, I've been seeking resolutions. I installed Loco Translate, to see how that behaved: I was able to sync the missing strings through their "sync" function and translate them in the original .mo file. Then I re-scanned Woocommerce for strings in WPML, where they are now showing, but the new strings are still not translatable through WPML - I can only translate them through Loco Translate, which just saves to the original .mo file (I disable Loco Translate when working in WPML).
Just to confirm, I'm checking the strings on the checkout page and the cart page in DK -see attached images-. Could you tell me if you are checking a different page?
Yes, they are the same strings. If I for instance change the translation of "Order summary" in string translation from "Ordre oversigt" to "Ordre oversigten" nothing happens in the frontend on the checkout page.
Any news? Now "Add coupon" and "Shipping to %s" is also not working on the cart page anymore (only for Danish).
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.