Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 11 replies, has 2 voices.

Last updated by Prosenjit Barman 8 months, 2 weeks ago.

Assisted by: Prosenjit Barman.

Author Posts
October 24, 2024 at 6:46 am

herveZ-3

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?

October 24, 2024 at 10:37 am
October 25, 2024 at 8:37 am #16329566

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
I hope you're doing well!

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.

Looking forward to your response.

Best regards,
Prosenjit

October 25, 2024 at 9:20 am #16329819

herveZ-3

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

October 25, 2024 at 9:29 am #16329871

herveZ-3

I think but not sure is related to the change of Noman yesterday

2024-10-25_11-26-59.jpg
October 25, 2024 at 9:30 am #16329889

herveZ-3

Sorry correct image here :

2024-10-25_11-30-01.jpg
October 25, 2024 at 9:38 am #16329936

herveZ-3

So I updated back this change doing in FR website, and the french goes back.

Regarding your explanation, let delete the page and redo the page fully.

image_2024_10_25T09_33_40_790Z.png
October 25, 2024 at 9:54 am #16330034

herveZ-3

I do that

"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?"

But errors persist

October 28, 2024 at 4:24 am #16335777

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

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.

Looking forward to your response.

Best regards,
Prosenjit

October 28, 2024 at 1:56 pm #16338005

herveZ-3

Hello,
Let me prepear the test area to allow you to test

October 29, 2024 at 5:20 am #16340128

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello!

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.

Best regards,
Prosenjit

November 7, 2024 at 3:57 pm #16378975

herveZ-3

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.

November 8, 2024 at 5:14 am #16380590

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

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.