[Resolved] Advanced Coupons for WooCommerce Free String Translations
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.
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?
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 ?
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.
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.
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.
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.