patrickV-45
<b>Background of the issue: </b>
I am trying to translate the text 'Verzonden binnen 1-2 werkdagen' which I have used inside the core.php file of a WooCommerce file on my site hidden link .
<b>Symptoms: </b>
Translation not working for the specified text.
<b>Questions: </b>
Noman
WPML Supporter since 06/2016
Languages:
English (English )
Timezone:
Asia/Karachi (GMT+05:00)
Hi,
Thank you for contacting WPML Support. For translating the hardcoded strings on the product page, please try to follow the below steps:
1. Make sure to wrap the strings in the gettext __() function by replacing the below string:
Verzonden binnen 1-2 werkdagen
With:
__('Verzonden binnen 1-2 werkdagen', 'themedomain')
From php file.
2. Scan the theme/plugin from WPML >> Theme and plugins localization page in which you update the code.
3. Go to the WPML >> String Translaton page, search the string and add the translation.
Here is a doc for more details:
https://wpml.org/documentation/support/translating-the-theme-you-created/#understanding-gettext-and-text-domains
Please let me know the results,
Thank you