Skip Navigation

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

Problem:
The client needed assistance with displaying the translated version of the Complianz cookie banner on their website. The default language of the site is French, but the English translation was not showing up.

Solution:
1. We recommended clearing the website's cache using the LiteSpeed Cache plugin to ensure that the translated content is not being overridden by cached data.

2. We advised checking if the cookie banner content is translated in WPML -> String Translation. For detailed information, we provided a link to the Complianz documentation: https://complianz.io/translate-legal-documents-to-multiple-languages-with-wpml/

3. If the strings were not found, we instructed the client to scan the Complianz plugin for strings by going to WPML -> Theme and plugins localization, selecting the Complianz plugin, and clicking "Scan selected plugins for strings".

4. After scanning, the client should return to WPML -> String Translation and use the search filter to find and translate the cookie banner content.

56. We offered to troubleshoot the issue directly by requesting temporary access to the client's website and we located the strings by searching with a portion of the text from the cookie banner and edited the translations for testing purposes, adding "FR" to the beginning of the French version. We reminded the client to clear the cache after finishing the translations.

If the solution provided here is not relevant to your case, either because it's outdated or not applicable, 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 at our support forum.

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

Last updated by Marsel Nikolli 1 year, 2 months ago.

Assisted by: Marsel Nikolli.

Author Posts
February 3, 2024 at 4:37 pm #15262524

jocelynG-2

Tell us what you are trying to do?
I translated Complianz cookie banner in english and this is the version it shows in french. Default language of site is french.

Is there any documentation that you are following? No

Is there a similar example that we can see? Don't know

What is the link to your site? hidden link

February 5, 2024 at 7:55 am #15264445

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will be happy to help you.

If the popup content is translated I would suggest you first clean the website's cache using the LiteSpeed Cache plugin, and check if the issue persists after.

If the issue persists please check if the content of the cookie banner is translated (normally you should find the strings on WPML -> Strings translation).

Please check the following link for more detailed information:
hidden link

Let me know if you have any question or need further assistance.

Regards,
Marsel

February 5, 2024 at 3:08 pm #15266838

jocelynG-2

Thanks for the reply,

You mean that the strings of Complianz plugin need to be translated in french for wpml to show the right language in the cookie consent popup?

February 5, 2024 at 3:51 pm #15267226

Marsel Nikolli

Yes, in the WPML -> String Translations if you check the strings under the domain Complianz and check for the cookie banner content.

In case it doesn't show up, please follow the steps below:

- Go to WPML -> Theme and plugins localization -> Scan the plugin for strings
- Select checkbox next to "Complianz | GDPR/CCPA Cookie Consent"
- Click "Scan selected plugins for strings"
- Go back to WPML -> String Translation
- Use the search filter to find the cookie banner content
- Add the translation

The content needs to be translated in all the languages of your website in order to show up based on the language selected.

Let me know if you have any more questions or need further assistance.

Regards,
Marsel

February 5, 2024 at 5:20 pm #15267740

jocelynG-2

Hi. When I did the scan on Complianz plugin for strings, my website got stuck on the spinning wheel. It's doesn't even show in the front end. I get the message : Can not connect to server. What can I do to regain access?

February 5, 2024 at 5:21 pm #15267742

jocelynG-2

Finally it came back online

February 5, 2024 at 5:26 pm #15267794

jocelynG-2

When I do a search for cookie banner content in the strings, WPML doesn't find any string for this. I do find those related to complianz-gdpr plugin itself though.

February 6, 2024 at 8:51 am #15269508

Marsel Nikolli

Hi,

The blocking/stalling of your website might have been due to a low php script execution time or any security configuration.

Normally the scanning of the Complianz plugins is less than a minute.
If the scanning of the strings was not completed I would suggest you try again, and after the cookie banner content should appear on WPML -> String Translations (as shown in the attached image).

Let me know if you have any other question or need further assistance.

Regards,
Marsel

complianz.png
February 6, 2024 at 2:54 pm #15272461

jocelynG-2

Hi Marsel. I did exactly as you suggested. I checked all the Complianz strings and no strings for the cookie banner are in the list.
With the 7 hours difference of time zones, our conversation is taking days instead of hours. Would it be possible to have support from someone in America?

February 6, 2024 at 3:11 pm #15272560

Marsel Nikolli

Hi,

Would it be possible to provide me with a temporary access on your website so I could check out? That would help troubleshooting faster and resolving the issue.

I would need access to your website's WP-Admin, you can create an administrator user using any email address you prefer.

Your next reply is set to private for you to provide the username and password details.

* After I've checked the website, if the issue persists and will need further troubleshooting I'll check if it will be possible to have someone take over from America time zone.

Thanks,
Marsel

February 6, 2024 at 4:10 pm #15272990

Marsel Nikolli

Thank you for the access, I was able to check and by searching with just a bit of the text I was able to find the strings on WPML -> String Translation (please check attachment, I just copied a few words from the cookie banner and search for it on the strings page).

* I edited the translations for testing and I just added "FR" at the beginning of the french version, please edit them correctly.

If you check the website you should see that now the cookie banner content switches when you switch the website language.

* Important: Given that you are using LiteSpeed Cache plugin, after you've finished the translations, please clear the cache of the website on the front-end.

Let me know if you have any more questions or need further assistance.

Regards,
Marsel

complianz-strings.png
February 6, 2024 at 4:15 pm #15273010

jocelynG-2

Thanks Marsel for your assistance.

February 6, 2024 at 4:31 pm #15273039

Marsel Nikolli

Happy to see that your issue is resolved.

If you have any other questions, please don't hesitate to contact us.

Kind regards,
Marsel