Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 - -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Noman 4 months, 2 weeks ago.

Assisted by: Noman.

Author Posts
October 7, 2024 at 1:29 pm #16261583

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>

October 7, 2024 at 1:37 pm #16261778

patrickV-45

hi

October 7, 2024 at 1:54 pm #16261918

Noman
Supporter

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

The topic ‘[Closed] Translation not working’ is closed to new replies.