WebToffee Logo
  • Home
  • Plugins
  • Bundles
  • Blog
  • Documentation
  • Support
Login
0

  • Overview
    • Plugin set up
  • GDPR
    • Getting Started
      • Get GDPR Compliant
    • Add and Categorise Cookies
      • Troubleshoot cookie scanner
      • Add cookie manually
      • Disable cookie categories by default
      • Using cookie scanner
    • Auto-block cookies with Script Blocker
      • Compatibility with WP cache plugins
      • Configuration
      • Add custom script blocker
      • Block scripts at client side
      • Block services in Google Tag Manager separately
      • Check script blocking
    • Create Privacy Policy Page
      • Policy generator
    • Customize Settings Pop up
      • Adding cookie settings link to footer
      • Alter colour of toggle button
      • Change cookie category order in settings popup
      • Adding Custom columns into the Audit Table
      • Display category wise cookie list
    • Customize Cookie Notice
      • Category checkboxes on cookie banner
      • Geo-target cookie message bar
      • Customize banner using CSS
      • Accept consent on scroll/delay
      • Customize templates
      • Hide the cookie bar on selected pages
      • Pre-defined templates
      • Shortcodes for banner
    • Multilingual Support
      • Translate using Polylang
      • Multilingual compatibility for Necessary Category
      • Translate using WPML
      • Translate using qTranslate
      • Multilanguage compatibility for privacy policy page
    • Advanced Topics
      • Modify duration of consent
      • Access/Block site based on consent
      • Show/hide 'Privacy and Cookie Policy' tab
  • CCPA
    • Getting Started
      • Get CCPA Compliant
  • Third-Party Compatibility
    • Plugins/Themes
  • FAQ
    • Frequently asked questions
  • Changelog
    • Version 2.4.0

Documentation/GDPR Cookie Consent/Translating GDPR Cookie Consent plugin with Polylang

Translating GDPR Cookie Consent plugin with Polylang

Last updated on March 2, 2022

GDPR Cookie Consent plugin is compatible with some of the most common multilingual plugins like Polylang, WPML, qTranslateX etc. In this article, we will share deep insight into how the GDPR Cookie Consent plugin can be translated into your desired language via Polylang.

Refer Translating GDPR Cookie consent plugin with WPML to know how the cookie plugin is translated using WPML.

Once the Polylang plugin is installed and activated, you need to first configure it for the desired languages. Once the languages have been set up, navigate to Languages > String Translations as shown below for customizations w.r.t the plugin:

GDPR-Cookie-Translation-with-Polylang

From the String Translation page that opens up, filter the group by selecting webtoffee_gdpr_cookie_consent from the drop down as shown below:

GDPR-Cookie-Translation-with-Polylang-Select-webtoffee_gdpr

Note: In this case, the language is switched to French prior to translating the strings of GDPR cookie consent plugin.

For instance, let us see how the string on the Accept button is translated into French.

GDPR-Cookie-Translation-with-Polylang-Change-string-to-French

The string on Accept button is changed to Accept in French indicating the translated text in French. On loading the website, the cookie accept button will be as shown below:

GDPR-Cookie-Translation-with-Polylang-Cookie-button-in-French

Now that you have set up everything else in the plugin, you will find that in the script blocker settings, you can only select one category and switching to the other one is overwriting the changes you made in first language. To over come this, you need to make the slug of the each category and their translated categories, the same.

Go to the cookie category page, you may switch the language from the language selection above the category list as shown below.

You can use the Quick Edit button in the cookie category listing page to edit the slug and enter the same slug as in the other language. You won’t be able to do it from the All Languages section due to WordPress limitations.

For instance, if necessary is the slug, click on the quick edit section and specify the same slug as in the other language.

Once you have specified the slug same, you will need to choose the category in one language only under script blocker. Also, setting the slug as “necessary” in both languages will make both categories strictly enabled.

If you’ve got any query, please feel free to contact our technical support team to get further assistance.
  • Was this article helpful?
  • Yes, thanks!Not really

This article posted in Documentation, GDPR Cookie Consent, Knowledge Base, Multilingual Support and tagged Banner translation, ePrivacy Directive, gdpr, GDPR compliance, GDPR Cookie Consent, Polylang

Written by

Shesna

Shesna is a technical content writer for WebToffee. She is familiar in working closely with the SMEs to break down complex technical information into a concise, easy to understand manner.

