Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
I try to translate a string that I can't find (Free shipping - on the cartpage. Not with scanning and not with live page reading

Solution:
Upon further inspection in the theme files, we've found that the PHP code of this string was not wrapped with a gettext function:

$label = 'Gratis verzending';

So we made this correction:

$label = __('Free shipping', 'shipping');

After rescanning the Flatsome child theme, the text appeared to be translated on the String Translation page.

Relevant Documentation:
https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

https://wpml.org/documentation/support/enabling-text-translation-for-themes-not-compatible-with-wpml/

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.

No supporters are available to work today on this forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 3 replies, has 3 voices.

Last updated by christiand-51 1 month ago.

Assigned support staff: Mateus Getulio.

Author Posts
April 13, 2021 at 3:04 pm #8526687

christiand-51

I try to translate a string that I can't find (Free shipping - on the cartpage. Not with scanning and not with live page reading

hidden link

Knipsel.JPG
April 14, 2021 at 7:29 am #8531445

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

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

Hi,

thanks for contacting us.

If you already tried everything suggested here https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/ please provide us with our site's credentials so we can take a better look.

April 14, 2021 at 3:22 pm #8536819

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

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

Hey there,

Thanks for the credentials.

Upon further inspection in the theme files, we've found that the PHP code of this string was not wrapped with a gettext function:

$label = 'Gratis verzending';

So we made this correction:

$label = __('Free shipping', 'shipping');

After rescanning the Flatsome child theme, the text appeared to be translated on the String Translation page. Everything seems to be working now. Could you please confirm that the issue is resolved?

Best regards,
Mateus.

April 15, 2021 at 1:04 pm #8545427

christiand-51

My issue is resolved now. Thank you!