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.

This topic contains 0 replies, has 0 voices.

Last updated by Mihai Apetrei 1 week ago.

Assisted by: Mihai Apetrei.

Author Posts
January 21, 2025 at 3:37 pm

ziga pipan

Background of the issue:
Every time a do an update I find few strings in cart and checkout that are not translated.
No problem, but I can't find where to translate them?

Here
hidden link
This is the cart link
hidden link

Is there any special procedure I need to be following?

I'm using WPML and I try always scan xstore, elementor and Woocommerce for new strings. I also use the option "Track where strings appear on the site", "Auto register strings for translation" and try "Translate texts in admin screens".
But no luck
hidden link

What else do I need to do?

Symptoms:
Every time I do an update, I find a few strings in the cart and checkout that are not translated, and I can't find where to translate them.

Questions:
Is there any special procedure I need to be following?
What else do I need to do?

January 21, 2025 at 4:19 pm
January 21, 2025 at 4:26 pm #16619868

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there.

This is the ticket where we will handle this issue.

I will get back to you as soon as I have updates.

January 23, 2025 at 10:17 pm #16629967

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there.

Thank you for your incredible patience throughout the debugging process.

To help troubleshoot the issue further, I would like to replicate your website on a local environment.

Before proceeding, I will need your written approval to duplicate your site using a plugin called "Duplicator" (or a similar one) and debug the issue on a testing environment. Could you please confirm if this is ok with you?

Please create a full backup of your website before responding. Once the issue is resolved, the duplicate site will be deleted.

I will be waiting for your confirmation.

January 27, 2025 at 12:51 pm #16637772

ziga pipan

sure, no problem

January 27, 2025 at 9:47 pm #16639360

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Thank you for the confirmation.

I will move forward with the debugging and get back to you as soon as I have an update.

In the meantime, I will keep this ticket assigned to myself.

January 29, 2025 at 10:35 pm
February 5, 2025 at 11:51 am #16670813

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there.

Thank you so much for your incredible patience as we’ve been investigating the string translation issue with WooCommerce blocks.

After thorough testing, I’ve discovered that these strings require a custom approach to become fully translatable. From what I’ve gathered through hidden link" rel="noopener" target="_blank">existing tickets from other customers, this issue began after moving the stand-alone plugin into WooCommerce.

I also found several cases unrelated to Cart Blocks, specifically concerning Checkout Blocks that appear on the checkout page. You can take a look at the related errata in this case here: https://wpml.org/errata/woocommerce-checkout-block-fails-to-translate-some-values/.

I’m going to escalate this to our development team right away to explore some custom code solutions that will help us translate those specific strings.

I’ll keep you updated as soon as I have more information. Thank you again for your amazing understanding and cooperation!

February 11, 2025 at 2:17 pm #16692107

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there!

Thank you so much for your fantastic patience while we looked into this. I’m excited to share the findings from our dev team after their thorough investigation.

It appears that the strings you're seeing are being added through JavaScript, which is a bit different from the usual methods used by WordPress and its plugins/themes. While we’re not entirely sure why this approach was chosen, we want to help you find a solution.

Currently, our system doesn’t support scanning and translating strings in blocks that exist only in .js files. However, a great workaround is to use a plugin like "Loco Translate" to handle these translations effectively.

If you have any questions or need further assistance on this matter, feel free to reach out! Check out the attached screenshot so that you can see how you can find the strings and translate them with the help of the plugin I mentioned.

Please let me know how things go.

image (1).png
February 11, 2025 at 2:46 pm #16692388

ziga pipan

So I should install loco translate on top of wpml?

February 11, 2025 at 2:48 pm #16692394

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there.

Yes, you can install it and use it simultaneously with WPML.