Skip Navigation

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

Problem:
You have translated some theme strings using WPML, but they are not appearing on the frontend of your site in the respective languages.
Solution:
First, ensure that you are translating the correct strings. We recommend activating the option 'Look for strings while pages are rendered' to help identify and register the correct strings for translation. Here are the steps you should follow:
- Go to WPML → String Translation
- Enable the 'Look for strings while pages are rendered' option
- Open the page where the untranslated strings are displayed
- Return to WPML → String Translation and check if the string has been registered
- Proceed with the translation
For more detailed guidance, visit finding strings that don't appear on the string translation page.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, 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 you still need assistance, please open a new support ticket at WPML support forum.

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.

Tagged: 

This topic contains 17 replies, has 0 voices.

Last updated by Andrey 2 weeks ago.

Assisted by: Andrey.

Author Posts
October 17, 2024 at 2:42 pm #16301043

juergenS-23

Background of the issue:
I have been translating my site using WPML, focusing on some Theme strings. I translated a bunch of strings a few days ago, and they appear in the translated section of strings in the backend.

Symptoms:
The translated strings are not showing on the frontend under respective languages.

Questions:
Why are the translated strings not rendering on the frontpage?
Is there a step I missed in the translation process for Theme strings?

October 17, 2024 at 7:59 pm #16301943

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Thank you for contacting WPML support.

Can you show me some examples? Also, the translation process.

I suppose you have translated them all in WPML → String Translation?

I've enabled debug information for this support ticket. Please refer to this link for instructions on how to retrieve this information from your site and provide it to us: http://wpml.org/faq/provide-debug-information-faster-support/

October 22, 2024 at 5:32 am #16314955

juergenS-23

hidden link

October 22, 2024 at 11:54 am #16317237

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Thank you for the explanation.

How did you create and add those strings to the page?

I noticed in your video that some other strings, "Match" and "Tier," are not translated. You need to make sure that you are translating the correct strings.

I would also suggest activating the option "Look for strings while pages are rendered" to check if the strings with the same name will be registered for translation. This way, you can verify if the correct strings were translated.

Here are the steps:
- Go to WPML → String Translation
- Enable the "Look for strings while pages are rendered" option
- Open the desired page where untranslated strings are displayed
- Return to WPML → String Translation and check if the string has been registered
- Make the translation

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

October 23, 2024 at 6:20 am #16319973

juergenS-23

Hello ,
1. On the translation of the Strings I used the correct domain registration procedure . These are not the only custom strings I have on my site I have more others that I have succesfully translated and those are showing well on the frontend.
Also I have the same strings (mentioned above) "Match" and "Tier" on a sister website: hidden link and here you can see they do render comfortably.

Lastly, about the troubleshoot action you suggested; I see there is this notice "* This feature is only intended for sites that are in development. It will significantly slow down the site, but help you find strings that WPML cannot detect in the PHP code." -before I take that action should I be worried that the site will be affected ? Because I already I'm already facing speed issues on this website.

October 23, 2024 at 3:24 pm #16322627

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

On the translation of the Strings I used the correct domain registration procedure .

Could you show me this?

Have you tried temporarily deactivating all the plugins and WPML to check if the issue persists?

Lastly, about the troubleshoot action you suggested; I see there is this notice "* This feature is only intended for sites that are in development. It will significantly slow down the site, but help you find strings that WPML cannot detect in the PHP code." -before I take that action should I be worried that the site will be affected ? Because I already I'm already facing speed issues on this website.

This option registers the unregistered strings only on the page you load. You do not need to leave it activated to avoid performance issues. You can activate this option, load the page with the problem strings, and deactivate the option. Then, check WPML → String Translation.

But before that, you must update your WPML plugin and add-ons to the latest version, 4.6.13, to benefit from the latest bug fixes and improvements. This may not necessarily resolve your problem; however, we need to work on the newest code available to troubleshoot the issue best.

You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/

If you do not see the updates, you might need to click the Check for updates button in the Plugins → Add New Plugin → Commercial tab.

Ensure to update other related plugins on your website.

Please remember to backup your database before you proceed.

October 24, 2024 at 8:29 am #16324904

juergenS-23

After doing this ;
"Here are the steps:
- Go to WPML → String Translation
- Enable the "Look for strings while pages are rendered" option
- Open the desired page where untranslated strings are displayed
- Return to WPML → String Translation and check if the string has been registered
- Make the translation"

The strings are now rendering on the Frontpages. Once I deactivate this will this issue be solved?or do I need to do something extra

October 24, 2024 at 10:14 am #16325524

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

I'm not sure if this will be resolved. The intention is to log the strings for translations, but you mentioned that they are showing when the option is enabled. Please disable this option and verify.

Have you updated the plugins?

October 24, 2024 at 3:34 pm #16327310

juergenS-23

I just verified that when deactivated, the same same strings do not render.

October 24, 2024 at 6:52 pm #16327989

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Could you show me how you registered those strings? Have you had a chance to update WPML plugins?

October 25, 2024 at 8:09 am #16329393

juergenS-23

Hello I just updated the plugin and deleted Cache but the issue is still there when the "Look for strings while pages are rendered" is OFF

We need a permanent fix on this please

October 25, 2024 at 2:00 pm #16331006

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Thank you for your feedback. I need more information to offer guidance on possible fixes. Could you please provide that?

Please let me know the results if you have the opportunity to test this issue with only WPML enabled.

October 31, 2024 at 5:26 am #16349609
juergenS-23

Hello, even with the only WPML active the strings could not render, these strings are rendering fine on other sites.
Quick one is there a way I can export specific strings in a domain from site A and Import them to site B ?

October 31, 2024 at 1:30 pm #16351562

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Thank you for your feedback.

Could you show me how you registered those strings? Including some detailed explanations.

Regarding your new question, I will reply in the new support ticket here:
https://wpml.org/forums/topic/split-i-have-translated-strings-which-are-not-showing-on-frontend-under-respective-languages/

November 4, 2024 at 6:41 am #16358827

juergenS-23

Here is an example of a registered string , one of which gives us Issues;
<th class="text-left"><?php _e('Tier', 'simba-lotto-theme'); ?></th>
<th class="text-left"><?php _e('Match', 'simba-lotto-theme'); ?></th>