This thread is resolved. Here is a description of the problem and solution.
Problem:
The client added text that was not appearing for translation in WPML.
Solution:
First, we recommend wrapping the string with the gettext function to make it translatable. For example, use the following code:
_e('per person', 'woocommerce');
For more details, refer to our guide on adding gettext calls to PHP code.
Next, follow these steps to ensure the string appears in WPML's String Translation:
1. Go to String Translation.
2. Enable the "Auto-register strings" option.
3. Visit the page on the front end where the string is displayed.
4. Disable the "Auto-register strings" option.
5. Search for the string to translate it.
For detailed instructions, please visit our guide on finding strings that don't appear on the String Translation page.
If this solution does not resolve your issue or seems outdated, we highly recommend 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. If further assistance is needed, please open a new support ticket.
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 8 replies, has 2 voices.
Last updated by 3 months, 2 weeks ago.
Assisted by: Osama Mersal.