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
October 22, 2024 at 11:43 am

haraldK-9

Background of the issue:
I am working on a site under development and trying to translate the checkout page using WPML.

Symptoms:
The checkout page is displayed in the wrong language for one of the languages.

Questions:
How can I ensure the checkout page is translated correctly?
What steps should I follow to fix the language issue on the checkout page?

October 22, 2024 at 12:15 pm
October 22, 2024 at 6:06 pm #16318994

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,

I checked, and it seems that WC lacks some configuration files for Austrian German. Please try this workaround:

- Visit this page hidden link
- Download the .mo file, following this step-by-step: https://woocommerce.com/document/woocommerce-localization/#downloading-translations-from-translate-wordpress-org-manually
- Rename it to "woocommerce-de_AT.mo" (or the correspondent default locale you're using for the Austrian German language)
- Now get access to your website files and go to the wp-content/languages/plugins/ folder
- Paste there the file you just downloaded and renamed
- Go to WPML -> Themes and Plugins localization
- Check the " WPML has detected changed or new MO files" warning, and scan all the files

It should be solved after this. Please give it a try and let us know how it goes. Thank you.

October 23, 2024 at 7:53 am #16320309

haraldK-9

Hi,
i deleted the old woocomemrce de_AT.po and mo files. uploaded the new one.
Scanned the files (wpml did detect that there was a change).

But the checkout page in language de_AT is still in english...
It is really urgent now.
Thanks again

de_AT still english.png
October 23, 2024 at 8:05 am #16320408

haraldK-9

one more.
when i try to edit the page in gutenberg: the page language is set to austrian german BUT the editor itself is in english.. dont know if that helps?
i need this fixed asap because i have to launch the site today...

thanks again

de_at editor.png
October 23, 2024 at 3:51 pm #16322663

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,

I apologize for not being able to provide a quick solution yet. I've forwarded your ticket to our developers, so we can find a solution or at least a workaround as soon as possible. I'll let you know.

Thank you for understanding.

October 24, 2024 at 9:54 am #16325405

haraldK-9

hi there,

are there any news?
thanks in advance

October 24, 2024 at 1:59 pm #16326761

Lucas Vidal de Andrade
Supporter

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

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

I'm still waiting for feedback from our devs. That might take a few days.

October 30, 2024 at 2:59 pm #16348015

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. We found a workaround. Please make a full website backup and follow these steps:

1. Go to Pages and open the Checkout page.
2.Slightly edit the field that require translation, for example, add a blank space at the end of it;
3. Do that for all fields that show untranslated in the Austrian Version;
4. Translate the page to Austrian German.
5. Remove the blank space from the original page and save.

Let me know if that works for you.

November 3, 2024 at 5:22 pm #16358260

haraldK-9

hi there,
this does not really work for all things fields. see attached screenshot.

how can i soilve this? is there any other solution?
it is really urgent now.

thank you in advance

wpml_still_wrong.png
November 4, 2024 at 2:37 pm #16361640

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,

I forwarded that to our devs and will get back to you as soon as possible.

November 8, 2024 at 1:29 pm #16382214

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,

I'm not able to access your website at the moment, I'm getting a 503 error.

Can you please check and let me know when it's available? There's an information I need.

November 10, 2024 at 4:44 pm #16385982

haraldK-9

Hi,
it should work again.
let me know when finished.

best regards

November 11, 2024 at 5:10 pm #16389788

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,

Thank you so much for your patience. After further analyzing, we found that in specific custom languages, WooCommerce does not allow the translation of certain elements when the checkout page is built using blocks.

As a workaround, you can substitute the blocks structure with the shortcode one. Simply access the original checkout page and substitute the blocks with the [woocommerce_checkout] shortcode. After that, please update the transaltions.

I tested that in a copy of your website and the solution worked.

November 12, 2024 at 5:25 am #16390841

haraldK-9

Hi,
That's not good. But I don't understand why this isn't working since Austrian German is also German?
Why does it work for Switzerland it is also a custom language (CH_de)

I need to use the new block look... Is there a other workaround to translate the blocks?

Thanks