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 thread is resolved. Here is a description of the problem and solution.

Problem: I'm using the WooCommerce Product Add-Ons plugin. I had the custom product options translated correctly, but after some updates, the translations stopped working.

Solution: I fixed this by: - going to string translations, deleted all the "translated" strings I had troubles with - changed the string in Product Addons from Czech to English - now the new strings appeared correctly in String translation and are showing correctly on the website

Relevant Documentation:

This topic contains 14 replies, has 2 voices.

Last updated by Carlos Rojas 1 month, 3 weeks ago.

Assigned support staff: Carlos Rojas.

Author Posts
August 28, 2019 at 11:53 am #4474017

Václav

Hello,
I'm using the WooCommerce Product Add-Ons plugin. I had the custom product options translated correctly, but after some updates, the translations stopped working.

So, I'm trying to do the translations again. I changed an option label in the Global Product Addons settings, have the "Autoregister strings" enabled for all textdomains, but the new string is not appearing on the String translations page.

Is there a way to force rescan of admin strings (in my case in the 'wc_product_addons_strings' textdomain)?

Thanks
Václav

August 28, 2019 at 12:10 pm #4474129

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hello Václav,
Thank you for contacting WPML support.

Have you tried to scan the plugin in WPML -> Theme and plugins localization?

Kind regards,
Carlos

August 28, 2019 at 12:31 pm #4474251

Václav

Hi Carlos, yup, I tried that, no luck.

V.

August 28, 2019 at 12:50 pm #4474317

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi,
Thank you for your message.

1.- I would like to ask you to describe step by step how to reproduce the issue. You can attach some screenshots in your next message so I can have a better understanding.

2.- I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Regards,
Carlos

August 29, 2019 at 12:23 pm #4480819

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi Václav,
Thank you very much for the information provided.

I can see the strings here: hidden link

Regards,
Carlos

August 29, 2019 at 12:32 pm #4480867

Václav

Hello Carlos,
yup, but the translation does not work there. When you go to the product in Czech language: hidden link and click on Book now and select the no. of persons, you'll see the English string.

Any fix for this?

Thanks
Václav

August 29, 2019 at 12:54 pm #4481075

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi Václav,

Yes, I see the issue now. I searched through our Multilingual-Ready Plugins list and I can see there is a plugin with the same name, however I'm not sure it's the same plugin.

Could you take a look at this plugins: https://wpml.org/plugin/woocommerce-product-addons/ and if this is the same plugin then please visit this link: https://wpml.org/documentation/woocommerce-extensions-compatibility/translating-woocommerce-product-add-ons-woocommerce-multilingual/

If it isn't the same plugin then just let me know and we will take another approach.

Regards,
Carlos

August 29, 2019 at 12:56 pm #4481105

Václav

Hello,
yup, it's the same plugin. It used to work, and some strings actually still do work, so I think this is maybe some issue with some DB transients or something like that.

Regards
V.

August 29, 2019 at 12:58 pm #4481123

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Great!

In this case I would like to ask you to follow this steps to isolate the cause of the issue:
- Back up your site first before making any change, this is for security reasons.
- Update all outdated plugins and themes.
- Flush any cache memory that might exists.
- Deactivate all the plugins that are not related to WPML and the plugin Add-on (including Woocommerce).
- Switch for a moment to a WordPress default theme like Twenty Seventeen.
- If the issue is gone, activate one by one to see with which one there is an interaction issue.

Could you tell me the result of this steps?

Regards,
Carlos

August 29, 2019 at 1:00 pm #4481139

Václav

Hello,
sorry, but this is not possible, as this is huge multisite installation with bunch of plugins activated network-wide. Other than that, all the plugins are updated, and I'm sure this is some WPML issue - I actually was able to get one string magically appear in the String translations, but that was only one string, did not have any luck with the other strings.

V.

August 29, 2019 at 1:54 pm #4481527

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi,

Please go to WPML -> Support -> Troubleshooting link -> Apply the troubleshooting steps highlighted in the attached image.

Do you see the strings in String Translation?

Regards,
Carlos

August 29, 2019 at 2:01 pm #4481601

Václav

Hello,
tried this, still no luck..:/

V.

August 29, 2019 at 2:12 pm #4481695

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi Václav,
Thank you very much for your message.

I have created a test site with a fresh new WordPress install and WPML plugins installed and setup. Please install and setup the necessary plugins to reproduce the issue in this test site and let me know if the issue persists.

You can access the test site using the following link: hidden link

Regards,
Carlos

September 1, 2019 at 7:49 pm #4493049

Václav

Hello, I fixed this by:
- going to string translations, deleted all the "translated" strings I had troubles with
- changed the string in Product Addons from Czech to English
- now the new strings appeared correctly in String translation and are showing correctly on the website

Thanks
Regards
Václav

September 2, 2019 at 9:44 am #4495885

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi Václav,

I'm glad to hear that the issue is solved 🙂

Please don't hesitate to contact us if you need our help in the future with WPML. We will be more than happy to help.
Best regards,
Carlos