Skip to content Skip to sidebar

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 Marcel 1 year, 5 months ago.

Author Posts
July 22, 2024 at 2:37 pm #15987397

hoi-yan-reneeT

Background of the issue:
I want WPML to auto translate all contents of our website hidden link, but WPML cannot translate the text contents. WPML can only translate the text content if I set up the content via ACF or Advanced Custom Field plugin. Most of the text content of our website can be found in our template pages in PHP.

Symptoms:
The website does not auto translate the contents like the header, footer, and main contents for each page.

Questions:
How can I configure WPML to auto translate text contents that are in PHP template pages?
Is there a way to make WPML translate text contents without using ACF or Advanced Custom Field plugin?

July 22, 2024 at 10:18 pm #15989462

hoi-yan-reneeT

Any updates?

July 23, 2024 at 7:42 am #15990971

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps to help speed up the support process.

Please provide specific code examples so we can ensure your PHP templates include correct getText() calls based on the WP i18n standard. All strings need to be prepared this way so WPML can register them in WPML String Translation. More information can be found here.

Best Regards,
Marcel

July 23, 2024 at 7:55 am #15991092

hoi-yan-reneeT

I found a solution of my own having the code below to prepare the text content for WPML translation.