Skip Navigation

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

Problem:
The client is experiencing an issue where additional strings are in English instead of French, possibly due to a language selector setting in the WP Cookie consent plugin, with the site's main language being French.
Solution:
We recommend changing the source language of the string before translating it. Please follow this guide to change the source language to English and then translate the string to French: How to change the source language of strings. After completing these steps, verify if the string displays correctly in French.

If this solution does not apply to your situation, or if it seems outdated, we encourage you to open a new support ticket. We also 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.

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 7 replies, has 2 voices.

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

Assisted by: Osama Mersal.

Author Posts
February 15, 2024 at 7:10 am #15305097

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?

February 15, 2024 at 7:12 am #15305103

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

You need to change the source language of the string before translating it. Kindly check this guide. (https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/)

Please change the source language to English and translate the string to French. After that, kindly check if the string works correctly.

Best regards,
Osama

February 15, 2024 at 1:23 pm #15307302

jocelynG-2

Hi,
I think that WP Cookie consent plugin has been coded in English. Like I wrote, the problem is linked to the fact that the main language of my site is french and even if I chose French in WP Cookie consent settings, all the strings that WPML find are in English. I wrote to the developer about this. All this to say that I found a way to resolve somewhat the issue.

February 15, 2024 at 1:29 pm #15307311

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

If you change the strings to French in the plugin settings, please delete the strings from WPML-> String Translation and re-add them from the Admin Texts screen.

I think this happens because of the site's default language.

Best regards,
Osama

February 15, 2024 at 2:59 pm #15307969

jocelynG-2

Not working. As I mentionned previously, even if I chose French as language in WP Cookie consent settings, WPML shows the string in English and when I search for them in Admin Texts screen, only two strings come up not related to the banner as such. As I have to redo the translation of the strings again, I hope that WPML still has them in the database.

Capture d’écran, le 2024-02-15 à 09.56.50.png
February 15, 2024 at 3:02 pm #15308122

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Please search for "GDPRCookieConsent". Also, please add the Strings in French in the plugin settings and let me know to search for them. (hidden link)

Best regards,
Osama

February 15, 2024 at 3:14 pm #15308207

jocelynG-2

Not much either shows up with this search. Now after reverting to English in WP Cookie consent settings and redoing the strings translation, everything works fine.
I may have to use WP Cookie consent on another website. I'll try right your suggestion from the start and see if it works.

Thanks Osama.

Capture d’écran, le 2024-02-15 à 10.09.36.png
February 15, 2024 at 3:16 pm #15308226

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Please let me know if you need further assistance regarding the Cookie strings on the other site.

Best regards,
Osama