Problem: The client needed help translating the 'Events' title and the 'Show' string on their Arabic shop page, which were still displaying in English despite attempts to translate them using WPML. Solution: We identified that the WooCommerce Multilingual (WCML) addon was disabled, which is essential for WPML to function correctly with WooCommerce. After enabling WCML, the translation issues were resolved. Additionally, we adjusted the slug of the Arabic page for easier testing and located the 'Show' string in the String Translation section of WPML, where we successfully translated it.
Please note that this solution might be outdated or not applicable to your specific 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.
Problem: The client needed to translate the term 'RELATED SESSIONS' which was manually changed from 'related products' in a PHP file on their server, and was not appearing in WPML's string translation. Solution: We advised the client to ensure that the string 'Your Custom Title' is wrapped with a WordPress translation function to make it translatable by WPML. Here's a step-by-step guide: 1. Modify the PHP code in functions.php to include a translation function:
2. Replace 'your-text-domain' with the theme’s text domain. 3. Navigate to WPML → Theme and plugins localization and scan the theme so WPML can detect the new string. 4. Go to WPML → String Translation, search for 'Your Custom Title', add the Arabic translation, and save.
If this solution does not resolve your issue or seems outdated, we recommend opening a new support ticket. We also advise checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at WPML Support Forum.