[Resolved] WooCommerce checkout strings not using WPML translations
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues where some WooCommerce checkout strings, such as 'Населённый пункт' and 'Saadetis', are not using the translations set in WPML → String Translation in both Estonian and Russian languages, despite having disabled automatic updates and cleared caches. Solution: We recommend exporting the .pot file with the updated strings from a test site where the issue is already resolved. You can do this via WPML → String Translation → Import/Export → Export strings. Then, import this .pot file into your live site using the same WPML → String Translation → Import/Export path. This process is safe to perform on a production site and should not affect your existing content or database structure. Additionally, this fix should remain effective after future WPML or WooCommerce updates, although you may need to re-scan for new strings or re-export/re-import the .pot file if updates introduce changes.
Please note that this solution might be irrelevant if it's outdated or not applicable to your specific 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 the issue persists, 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.
Background of the issue:
Hi!
We have a multilingual WooCommerce website (Estonian as the default language, plus Russian and English).
The issue:
Some WooCommerce checkout strings, such as “Населённый пункт” and “Saadetis”,
do not use the translations set in WPML → String Translation.
The same problem appears in Estonian and Russian languages.
What we already tried:
– Disabled automatic translation updates in wp-config.php by adding:
define( 'AUTOMATIC_UPDATER_DISABLED', true );
define( 'WP_AUTO_UPDATE_TRANSLATIONS', false );
– Renamed all .mo files for WooCommerce
– Cleared WPML and WooCommerce caches
– Rescanned the WooCommerce plugin for strings (found 0 new strings)
WPML correctly handles most translations, but several checkout and cart labels remain untranslated.
Could you please check why these strings are not being taken from WPML,
and advise how to make WPML translations apply to all WooCommerce checkout fields?
Thank you in advance!
Symptoms:
Some WooCommerce checkout strings, such as 'Населённый пункт' and 'Saadetis', do not use the translations set in WPML → String Translation. This issue appears in both Estonian and Russian languages.
Questions:
Why are some WooCommerce checkout strings not being taken from WPML?
How can I make WPML translations apply to all WooCommerce checkout fields?
Could you please check why these strings are not being taken from WPML,
and advise how to make WPML translations apply to all WooCommerce checkout fields?
I have tried to install and Debug Bar plugin to check further what is wrong with files, but it cased and error.
Can you please disable/delete it manually from plugins folder? Please also let me know if it is okay to take a copy of the website so I can safely check further in local environment.
I received a fatal error notice from WordPress caused by the Debug Bar Localization plugin.
It seems incompatible with PHP 8.3 on Pressable.
You can remove or use a newer tool if needed.
thanks, I am checking and I see you are not using regular WP installation, as WP is installation is in other folder while your root folder contains wp-content. This could be the reasons why translation are not loaded also, since WPML can not load them as they are not in same folder. Image attached.
Can you please explain why do you have structure like this and if any specific reasons why regular WP structure is not used?
that is weird, I will check with our systems what might be wrong and why you do not see my message or did not get it. Thanks for sharing screenshot.
I am also sharing my original message again here, so you can get back to me:
Hello,
thanks, I am checking and I see you are not using regular WP installation, as WP is installation is in other folder while your root folder contains wp-content. This could be the reasons why translation are not loaded also, since WPML can not load them as they are not in same folder. Image attached.
Can you please explain why do you have structure like this and if any specific reasons why regular WP structure is not used?
thanks for getting back and sharing additional information.
To be honest, I am not sure if that is what caused the translation to not show as when I tried to take a copy and check in local, I could not deploy it as package / structure appears broken for regular server, so I could not check it further.
I would need to consult further with our 2nd tier. I will get back to you when I have some news.