Skip Navigation

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

Problem:
The client reported that the Cookie Consent pop-up, which used to display in the language of the website page as translated in WPML Strings, now remains in English even when switching languages. The client suspected a change in functionality, possibly related to browser language settings.
Solution:
We clarified that the issue was not related to browser language settings but was due to a change in the string name by the Blocksy theme. We advised the client to check the Admin screen section of String Translation to see if the texts are listed there and to register them for translation if found. For detailed steps, we recommended following this guide: Translate Admin and Settings Strings.
If the strings were not visible, we suggested updating the MO files by following these steps:
- Go to WPML > Support > Troubleshooting.
- Scroll down and click on the 'Show custom MO Files Pre-generation dialog box' button.
- After the page refreshes, click on the 'Generate MO files' button and wait for the process to finish.
- Clear the caches from the site and browser, then check again.

If this solution does not resolve the issue or seems outdated, we highly recommend checking related known issues at WPML 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.

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

Last updated by Prosenjit Barman 6 months ago.

Assisted by: Prosenjit Barman.

Author Posts
June 9, 2024 at 12:26 pm #15719402

sophieJ-3

I have a quick question concerning the Cookie Consent pop-up. It used to be displayed in the same language as the website page (it is translated in WPML Strings), but now it stays in English (default language) even when I switch languages. Did something change in this function and if yes does it now take the browser language instead of the website language?

hidden link..dHgHGx6ChzlLq65BpSgSLg.yleWAxGc17JCInlijCnyeWPJ7KAcMrIYG9kpAPAffZ2CgVbzhqueCuejqdnmAj84L4B3FTnuODYJ3eLyH-CZMGeqqAonfn5OTTuI3XrnOzTr9W3HyYgeGkU3Elm1fvTlHsE8m3VrMVdrxd0-N3Me4NZdGvIukqKDjBlD5pXkTzCY5TcqxlHe0V_UV9LFwqx7_ylJmlSY8Ijt1vuhqEddApZVN7VpMKTM03quxrxiw1QX2cXS_GTDOe7jEVf0mx8_KMgxDM8X9KxMQxIs9qKagVXkdrAbXKGQlZxnI2xm5ao.5KrQW47NBkMcfsoUcOVMmw

We contacted theme support who could not figure it out and told us to contact WPML.

June 9, 2024 at 12:31 pm #15719406

sophieJ-3

I am using the theme Blocksy (child theme)

June 10, 2024 at 7:45 am #15720465

Prosenjit Barman
Supporter

Languages: English (English )

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

Hello There,
Thanks for contacting WPML Support.

I understand what you're looking for. The consent information appears to be added via the Blocksy Companion (Premium) plugin. If you have already translated the strings, the translation should appear when you switch languages. The browser language doesn't seem to be causing an issue here.

Would you please go to the Admin screen section of String translation and check if any of the texts are listed there? If you find them, select the string and register it for translation. Please check this guide for a better understanding.

As you mentioned the texts were previously showing correctly translated, if you don't see any strings listed in the Admin screen, you can try updating the MO files. Please follow these steps:

- Go to WPML > Support > Troubleshooting.
- Scroll down and click on the 'Show custom MO Files Pre-generation dialog box' button.
- Once the page refreshes, a popup will appear with a button named 'Generate MO files'. Click on that and wait for the process to finish.
- Clear the caches from your site and browser, then try again.

Let me know how it goes. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

June 10, 2024 at 9:23 am #15720998

sophieJ-3

Hello Prosenjit,

Thanks for your reply. I found the issue and solution. Blocksy changed the string name and by modifying the default string and resaved it, I could find the new one in WPML Strings.

I wish you a very good day,
Kind regards,
Sophie