Background of the issue:
I use WPML string translation and have been using WPML for 8 years. I am trying to display the French translation of a string on the front end, but it does not appear. The string is translated in 9 languages and is visible in the WPML String Translation panel. I found an article that seems to describe the same issue: https://wpml.org/forums/topic/string-translations-not-working-for-one-language-despite-added-in-wpml-string/. I followed the process described there, but nothing changed. I removed the 'sustainability2024-fr_BE.mo' file from the folder root/htdocs/wp-content/languages/wpml, but the issue persists. The issue can be seen on this page: hidden link. I expected to see French text on this URL, but instead, I got English text, which is the default language.
Symptoms:
The French translation of a string does not appear on the front end, and the English text appears by default.
Questions:
Why does the French translation not appear on the front end?
What steps can I take to resolve this issue?
I reviewed the conversation you had with my colleague, Noman, and I understand the issue. To investigate further, could you please let us know which template file contains the text in question?
I also noticed something unusual: when switching to French and updating the slug of the French page, the change affects the English page, causing an error. It seems the French version is acting as a duplicate of the English page, so any changes made there impact the English version, and the French page continues to display in English. Could you please delete the existing French translation of the page from the site, including from the Trash, then re-translate the default page into French and check if the issue persists?
Additionally, I noticed that French is set up as a custom language on your site. Could you verify if the issue occurs with the default French language?
Since the site is live, it would be ideal to set up a staging environment where we can test and debug without affecting your production site.
Please keep me posted on any updates and let me know once the staging site is ready for debugging. I’ve enabled the private box so you can securely share access to the staging site.
Hello,
IMPOORTANT
Thanks for your replay, from this morning, the FRENCH language (whole french) is not available on the website, we loose all the french content. Previously the french was in the position in the menu and now is on the last item, and we are not able to load every french we are redirect to the EN language, It worked yesterday, and we do nothing to change that.
May you revert your change please
"Could you please delete the existing French translation of the page from the site, including from the Trash, then re-translate the default page into French and check if the issue persists?"
Hello There!
I hope you're doing well. Sorry for the delay in responding due to the weekend.
Apart from reviewing the pages, no other changes were made during the last investigation that could affect any language. However, I'm glad to hear that the issue you encountered has been resolved.
To further debug the issue and provide you a solution, as mentioned in my previous response, could you please share the name of the template file that contains the text that isn't showing as translated in the French language?
To keep your production site safe, it’s recommended to set up a testing or staging site from the main site and see if the issue can be replicated there. Since it's important to test in a minimal environment, a testing environment would be best. It’s okay if the staging site isn’t set up with multiple domains—you can use the "Different languages in directories" mode to check if the issue persists.
If so, please share access to that site so that I can continue the investigation. I enabled the private box for you so that you can securely share the access.
Thank you for the update. Please let me know once the test site is ready so I can proceed with the investigation. While sharing the access details, please also share the name of the template files and where they are located so that I can check them too.
The private box is available for you to securely share the access details.
Looking forward to your response and I appreciate your kind cooperation in this matter.
Hello,
Sorry for long time, we implemented a staging serveur to try to reproduce the issues.
The task we do :
- update the staging and create the same page on it
- activate French translation on this page
- start string scan
- translate content thru WPML string translation
- test on french page
And it works correctly.
What difference we have on PRD and Staging to manipulate FR string
- in Staging we insert string thru WPML string translation manually
- in production we added the string to the basket and send the batch to external supplier and import it (it worked for all language except FR).
What we can do ?
A full copy of production ?
Do you want access to the staging even if is work ?
Thanks for your help.
Hello There!
I hope you're doing well. Thank you for the update.
The way you've translated the string shouldn’t cause any issues, and if the import completed successfully, everything should function as expected. Could you confirm whether the staging site was created as a full copy of the production site or if you only installed the theme?
If the staging site was created by fully copying the production site, access isn’t needed at this time, as everything appears to be working well on staging.
I tried to log in to your site for further investigation, but I couldn’t access it due to 2FA being enabled. Could you please disable 2FA for the profile you shared so I can proceed with the investigation?
Also, please provide the name and location of the template that contains the text that isn't showing as translated in the French language. I will check properly and if required, will escalate the issue to the 2nd tier team for further investigation.
Looking forward to your response and appreciate your patience and kind cooperation while we work on this issue.
Best regards,
Prosenjit
The topic ‘[Closed] I use wpml string translation and one of my language systematically not appear on the front, all the…’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.