Comments (44)

  1. mahwish

    September 21, 2022

    hi,
    There are some strings that are not available to translate with polylang, like, show more, show less, enabled, disabled, save and accept.

    how I can translate them on the multilingual website?

    Reply
    • Mark

      Mark

      November 1, 2022

      Hi Mahwish,

      Greetings from Webtoffee!

      The texts: show more, show less, enabled, disabled, save and accept, etc are static texts in the plugin UI. These texts are translated automatically by the plugin based on your site’s default language. When a site visitor chooses a language from the language switcher on the front end of the site, the plugin will recognize the language and loads the translations for those texts automatically.

      Reply
  2. Julien

    September 7, 2022

    Hello to the Webtoffee team,

    Thank you for this tutorial.

    I have one of my multilingual sites that uses your Cookies plugin as well as Polylang.

    My problem is that all the cookies (encoded in the WordPress admin) are only present on the English version but not on the other languages. Everything is well translated in the “strings translations” as well as the “cookies list”. The ID fields are also in place in each language.

    While browsing the plugin code, I noticed that some functions like cookielawinfo_table_shortcode() takes WPML into account by forcing the system to take the EN cookies but not for the Polylang case.

    When inspecting the source code of my homepages, the English version does take the “cookielist” with the correct ID number and title. In the other languages, the Title is well translated but uses the English ID.

    Is it possible to tell me more to solve my problem?

    Thank you very much.

    Reply
    • Mark

      Mark

      November 1, 2022

      Hi Julien,

      Greetings from Webtoffee!

      The categories should display in all languages in the cookie settings popup when the translations of cookie categories and cookies are completed successfully. However, if you are facing an issue with this we need to debug your website. Could you please contact our support from here so that we can assist you better.

      Reply
  3. Olivier

    April 26, 2022

    Hello
    Thanks for this tutorial. I am using Polylang with linkotek extension and I am not able to translate categories and description. However, when I try to put the same slug for two differents languages, it changes the name putting “-2” at the end of the slug and notifies that the slub is already used by another category.
    Thanks in advance for your help

    Reply
    • Mark

      Mark

      May 2, 2022

      Hi Olivier,

      We can help with that.

      Are you sure that you are editing the slug from the Quick Edit section and not from the Category edit page?

      Reply
  4. Jamie

    January 31, 2022

    Hi,
    I was trying to customize the “read more” button in the “Customize Buttons” section. In the “URL or page” field, I entered my created page which is in English. And I used Polylang to create a Chinese page and the 2 pages are well linked by Polylang.
    However, when the language of my site is changed to Chinese, the “Read more” button is unable to open the linked Chinese page. It goes to the English page instead.
    Have I missed out any setting? Or the read more button URL/Page link is simply not supporting multilingual?

    Thanks!

    Reply
    • Mark

      Mark

      February 2, 2022

      Hi Jamie,

      We are here to assist.

      Kindly ensure that you have set the translated page URLs under the String Translation page > button_2_url

      Reply
  5. Marine

    July 9, 2021

    Hello,
    Tx for this tutorial. I’ve managed to set up all the translations and the categories with the same slug but even if I run a new scan, the english count stays at 0 (my main language is french). So in the english popup, I have Intro, categories but no cookie listed inside.
    How can I fix this?
    Txxxxxxxx

    Reply
    • Mark

      Mark

      July 12, 2021

      Hi Marine,

      Good to know that you are almost through with the setup. Please refer the article here to know how to list the cookies in the settings popup.

      Reply
  6. ars

    May 28, 2021

    Hello Same issu here, with polylang
    when you switch from french to english there is only french text.

    Could you please repair this ?

    Thank you

    Reply
    • Mark

      Mark

      June 1, 2021

      Please submit a ticket here with site details included.

      Reply
  7. NINA

    April 22, 2021

    Hi there,
    I’m using Polylang and I’m having issues with the translation.
    When I filter to webtoffee-gdpr-cookie…., all the strings are listed, both in English and French. On the English section, it is written in French. When I change it to English version and save my modifications, the page refreshes and all my modifications are gone.
    Can you please assist ?

    Thanks

    Reply
    • Mark

      Mark

      May 2, 2021

      Hi Nina,

      Please submit a ticket via support forum so that we can assist you better.

      Reply
  8. AL

    March 15, 2021

    Hello, I am having issues with showing the cookie list, they can only appear in English, but not in the second language (German). I have set both category slugs to be the same and it still won’t work, e.g. both languages have the slug “analytics” etc., and I have tried many different combinations and changing the category names in each cookie, leaving it blank etc. but it still won’t show. Could anyone help me and does it still work in the latest WordPress version?

    Reply
    • AL

      May 7, 2021

      Hello,
      could it be that the cookie list isn’t shown in privacy overview in other languages, because there is no way to translate the “Cookie”, “Duration” and “Description” from the header of cookie lists? These strings are not shown in polylang plug-in.

      Reply
      • Mark

        Mark

        May 8, 2021

        Hi Al,

        The mentioned strings are already available via the translation files in the plugin. Kindly mention which language are you translating to.

        Reply
  9. Ramona

    February 20, 2021

    Hi,
    I use the free version and polylang.
    In my strings there are missing the possibilities to translate the “save&accept” button, the “show more” link, and the “Always Enabled” and “Disabled”

    For GERMAN, the translations of the “show more” link, and the “Always Enabled” and “Disabled”, are done automatic, but not for FRENCH.

    How can I solve this?
    Best regards

    Reply
    • Mark

      Mark

      February 26, 2021

      Hi Ramona,

      We have already added the translation and are now waiting for approval from wordpress translation moderators. Once that is done, it will appear in your site.

      Reply
      • Ramona

        March 28, 2021

        Hi Mark,
        There is still no French translations showing up for the “show more” link, and the “Always Enabled” and “Disabled”. :-/
        BR
        Ramona

        Reply
        • Andreas Grossschopf

          Andreas Grossschopf

          December 16, 2021

          Hi Ramona, I got the same problem in the payed Versoin. How can I change the text to german for the Toggle Button Description and the Save & Accept Button

          Reply
          • Mark

            Mark

            December 28, 2021

            Hi Andreas,

            Both the premium and basic version plugin by default supports German translations for the mentioned button and toggle button description. Please try settings the site language or user profile language to German.

    • Anna Hornyik

      Anna

      February 8, 2022

      Hi,
      I have the free versino and Polylang. I have the same problem, cannot translate Save&Accept button to Hungarian. Can you help me solving this?

      Anna

      Reply
      • Anna Hornyik

        Anna

        February 9, 2022

        For those still seeking a solution for translating this plugin with Polylang, there’s a plugin that helps with Polylang string translations, so you can translate this too with it: https://wordpress.org/plugins/theme-translation-for-polylang/

        Reply
  10. Craioveanu Flavia

    January 6, 2021

    Hi, I cannot find any strings related to webtoffee_gdpr_cookie_consent in my Polylang string translation section. I cannot find those specific strings in Loco Translate either. I’m using GDPR Cookie Consent plugin Version 1.9.5, Polylang Version 2.9.1, and Loco Translate Version 2.5.0.

    Reply
    • Mark

      Mark

      January 9, 2021

      Hi,

      Please look up for cookie-law-info if you are using the free version of the plugin.

      Reply
  11. Miquel Capó

    Miquel Capó

    October 23, 2020

    Polylang does not accept same slug

    Reply
    • Mark

      Mark

      November 3, 2020

      Switch the language from the top banner and then change the slug.

      Reply
  12. Ralf Kolem

    Ralf

    December 21, 2019

    Hi,
    I have a similar problem. Using Polylang I cannot see the GDPR-strings in the List.
    I use Polylang 2.6.8 and GDPR cookie consent 1.8.2
    Is there a solution available in the meantime?
    Thanks.

    Reply
    • Mark

      Mark

      December 24, 2019

      Hi,

      String translation is not supported by Polylang. Please try using LocoTranslate.

      Reply
  13. Jerome DUPONT

    JD

    November 15, 2019

    Hi,
    I translated (in french) cookies list and cookies categories, everything works fine except that the translated “necessary” category is not “always enabled”. How can I fix this?
    Thanks in advance.

    Reply
    • Mark

      Mark

      November 15, 2019

      Hi,

      Please refer to the article to set any custom categories as strictly necessary.

      Reply
  14. Ronald

    October 22, 2019

    Hi,

    When I try to make changes in the string translations and I click ‘save changes’ I get:

    Error occurred: 403 – forbidden

    Apache Server at:

    Can anyone tell me what I’m doing wrong?

    Thanks!

    Reply
    • Mark

      Mark

      October 22, 2019

      Please contact WPML support. They can help you with issue regarding saving the options.

      Reply
      • ronald

        October 22, 2019

        But this has to do with Polylang, I don’t use WPML.

        Reply
        • rmy

          July 20, 2020

          Hi, I got the same problem. Finally I could have it fixed.
          It was a matter of file permissions. I got in touch with the technical service of the host where my website is hosted. The changed the permissions and it worked.
          Hope this helps.

          Reply
    • Chaim

      May 5, 2020

      I get the same error. Did you manage to find the fix?

      Reply
  15. Ralph

    September 2, 2019

    The information is not complete. On top of the “string translations” you will also need to translate all items from the “cookie list” (if you have that populated), otherwise they will not show up in the “privacy overview” pop-up where the user can selectively turn cookies on or off.

    Reply
    • Mark

      Mark

      September 3, 2019

      Hi,

      Thanks for pointing out. We will update accordingly.

      Reply
      • Greg

        September 6, 2019

        And Non-Necessary Cookies section need to translate

        Reply
  16. Jerome

    March 25, 2019

    Hi,
    I don’t see any webtoffee_gdpr_cookie_consent content in string translation.? I just have Widget and wordpress.
    What can I do to get them?
    Best regards

    Reply
    • Mark

      Mark

      March 25, 2019

      Hey,

      Are you sure that you are using Polylang plugin? If yes, please mention which version and also share us the screenshot of the same screen as shown above via our support forum.

      Reply
    • Julio

      July 24, 2019

      I see it as cookie-law-info in string translation, nevertheless, i am having issues with the [cookie_link] not reading correctly the button_2_url translation settings.

      Reply
      • Mark

        Mark

        July 25, 2019

        Hi,

        Please submit a support ticket here with more info regarding the issue. Share screenshot and version info of the plugin installed.

        Reply

