Skip Navigation

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

Problem:
The client is experiencing issues with translating the checkout page using WPML, specifically when the page is built using WooCommerce blocks. The checkout page displays in the wrong language for Austrian German (de_AT), as WooCommerce currently does not support translation for certain elements in custom languages when using blocks.

Solution:
1. Ensure a full backup of the website is made.
2. If using blocks on the checkout page, replace them with the WooCommerce shortcode:

[woocommerce_checkout]

.
3. Update the translations after changing to the shortcode.
4. This method allows the use of WPML String Translation to handle the translations effectively.

Please note that this solution might be outdated or not applicable to your specific case. If the issue persists, we recommend opening a new support ticket. Additionally, 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. For further assistance, please visit our support forum 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.

Tagged: 

This topic contains 11 replies, has 0 voices.

Last updated by Andreas W. 1 week, 5 days ago.

Assisted by: Andreas W..

Author Posts
November 12, 2024 at 5:36 pm #16394096

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Currently, this is a limitation from WCML, to translate the specific content coming from the checkout Blocks. That happens because the translation files from WooCommerce don't support de_AT at the moment, that's why they get overwritten with English. We tested the language without WPML and the issue was the same, that means that WPML cannot translate it.

I apologize for the inconvenience.

November 15, 2024 at 11:34 am #16407874

haraldK-9

Hi,
thanks for your answer. Thi is a problem.
Is it possible solution to copy the woocommerce-de_DE.mo to woocommerce-de_AT.mo?

tanks again

November 18, 2024 at 3:53 pm #16415674

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

The .mo files are binary files that are not human-readable. They always need to be an identical copy of the original po-file or pot-file - I can not confirm if your approach would work but I neither can recommend doing this.

The translation would usually come from an Austrian pot-file from WooCommerce.

WooCommmerce is translated currently only to 3% into Austrain German:
hidden link

The issue:

We can currently not use WPML String Translation to overwrite the default translation for WooCommerce Blocks on Checkout or Cart pages.

Workaround:

Use the WooCommerce Shortcode to display Cart and Checkout. This way you can translate the strings with WPML String Translation.

Errata:
https://wpml.org/errata/woocommerce-multilingual-cart-page-strings-not-translated-when-using-blocks/

Best regards
Andreas