Skip Navigation

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

Problem:
The client is unable to translate the string 'Apply store credit discounts?' from the Advanced Coupons for WooCommerce Free plugin, despite following the standard WPML translation process and confirming the string's presence on the frontend.
Solution:
We recommend the following steps:
1. Go to WPML -> String Translation, search for the string, select it, and delete it using the button below the results table.
2. Enable the 'Auto register strings for translation' option at the bottom left of the String Translation page.
3. Visit the URL where the string appears, then return to WPML -> String Translation and search for the string again.
4. If the string does not appear, go to WPML -> Theme and Plugins Localization and scan the plugin again.
5. After updating the string translations, go to Elementor > Tools and click "Regenerate Files & Data" to ensure the translations load correctly.

If these steps do not resolve the issue, we recommend creating a staging site to run further tests without affecting the live site. You can use this plugin for creating staging sites: https://wordpress.org/plugins/wp-staging/.

If the problem persists or the solution seems outdated, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket for further assistance. You can do so at the WPML support forum: https://wpml.org/forums/forum/english-support/.

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 9 replies, has 2 voices.

Last updated by Carlos Rojas 4 months, 3 weeks ago.

Assisted by: Carlos Rojas.

Author Posts
July 3, 2024 at 10:04 am

benjaminK-50

Background of the issue:
I am trying to translate the strings that are coming from Advanced Coupons for WooCommerce Free Plugin. I followed these steps: Go to WPML > Theme and Plugins Localization, locate Advanced Coupons for WooCommerce Free and scan for strings to translate. Once done, click on the plugin slug in themes and localization that takes us to String Translation. Under String Translation, search for 'Apply store credit discounts?' and translate it into different languages. The site uses Elementor too.

hidden link

Symptoms:
The string 'Apply store credit discounts?' is not translated in the frontend. I have confirmed that the string is indeed the one that is showing up on the checkout page.

Questions:
Why is the string 'Apply store credit discounts?' not translating on the frontend?
Is there a specific step I am missing in the translation process for the Advanced Coupons for WooCommerce Free plugin?

July 3, 2024 at 10:31 am
July 3, 2024 at 10:33 am #15883259

Carlos Rojas
Supporter

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

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

Hi there,
This is the ticket where we will continue working.

I have set your next message private so you can securely share the access credentials to the staging site -if you could create it-.

Looking forward to your message.

July 4, 2024 at 7:47 am
July 4, 2024 at 8:46 am #15890376

Carlos Rojas
Supporter

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

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

Thank you for sharing the credentials requested.

Now, with no changes applied, I can see the string translated in both sites: hidden link

July 4, 2024 at 11:27 am #15891506

benjaminK-50

Hmm - I haven't changed anything on the site though.
And i'm worried that the issue might show up once again.
Can you theorize why this issue happened ?

For context:
- I also have LiteSpeed Cache plugin
- As well as cloudflare.

Anything i need to be aware about regarding those ?

July 5, 2024 at 5:47 am #15896079

benjaminK-50

Also another update - i cloned the site to a local install.
I have found that this isn't working on my local either.

Screenshot 2024-07-05 at 11.30.18 AM.png
July 5, 2024 at 8:01 am #15896842

Carlos Rojas
Supporter

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

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

Hi,

I can't say why it is working now, and it wasn't working before. My best guess is that the cause of this issue was an outdated cache or an update in the database (in the background) that solved the problem.

July 5, 2024 at 8:42 am #15897117

benjaminK-50

I need to make a host of translations on the site and it would really be a problem if this is happening sporadically. I won't be able to tell which strings are improperly translated and which are.

As i can see that the translations aren't showing up on my local ( no cache )
So please tell me what i should look for - so i can debug and fix this issue.

July 5, 2024 at 8:51 am #15897183

Carlos Rojas
Supporter

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

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

These are the recommended steps to isolate the cause of the issue:
- Create a full backup of the site
- Activate the debug mode by following the steps described in this guide: https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
- Update any outdated plugins and themes
- Flush any cache memory
- Deactivate all plugins, including the WPML ones
- Activate a default WordPress theme, like Twenty Twenty
- Activate the WPML plugins, Woocommerce, and Advanced Coupons for Woocommerce
- If the issue disappeared, start by activating the theme and then the rest of the plugins, one by one, until the issue appears again and you find the culprit
- Check if there is any error message in the debug.log file located within the wp-content folder related to the issue.

Note: migrating the site doesn't guarantee the cache is flushed automatically.

July 5, 2024 at 10:56 am #15898115

benjaminK-50

I think i found out the issue.
It was elementor.
Once i updated the string translations i needed to go to
Elementor > Tools and then click "Regenerate Files & Data"
Only then were the translations being properly loaded.

July 5, 2024 at 11:27 am #15898258

Carlos Rojas
Supporter

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

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

Hi there,

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