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 3 replies, has 2 voices.

Last updated by massimoS-6 1 month, 3 weeks ago.

Assigned support staff: Osama Mersal.

Author Posts
April 15, 2021 at 4:16 pm #8547343

massimoS-6

Hello!
website is hidden link
I am trying to translate the product: hidden link
The phrases "Percentuale di risparmio:", "Risparmi:" and "Data di scadenza:" are my issue, I cannot find them, I have tried scanning the website for strings, the first two may be hardcoded into functions.php (I will check later), but where is the third one?

Thanks!
Max

April 15, 2021 at 6:40 pm #8548361

Diego Pereira
Supporter

Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello, welcome to the WPML support Forum!

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

You need to wrap these custom strings into a translatable string (gettext - see https://codex.wordpress.org/I18n_for_WordPress_Developers). E.g:

__( 'Hello, dear user!', 'my-text-domain' );

After that please follow this steps:
1) Go to WPML > Theme and plugin localization > Strings in the themes
2) Select the theme
3) Click on Scan selected theme for strings
4) Go to WPML > String Translator and search for the string
5) Translate the string

Please let us know if it worked for you.

April 18, 2021 at 8:44 am #8563865

massimoS-6

Hi Diego,

I have been unable to test the solution, but I will test it tomorrow!

April 20, 2021 at 2:22 pm #8582807

massimoS-6

My issue is resolved now, and I have learned a new very useful thing! Thank you!