Home›Support›English Support›[Resolved] I have translated Strings which are not showing on Frontend under respective languages
[Resolved] I have translated Strings which are not showing on Frontend under respective languages
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.
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?
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
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.
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.
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
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.
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 ?
New threads created by Andrey and linked to this one are listed below:
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>