This thread is resolved. Here is a description of the problem and solution.
Problem: The client could not locate or translate certain hardcoded strings in their theme (for example, text inside a template partial registered as an ACF block). Running Theme and Plugin Localization showed some strings, but the specific ones (like homepage carousel text) were missing.
Solution: We recommended the client to:
1. Ensure they have a full backup of their website and database.
2. Perform these steps preferably on a staging or development site to avoid issues on the live site.
3. Update WordPress to the latest version.
4. Deactivate all plugins except for WPML and its String Translation add-on.
5. Scan the theme again and then search for the strings in the String Translation section.
When these steps didn't bring expected results, it turned out that the root cause was that the missing strings were not wrapped for translation. Once the customer encased them in gettext functions such as __() or _e() with a textdomain, WPML successfully detected them.
For a complete guide on preparing themes and plugins for translation—including gettext wrapping best practices and how AI can help streamline the translation process—see: Translate WordPress Themes and Plugins with AI
If this solution does not resolve the issue or seems irrelevant due to being outdated or not applicable to your specific case, we highly recommend opening a new support ticket.
Please also 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.
For further assistance, you can contact us directly at the WPML support forum.
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 1 reply, has 0 voices.
Last updated by 9 months, 3 weeks ago.
Assisted by: Waqas Bin Hasan.


