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.