Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The Gutenberg checkout block integrated with WooCommerce is not getting translated on the frontend.
Solution:
If you're experiencing this issue, we recommend enabling the 'Automatically load the theme's .mo file using 'load_textdomain'' option in WPML-> Theme and Plugins Localization. This adjustment resolved the problem for the client.

Please note that this solution might be 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 for further assistance.

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.

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Osama Mersal 6 months, 3 weeks ago.

Assisted by: Osama Mersal.

Author Posts
June 12, 2024 at 6:42 am #15729528

morteF

Background of the issue:
Gutenberg checkout block has been integrated to Woocommerce, but are not getting translated in the frontend.

If I activate "Auto register strings for translation" under "String translation", then everyhting works, and the fields are translated.

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.

Symptoms:
Checkout fields are not translated

Questions:
Why are checkout fields only translated when i activate "auto register strings for translation" in the String Translation menu?

June 12, 2024 at 8:12 am #15729811

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

June 12, 2024 at 1:12 pm #15731825

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. Please check if the checkout fields are translated correctly. (hidden link)

Best regards,
OSama

June 12, 2024 at 3:33 pm #15732519

morteF

Hi Osama,

Everything looks good now! Thank you!

What was the solution?

June 12, 2024 at 6:54 pm #15733306

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

It's great to hear that the issue is fixed. 🙂

I enabled the "Automatically load the theme's .mo file using 'load_textdomain'" option in WPML-> Theme and Plugins Localization, which fixed the issue.

Best regards,
Osama

June 13, 2024 at 6:44 am #15734240

morteF

Thank you Osama, I'll be sure to try that if I face similar problems again.