Skip Navigation

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.

Our next available supporter will start replying to tickets in about 4.13 hours from now. Thank you for your understanding.

We have a longer than usual waiting time. Please make sure to check out the Known Issues page and Minimum Requirements before reporting any issue.
Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

This topic contains 3 replies, has 2 voices.

Last updated by Bruno Kos 1 week, 2 days ago.

Assisted by: Bruno Kos.

Author Posts
November 6, 2024 at 9:49 am #16370712

oliverR-34

Background of the issue:
I used automatic translation to translate absolutely everything on my site to 4 languages: Finnish, Estonian, Latvian, and Lithuanian. The main language is English. Cart and checkout are using the Woocommerce block editor. The site I need help with is hidden link.

Symptoms:
The Latvian cart and checkout pages aren't being translated properly. The Estonian checkout page is only partially translated. Finnish and Lithuanian translations work fine.

Questions:
Why aren't the Latvian cart and checkout pages being translated properly?
Why is the Estonian checkout page only partially translated?

November 6, 2024 at 12:47 pm #16371664

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

It seems like that all these translations of coming from WooCommerce mo files.

Please check this:
https://wpml.org/forums/topic/checkout-page-in-latvian-is-not-translated/#post-15375564

November 6, 2024 at 1:26 pm #16371904

oliverR-34

I don't really understand this response. I checked the article that you gave and the only thing I could conclude from it was that I would have to use a shortcode instead of the blocks, which I can't do since the design etc is already made and approved by client.

Is there a solution to fixing the Latvian and Estonian cart and checkout pages? I can give you SSH/FTP file system access also if needed.

Just the strange part is that two of the languages checkout and cart pages are translated nicely but then the other two are messed up, even though they are made the exact same way.

November 7, 2024 at 6:14 am #16375267

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Our 2nd tier suggested few approaches, I understand that you can't use the first one though.

### Option 1: Use Shortcodes

1. **Edit the Cart, Checkout, and My Account Pages**
- Remove the existing blocks and replace them with shortcodes as detailed here: [WooCommerce Shortcodes Documentation](hidden link).

2. **Scan and Translate Strings**
- Go to **String Translation** and click on **"Can't find the strings you're looking to translate?"**
- Select **WooCommerce** and scan for strings.
- The strings should now be available in String Translation for translation into Latvian.

### Option 2: Provide a Valid WooCommerce Translation File

- Upload a valid WooCommerce translation file for the required language.
- To verify, disable WPML and set WordPress to the desired language. This will confirm if the translation works correctly.

For the above:

1. Download the appropriate WooCommerce `.mo` and `.po` translation files from the [WooCommerce Translations Repository](hidden link) and upload them to `wp-content/languages/plugins/`.
2. Disable WPML, change the **Site Language** under **Settings > General**, and check if translations apply correctly.

You can also refer to this article and try this:
https://wpml.org/errata/woocommerce-checkout-block-fails-to-translate-some-values/