Skip to content Skip to sidebar

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

Problem:
You are trying to translate the string from the 'admin_texts_woocommerce_gzd_legal_checkboxes_settings' domain using the WooCommerce Germanized plugin. You expect to see the English translation of the legal checkboxes in the English checkout, but the German strings appear instead, despite being translated to English.
Solution:
We recommend following the steps outlined in the erratum for the Germanized translation of legal checkboxes. You can find the detailed instructions here: https://wpml.org/errata/germanized-translation-of-legal-checkboxes/.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, please do not hesitate to open a new support ticket. We also 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. For further assistance, you can contact us directly through our 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.

Tagged: 

This topic contains 8 replies, has 0 voices.

Last updated by juliusM 2 days, 2 hours ago.

Assisted by: Christopher Amirian.

Author Posts
July 16, 2025 at 11:19 am #17241625

juliusM

Background of the issue:
I am trying to translate the string of the 'admin_texts_woocommerce_gzd_legal_checkboxes_settings' domain from the WooCommerce Germanized plugin. The issue can be seen on this page: hidden link.

Symptoms:
I expected to see the English translation of the legal checkboxes in the English checkout, but instead, I got the German (main language) string even though the strings are already translated to English.

Questions:
Why are the translated strings not showing on the frontend?
How can I ensure the English translation appears instead of the German string?

July 16, 2025 at 12:40 pm #17241996

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Welcome to WPML Support

WooCommerce Germanized stores the checkbox labels in a serialized options array (woocommerce_gzd_legal_checkboxes_settings).
WPML translates that option on‑the‑fly — but only if:

The option has been saved at least once while WPML’s current language was EN, so WPML could “catch” the strings, and

The option is registered under:

_admin_texts_woocommerce_gzd_legal_checkboxes_settings

in WPML → String Translation and the EN texts are marked Translated.

If the option was saved only in German, or the strings were translated but WPML’s option filter fires too early (sometimes happens after caching or object‑cache), the front‑end gets the original German value.

See if following the steps below fixes the issue:

1. Register the option strings.
• Go to WPML → String Translation and click the link “Translate texts in admin screens” at the bottom.
• Tick woocommerce_gzd_legal_checkboxes_settings and press Apply.

2. Translate those strings.
• Back in WPML → String Translation, filter by the domain admin_texts_woocommerce_gzd_legal_checkboxes_settings.
• Enter the English versions for every checkbox label and save; their status should switch to Translation complete.

3. Clear WPML and WordPress caches.
• Open WPML → Support → Troubleshooting and run Clear the cache in WPML (also Remove ghost entries for good measure).
• Visit Settings → Permalinks and click Save Changes once to flush rewrite rules.

4. Resave the Germanized settings while your admin profile is set to English.
• In Users → Profile, set Language to English and update your profile.
• Go to WooCommerce → Settings → Germanized → Legal Checkboxes and press Save (no content change needed).
• This forces WordPress to load the option with the English context, letting WPML insert the translated strings and cache them.

5. Test the checkout in English.
• Open hidden link in a private window.
• The checkbox labels should now appear in English instead of German.

If the labels are still in German after these steps disable any object/Redis cache, repeat step 4, then re‑enable the cache.

Thanks.

July 17, 2025 at 9:39 am #17244744

juliusM

Hi,

The domain woocommerce_gzd_legal_checkboxes_settings is not in the "Translate texts in admin screens" so I register it using this snippet

add_action( 'init', function() {
$settings = get_option( 'woocommerce_gzd_legal_checkboxes_settings' );
if ( is_array( $settings ) ) {
foreach ( $settings as $key => $fields ) {
foreach ( $fields as $field_key => $field_value ) {
if ( is_string( $field_value ) ) {
do_action( 'wpml_register_single_string', 'woocommerce-gzd', "legal_checkboxes_settings_{$key}_{$field_key}", $field_value );
}
}
}
}
});

July 17, 2025 at 11:10 am #17245339

juliusM

Hello,

I followed the steps you provided, but the translation still does not appear on the frontend. I then deleted all the strings from woocommerce_gzd_legal_checkboxes_settings and re-added them using the snippet mentioned above. This time, I entered the text in English and translated it into German—but the translations are still not showing on the frontend.

Screenshot 2025-07-17 at 7.11.20 PM.png
July 17, 2025 at 2:00 pm #17246390

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Thank you, I will need to check with the compatibility team as this seems to be a compatibility issue.

I will get back to you as soon as I have an answer by them.

It may take time.

Thanks.

July 20, 2025 at 2:57 pm #17253149

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Our compatibility team tried a few points, but it did not work. We will need the help of the WC Germanized plugin developers.

I will inform you if I have an update.

Thanks.

July 21, 2025 at 8:54 am #17254251

juliusM

Thanks for the help. I appreciate it.

July 22, 2025 at 12:28 pm #17259211

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Thank you for your patience. Would you please follow the steps below mentioned din the erratum below and see if the problem is fixed?

https://wpml.org/errata/germanized-translation-of-legal-checkboxes/

Thanks.

July 25, 2025 at 4:49 am #17269873

juliusM

It works thank you for the support.