Got any query? Please leave a comment or reach out to our support

Cancel reply

Your email address will not be published. Required fields are marked *

We develop awesome WordPress plugins & WooCommerce extensions to help build successful online businesses.

© 2023 WebToffee. All rights reserved.

Our plugins

  • GDPR Cookie Consent
  • PDF Invoices & Packings Slips
  • Product Import Export Plugin
  • User & Customer Import Export
  • Import Export Suite
  • Sequential Order Numbers
  • Smart Coupons for WooCommerce
  • URL Coupons for WooCommerce
  • PayPal Express Checkout
  • Stripe Payment Gateway
  • Subscriptions for Woocommerce
  • Product Catalog Sync for Facebook
  • PrintNode for PDF Invoices
  • Order, coupon, subscriptions for WooCommerce
  • WordPress Backup and Migration
View more +

Get Started

  • Plugins
  • Testimonials
  • Affiliates
  • We're hiring

Help & Support

  • Documentation
  • Documentation (Basic)
  • FAQ
  • Support

Company

  • Terms & Conditions
  • Privacy Policy
  • Refund policy
  • Support policy
  • License Activation

© 2023 WebToffee. All rights reserved.

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies. However you may visit Cookie Settings to provide a controlled consent.
Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of the basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website, to store user preferences and provide you with content and advertisements that are relevant. Such cookies will be stored on your browser but only upon procuring consent.

