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.

This topic contains 1 reply, has 0 voices.

Last updated by Dražen 9 hours, 59 minutes ago.

Author Posts
March 3, 2025 at 8:30 am #16767266

ericH-23

Background of the issue:
I am working on a site under development and trying to add a string for translation in a child theme custom template. The code I added is: printf( __( 'Secure your login with Two-Factor Authentication (2FA) and Passkeys', 'buddyboss' ), esc_url( '/account-security/' ) );

Symptoms:
The string in the child theme custom template cannot be found for translation.

Questions:
Why can't I find the string for translation in WPML?

March 3, 2025 at 9:38 am #16767649

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

Thanks for contacting us.

While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.

Can you please check our docs and try to use different approach, for example:

<a href="http://wpml.org/" ><?php esc_html_e( 'Translated with WPML', 'my-domain' ); ?></a>

- https://wpml.org/documentation/support/how-to-use-gettext/

Then go to WPML > Theme and plugins localization and scan your child theme, after it is done go to WPML > String translation and translate.

Regards,
Drazen