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.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by josephS-31 1 year, 9 months ago.

Assisted by: Prosenjit Barman.

Author Posts
April 30, 2023 at 6:31 am #13561979

josephS-31

Tell us what you are trying to do?
I have a problem with automatic translations.. Every language is showing 0 products in the cart in every languages. Even in my main language ESTONIAN.. everywhere it is in english and not changing when there is 0 products in the cart.
I need it to translated in the correct languages.
Is there any documentation that you are following?
No.
Is there a similar example that we can see?
hidden link
What is the link to your site?
hidden link

0 products in the cart error 1.png
May 2, 2023 at 1:03 pm #13570761

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for reaching out to us.

I checked the Mini Cart and understood the issue. While checking, I found that the "No products in the cart." text appears translated when I switch to Russian or Polish language. Please check this screenshot(hidden link) for a better understanding.

However, as the empty cart text is a static text, it could be translated easily from the WPML String Translation. In order to understand the procedure of translating such text from the String Translation, kindly check the documentation below.

- https://wpml.org/documentation/getting-started-guide/string-translation/

In case you're not seeing the string in the String translation, please follow the guidelines mentioned in the documentation below.

- https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

I hope it will help. But, let me know if you need any further assistance in this matter. I will be happy to help you.

Best Regards,
Prosenjit

May 2, 2023 at 1:37 pm #13571101

josephS-31

I cant find the right strings.
I found only these strings about Cart information. But these are not right ones i think.

Added the picture also.

cart strings wpml.png
May 3, 2023 at 4:27 am #13574545

josephS-31

I translated all the strings, but this one place as a static cart text is not working as translations, it will all the time be in English..... Can it be coded somehow trough some other place or can you check yourself this error?

This is the only place which is not translating in Estonian, Latvian, Finnish, Lithuanian and Polish. It is translated only in the Russian and English language somehow.

No products in the cart error.jpg
No products in the cart error1.png
May 3, 2023 at 12:36 pm #13578541

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,

Thanks for the updates. From the screenshot, I can see that you're translating the empty cart text that belongs to WooCommerce. The text you're trying to translate belongs to the theme you're using.

However, I checked and found that the text is now appearing translated. Kindly check this video(hidden link) for a better understanding.

If you're not seeing the same, then kindly clear the caches properly from your site and browser as well. I hope it will help.

Let me know the update. I will be happy to help you if you need further assistance in this case.

Best Regards,
Prosenjit