Skip Navigation

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

Problem:
The client is using WP Cookie Consent to display a cookie banner consent and has translated all the necessary strings into French. However, while the buttons on the banner appear in French, the text content remains in English.
Solution:
1. Go to WPML-> Theme and plugins localization, select your theme/plugin, and scan.
2. Navigate to WPML-> String Translation.
3. Scroll down and click on the "Translate texts in admin screens »" link.
4. Search for the needed strings.
5. Select the strings.
6. Click on the "Add to String Translation" button.
7. Then click on the "« Return to String Translation" link.
8. Translate the strings, clear the cache, and check the front end.

For more detailed instructions, please refer to our guide on translating texts in the admin texts screen.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, 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 with us.

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.

This topic contains 10 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 2 months ago.

Assisted by: Osama Mersal.

Author Posts
February 13, 2024 at 5:16 pm #15299048

jocelynG-2

I am using WP Cookie Consent to show a cookie banner consent. I have translated in french all the strings needed for the banner.

Link to a page where the issue can be seen: hidden link

I expected to see: the text content of the cookie banner to be in french

Instead, I got: all buttons are in French but the text remains in English

Capture d’écran, le 2024-02-13 à 12.13.40.png
February 14, 2024 at 7:42 am #15300326

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Please try the following steps:

1- Go to WPML-> Theme and plugins localization, select your theme/plugin, and scan
2- Go to WPML-> String Translation
3- Scroll down and click on the "Translate texts in admin screens »" link
4- Search for the needed strings
5- Select the strings
6- Click on the "Add to String Translation" button
7- Then click on the "« Return to String Translation" link
8- Translate the strings, clear the cache, and check the front end

Kindly check our guide to know more about translating texts in the admin texts screen. (https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/)

Best regards,
Osama

February 14, 2024 at 1:33 pm #15302594

jocelynG-2

Hi. Please send me a screenshot indicating where is "Translate texts in admin screens" link.
As the main lnaguage of the site is french, I don't find what could be the equivalent.

February 14, 2024 at 1:37 pm #15302602

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

It's at the bottom of the String Translation page. (Kindly check the attached screenshot)

Best regards,
Osama

2024-02-14_15-35-15.jpg
February 14, 2024 at 1:53 pm #15302799

jocelynG-2

Hi. I did as you suggested. Found three strings and added them to String translation. Back on the String translation page I found that the string is already translated. Cleared cache anyway and the Cookie banner text is still in English on the french site.

Capture d’écran, le 2024-02-14 à 08.51.55.png
February 14, 2024 at 2:17 pm #15302904

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for your update. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

February 14, 2024 at 2:38 pm #15302979

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for the access details. Please translate the strings on this page and check the issue. (hidden link)

Best regards,
Osama

February 14, 2024 at 2:42 pm #15302986

jocelynG-2

Thanks Osama for the fast resolve.
Strange that not all these strings came up when I search for them myself?
Have a good day, or night.

February 14, 2024 at 2:45 pm #15302992

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I added some strings to String Translation by the steps in my previous reply.

It's great to hear that the issue is fixed. 🙂 Please don't hesitate to open a new ticket if you face any other issues. We are always happy to help you.

Have a great day!

Best regards,
Osama

February 14, 2024 at 3:59 pm #15303420
jocelynG-2

Hi again. I need your assistance as I'm having a similar issue on another website hidden link

This time, the additionnal strings are in English where they are supposed to be in French.
Would it be that WP Cookie consent plugin has a language selector in it's settings is causing these bugs, the site's main language being French?

New threads created by Osama Mersal and linked to this one are listed below:

https://wpml.org/forums/topic/split-translated-string-not-showing-up/

Capture d’écran, le 2024-02-14 à 10.56.46.png
Capture d’écran, le 2024-02-14 à 10.52.41.png
Capture d’écran, le 2024-02-14 à 10.47.31.png
February 15, 2024 at 7:10 am #15305100

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

We try to keep one issue per ticket in our forum. Continuing with one ticket per issue helps supporters focus on one issue at once and enables other users to find solutions to their questions faster.

Therefore, I've split the other issue and created a new ticket with this issue. (https://wpml.org/forums/topic/split-translated-string-not-showing-up/)

Best regards,
Osama