Skip to content Skip to sidebar

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

Problem:
The client was experiencing an issue where a specific string in the GDPR Cookie Consent banner was displaying in English on the Spanish version of the site and in Spanish on the English version, despite the URLs being correct.

Solution:
1. Check and Correct the Translation in GDPR Cookie Consent Settings:
- Navigate to Cookie Consent → Languages in the WordPress dashboard.
- For each language where the string is incorrect, click on Edit Content.
- Review and correct the translations in both the Consent Banner and Preference Center sections.
- If the string is part of the cookie categories, go to Cookie Consent → Manage cookies, use the Edit content in dropdown to select your languages, and correct the translation.
- Save changes.
2. Clear Caches: Clear all caches (plugin, server, browser) to ensure changes appear immediately.
3. Verify WP Memory Limit: Check the WP Memory Limit in WPML → Support and increase it if necessary.
4. Delete and Retranslate the String in WPML String Translation:
- Navigate to WPML → String Translation.
- Search and delete the problematic string, then use the Utilities tab to re-register the string by visiting the page where the cookie banner appears.
- Re-translate the string correctly for both languages.

If these steps do not resolve the issue, or if the solution seems outdated or not applicable to your 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 the problem persists, please open a new support ticket at WPML support forum for further assistance.

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.

Tagged: 

This topic contains 8 replies, has 1 voice.

Last updated by Carlos Rojas 3 weeks, 6 days ago.

Assisted by: Carlos Rojas.

Author Posts
December 26, 2025 at 11:25 am #17688428

hectord-7

I have been talking with your support and now translations are working for our cookie banner. However, there is one string that shows in english in the spanish version and in spanish in the english version.

I can't figure out why.

The crazy thing is that it is pointing to the url in the correct language. Just the string is worng.

December 26, 2025 at 11:40 am #17688458

hectord-7

Now it just always shows in Spanish. I don't understand why. The string is translated.

Captura de pantalla 2025-12-26 a las 12.40.17.png
December 26, 2025 at 11:44 am #17688478

hectord-7

Well, no, after I refreshed the WPML cache now it is back showing the opposite of the language it has. And then I refreshed it again and now it always shows in English.

It seems completely random.

December 26, 2025 at 12:56 pm #17688581

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hello,
My name is Carlos, and I will continue working on this ticket

I kindly ask you to follow these steps:
- Create a full site backup
- Go to WPML -> String Translation -> Search for the problematic string -> Select it and delete it
- Go to WPML -> Theme and plugins locatization -> Scan Compilanz
- Go back to WPML -> String Translation -> Search and translate the string
- Check if the issue has disappeared

Can you tell me the results of the steps described above?

December 29, 2025 at 10:32 am #17694494

hectord-7

Hello.

It is still not solved. It shows all the time in Spanish now after doing all of that.

But translations seem to be fine.

What can we do?

Captura de pantalla 2025-12-29 a las 11.32.31.png
December 29, 2025 at 11:15 am #17694596

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Please share the access credentials to the site in your next message, which I have set private. This will allow me to reproduce the issue and double-check the configuration.

Confirm you have created a full site backup that you can restore if necessary.

January 5, 2026 at 8:37 am #17702941

hectord-7

Hello,

First of all, it would be great if I could receive replies of this by email. Because I can't know when the ticket has been answered.

I have created a user for you on our website:
[REMOVED]

I confirm I have a backup.

Please confirm to me this info is private.

January 5, 2026 at 10:17 am #17703325

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hi there,
Thank you for sharing the credentials

I have set the correct language for the strings and translated them in WPML -> String Translation. Can you confirm that the issue was solved?

January 5, 2026 at 3:16 pm #17704497

hectord-7

Yes, it is working now. Thanks so much!

I can't understand how it was that. Since I already did set the correct language and translated them using the string translation multiple times before.

But thanks anyways.

January 6, 2026 at 10:54 am #17706307

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

You are welcome!

Please don't hesitate to contact us if you need our assistance in the future with WPML. We are here to help 🙂