Background of the issue:
The site has 3 languages: EST (main language), RUS, and ENG (second languages). String translations do not work in the WooCommerce checkout form (only billing and shipping fields with customer information). Translations are only displayed when the function 'Auto register strings for translation' is enabled. Once I disable it, translation goes back to ENG (default).
Symptoms:
String translations in the WooCommerce checkout form revert to English when 'Auto register strings for translation' is disabled.
Questions:
Why do string translations in the WooCommerce checkout form only work when 'Auto register strings for translation' is enabled?
How can I ensure that translations remain active even when 'Auto register strings for translation' is disabled?
Are there any additional steps required after updating WPML plugins to fix this issue?
Languages: English (English )Portuguese (Brazil) (Português )
Timezone: America/Sao_Paulo (GMT-03:00)
Hello, welcome to the WPML support Forum!
I can see that there are a few updates available for your WPML plugins. I remember a similar issue being fixed in the newer versions. Just to be safe, please make a backup of the site files and database before doing the follow procedure:
- Inside your wp-admin please go to Plugins -> Add New.
- Then click on the "Commercial" tab and click on the "Check for updates" button in the WPML section
- After that please select every red plugin available in the list and then click on "Download" at the bottom of the grid.
- Make sure you have backed up the website in the step before
- Make sure you have Woocommerce Multilingual enabled on your website
- Got to WPML > Languages, Click on "Add/Remove Languages" then click on "Save"
- Go to WPML > Theme and plugin localization
- Check the "Automatically load the theme's .mo file using 'load_textdomain'" box
- Add the textdomain of the strings (probably "woocommerce") to "Enter textdomain" field then save
- Scroll down and scan the theme/plugin
- Go to WPML > String Translator and check if the string is already translated
- Go to WPML > Support > Troubleshooting
- Click on "Show custom MO Files Pre-generation dialog box"
- Refresh the page (It should display the MO files dialog box)
- Regenerate the MO Files
Please let us know if it worked for you.
The topic ‘[Closed] Translation bug in woo checkout’ is closed to new replies.
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.