This thread is resolved. Here is a description of the problem and solution.
Problem:
The images added with the "Coming Soon Badge" plugin can't be translated with WPML Media Translation.
Solution:
We recommend switching to the text badge instead of the image badge then trying the following steps after ensuring you have a full backup of your site:
1. Navigate to WooCommerce > Coming Soon config.
2. Change to the text badge for the loop and product page.
3. Translate the text in WPML > String Translation.
4. Edit the file /wp-content/plugins/coming-soon-for-woocommerce/coming-soon-for-woocommerce.php.
5. Replace the code at line 945 from:
$Coming_Soon_WC = new Coming_Soon_WC();
to:
add_action('plugins_loaded', function () { $Coming_Soon_WC = new Coming_Soon_WC(); }, 999);
This should resolve the issue for the text badge. You can also suggest to the plugin authors to join our Go Global program to ensure better compatibility.
Please note that this solution might be outdated or not applicable to your case. We highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket with us.
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.
Our next available supporter will start replying to tickets in about 3.45 hours from now. Thank you for your understanding.
This topic is split from https://wpml.org/forums/topic/string-translation-49/
This topic contains 3 replies, has 2 voices.
Last updated by 9 months, 3 weeks ago.
Assisted by: Mohamed Sayed.