This thread is resolved. Here is a description of the problem and solution.
Problem:
The client was unable to translate certain hardcoded strings on the checkout page, which were not visible in WPML's "Choose texts for translation" section.
Solution:
1. We added the missing text domain to the hardcoded strings by replacing the code:
__('Numéro de PO du Client')
with:
__('Numéro de PO du Client','savoy-child')
2. We scanned the child theme from WPML >> Theme and plugins localization page.
3. We navigated to WPML >> String Translation page, searched for the strings, and noticed that the English language was assigned to the French strings.
4. We selected those strings and assigned the French language using the "Change the language of selected strings" dropdown.
5. We added the translations, and they now appear correctly.
For more details, you can check the documentation here: https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/
If this solution does not resolve your issue or seems outdated, we 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 at 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 is split from https://wpml.org/forums/topic/string-translation-issues-on-product-page/
This topic contains 2 replies, has 2 voices.
Last updated by 5 months, 3 weeks ago.
Assisted by: Noman.