we are currently adding all strings in our theme and the plugins we are using to WPML by using the gettext functions __().
here is an example: echo '<h2>'.__('Shopping cart', 'competence').'</h2>';
A rescan of the theme folder worked and WPML is able to find the string and we can add a translation. However if we deactivate in the localization options: Don't use String Translation to translate themes and plugins. the string is not translated correctly anymore.
What information is needed so the translation is found correctly?
By comparing strings that work while this option is turned off we did not see any difference.
thank your for your help in advance,
What is the link to your site?
our site is: 1a.com
Languages: English (English )Portuguese (Brazil) (Português )
Timezone: America/Bahia (GMT-03:00)
Thank you for contacting WPML Support. When you set the option 'Don't use String Translation to translate themes and plugins' from your WordPress Dashboard > WPML > Theme and plugins localization settings, any translation you made using the WPML String Translation won't show on the frontend as this option was turned off in your localization settings. Instead you will only see a translated text if you have it in your theme languages folder as a po/mo file.