You will also have the option to opt-out of these cookies should you want to. But opting out of some of these cookies may have an effect on your browsing experience as per the descriptions elucidated against the respective categories below.

Necessary
Always Enabled
The cookies defined under this category are absolutely essential for the website to function. Hence they are loaded by default irrespective if user consent.
CookieDescription
__cfruidCloudflare sets this cookie to identify trusted web traffic.
__stripe_midStripe sets this cookie cookie to process payments.
__stripe_sidStripe sets this cookie cookie to process payments.
cookielawinfo-checkbox-advertisementSet by the GDPR Cookie Consent plugin, this cookie is used to record the user consent for the cookies in the "Advertisement" category .
cookielawinfo-checkbox-analyticsSet by the GDPR Cookie Consent plugin, this cookie is used to record the user consent for the cookies in the "Analytics" category .
cookielawinfo-checkbox-necessarySet by the GDPR Cookie Consent plugin, this cookie is used to record the user consent for the cookies in the "Necessary" category .
cookielawinfo-checkbox-preferencesThis cookie is set by the GDPR Cookie Consent plugin to check if the user has given consent to use cookies under the "Preferences" category.
CookieLawInfoConsentRecords the default button state of the corresponding category & the status of CCPA. It works only in coordination with the primary cookie.
PHPSESSIDThis cookie is native to PHP applications. The cookie is used to store and identify a users' unique session ID for the purpose of managing user sessions on the website. The cookie is a session cookie and is deleted when all the browser windows are closed.
viewed_cookie_policyThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not a user has consented to the use of cookies. It does not store any personal data.
Analytics
Analytics cookies help us understand how our visitors interact with the website. It helps us understand the number of visitors, where the visitors are coming from, and the pages they navigate. The cookies collect this data and are reported anonymously.
CookieDescription
_gaThis cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assigns a randomly generated number to identify unique visitors.
_ga_BQH8MSKD4MThis cookie is installed by Google Analytics.
_gat_gtagIdentification code of website for tracking visits.
_gidThis cookie is installed by Google Analytics. The cookie is used to store information on how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visited in an anonymous form.
_hjAbsoluteSessionInProgressHotjar sets this cookie to detect the first pageview session of a user. This is a True/False flag set by the cookie.
_hjFirstSeenHotjar sets this cookie to identify a new user’s first session. It stores a true/false value, indicating whether it was the first time Hotjar saw this user.
_hjidHotjar cookie. This cookie is set when the customer first lands on a page with the Hotjar script. It is used to persist the random user ID, unique to that site on the browser. This ensures that behavior in subsequent visits to the same site will be attributed to the same user ID.
_hjIncludedInPageviewSampleHotjar sets this cookie to know whether a user is included in the data sampling defined by the site's pageview limit.
_hjIncludedInSampleThis cookie is set to let Hotjar know whether that visitor is included in the sample which is used to generate heatmaps, funnels, recordings, etc.
_hjIncludedInSessionSampleHotjar sets this cookie to know whether a user is included in the data sampling defined by the site's daily session limit.
_hjTLDTestTo determine the most generic cookie path that has to be used instead of the page hostname, Hotjar sets the _hjTLDTest cookie to store different URL substring alternatives until it fails.
CONSENTYouTube sets this cookie via embedded youtube-videos and registers anonymous statistical data.
has_recent_activityThis cookie is used to signal to the code repository website if the user has browsed other website resources during the current session.
tk_aiGathers information for our own first-party analytics tool about how our services are used. A collection of internal metrics for user activity and is used to improve user experience.
tk_lrThis cookie is set by the JetPack plugin on sites using WooCommerce. This is a referral cookie used for analyzing referrer behavior for Jetpack.
tk_orThis cookie is set by the JetPack plugin on sites using WooCommerce. This is a referral cookie used for analyzing referrer behavior for Jetpack.
tk_qsGathers information for our own first-party analytics tool about how our services are used. A collection of internal metrics for user activity and is used to improve user experience.
tk_r3dThe cookie is installed by JetPack. Used for the internal metrics for user activities to improve user experience.
Advertisement
Advertisement cookies help us provide our visitors with relevant ads and marketing campaigns.
CookieDescription
_fbpThis cookie is set by Facebook to deliver advertisements when they are on Facebook or on a digital platform powered by Facebook advertising after visiting this website.
frThe cookie is set by Facebook to show relevant advertisements to the users and measure and improve the advertisements. The cookie also tracks the behavior of the user across the web on sites that have Facebook Pixel or Facebook social plugin.
VISITOR_INFO1_LIVEA cookie set by YouTube to measure bandwidth that determines whether the user gets the new or old player interface.
YSCYSC cookie is set by Youtube and is used to track the views of embedded videos on Youtube pages.
yt-remote-connected-devicesYouTube sets this cookie to store the video preferences of the user using embedded YouTube video.
yt-remote-device-idYouTube sets this cookie to store the video preferences of the user using embedded YouTube video.
Preferences
Preference cookies are used to store user preferences to provide them with content that is customized accordingly. This includes the language of the website or the location of the visitor.
CookieDescription
_gh_sessThis cookie is used to preserve users' states across page requests.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
CookieDurationDescription
_hjSession_137657130 minutesNo description
_hjSessionUser_13765711 yearNo description
_octo1 yearNo description available.
_zendesk_authenticatedpastNo description
_zendesk_sessionsessionNo description available.
_zendesk_shared_sessionsessionNo description available.
edd_wp_session12 hoursNo description available.
logged_in1 yearNo description available.
m2 yearsNo description available.
Save & Accept