Skip Navigation

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

Problem:

The button 'add to cart' and the text 'choose an option' on the product page has been translated using wpml strings. In most languages this translations shows up. But for example on the Dutch product page still the default english text shows up.
So instead of 'In winkelmand' you will see 'add to cart'.

Solution:

The WordPress version was 6.5, but the WPML and Strings Translation versions were not updated to the latest versions. After updating our plugins, the problem was solved.

Relevant Documentation:

https://wpml.org/changelog/2024/04/wpml-4-6-10-and-wcml-5-3-6-ready-for-wordpress-6-5/?utm_source=at&utm_medium=emails&utm_campaign=wpml-plugins-wordpress-6-5-compatibility

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.

No supporters are available to work today on this forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Tagged: 

This topic contains 3 replies, has 3 voices.

Last updated by Itamar 7 months, 1 week ago.

Assisted by: Itamar.

Author Posts
April 4, 2024 at 11:56 am #15482789

lobkeB

Hi,

The button 'add to cart' and the text 'choose an option' on the product page has been translated using wpml strings. In most languages this translations shows up. But for example on the Dutch product page still the default english text shows up.
So instead of 'In winkelmand' you will see 'add to cart'.

Cache has been deleted. I don't know what else to do.

Thanks in advance!

Screenshot 2024-04-04 at 13.43.52.png
Screenshot 2024-04-04 at 13.52.29.png
April 4, 2024 at 10:56 pm #15485963

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there.

Before this ticket gets assigned to one of my colleagues, I will try to help.

The proper way to translate strings depends a lot on how they have been implemented inside the theme/plugin.

IMPORTANT: Sometimes, there are even duplicates of the same string and only one of them is the correct one that needs to be translated.

Also, sometimes, simply removing the string (checking the box and removing it) and then re-registering it again by scanning for it (one of the methods below) and re-translating it resolves the issue (sounds like you did this already so let's focus on finding the duplicates that are still NOT translated).

In our current situation, there might be a chance that the strings are not set to the correct default language (you can change the default language of a string if you check the box on the left and select "change language" to a language that you want).

Can you also find the next steps to see if you find any extra strings that maybe still need to be translated or maybe they are set to the wrong default language?

1. Method 1:

Go to WPML > String Translation and at the bottom of the page you will find a checkbox called "Look for strings while pages are rendered". You can enable (check) that and then go in the front end to a page where you have that string showing up and then go back to WPML > String Translation and search for that string and see if it now shows up.

2. Method 2: If you can't find them inside the WPML > String Translation, they might be added as admin text.

This should be the normal process to find and translate admin text strings:
https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

Please let us know how that goes.

Kind regards,
Mihai Apetrei

April 5, 2024 at 9:52 am #15487222

lobkeB

Hi Mihai,

I tried everything but nothing seems to work.

The websites are translated in 12 languages.
7 languages works perfectly fine.
5 languages show the same translation problems on the Woocommerce product page.

Such ass:
add to cart button
the 'size' taxonomy
the 'with or without batteries' taxonomy
choose an option
in stock
out of stock

It is strange that 7 languages works fine. If I change the text on the 'add to cart button' the text changes in 7 countries but not the other 5. So I now for sure which strings are the ones that should be translated.

Thanks in advance for your help!

April 7, 2024 at 1:37 pm #15491615

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I'll continue to help you with this problem.

I can see this problem on one of the Dutch products on your website. For example, I checked this product.

hidden link

I see the problem with the following strings: "choose an option" "in stock". But I don't see the problem with the 'with or without batteries' and 'size' taxonomies. Please see the attached screenshot.

1. Have you already fixed the problem with the taxonomies?

Dutch is the default language of your site. I wonder why it is happening on your site's default language.

2. Did you create the products in Dutch and translate them into all the other languages?

You are using the Language URL format "Domain per language".

3. Which are the other languages where this problem occurs?

We have newer versions of WPML Multilingual CMS (core plugins), Strings Translation, and Media Translation. Those versions are compatible with WordPress version 6.5, which you have already updated to.

If you have not updated our plugins to their latest versions, please do so and check again. After the update, please repeat the suggestions made by my colleague. If you don't see an update, press the 'Check for updates' button on this link: hidden link.

If all this doesn't help and you need further help, please share the access details to your site with me. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Regards,
Itamar.

2024-04-07_16-22-16.jpg
April 9, 2024 at 9:29 am #15497906

lobkeB

1. Have you already fixed the problem with the taxonomies?
ANSWER-> No, they were not fixed before the update.

2. Did you create the products in Dutch and translate them into all the other languages?
ANSWER-> yes

You are using the Language URL format "Domain per language".
ANSWER-> yes

3. Which are the other languages where this problem occurs?
ANSWER->
They only occur in french, german, polish and swedish.
The other languages worked perfectly fine.

I have updated the WPML plugin manually and now everything is solved!! So thanks a lot, It was just that easy:).