This thread is resolved. Here is a description of the problem and solution.
Problem:
The client wants to add a translation inside a variable
Solution:
- First wrap the string in the gettext function like this: https://wpml.org/forums/topic/adding-wpml-translation-inside-a-variable/#post-13172685
- After that, please scan the theme in which you update the code from WPML >> Theme and plugins localization page.
- Go to WPML >> String Translation page and search for that string and add the translation.
Relevant Documentation:
https://developer.wordpress.org/reference/hooks/gettext/
https://wpml.org/documentation/support/translating-the-theme-you-created/
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 2 replies, has 2 voices.
Last updated by 1 year, 10 months ago.
Assisted by: Noman.