This thread is resolved. Here is a description of the problem and solution.
Problem:
You are working on a site under development and trying to add a string for translation in a child theme custom template using the code:
printf( __( '<a href="%s">Secure your login with Two-Factor Authentication (2FA) and Passkeys</a>', 'buddyboss' ), esc_url( '/account-security/' ) );
However, the string cannot be found for translation.
Solution:
We recommend checking if the 'Auto register untranslated strings' option is enabled, as it should register new strings by default. Additionally, for custom coding scenarios, you might need to scan the theme or plugin files. You can do this through WPML-> Theme and plugins localization.
The 'Auto register untranslated strings' option registers the untranslated strings while visiting the site and adds them to String Translation. The 'Track where strings appear' feature helps identify the source and location of the strings on the site.
If this solution does not resolve your issue or seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
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 5 replies, has 1 voice.
Last updated by 4 days, 10 hours ago.
Assisted by: Osama Mersal.