The Cookie Law Info plugin adds a subtle banner about cookie law compliance to your website, either in the header or footer. Use WPML to easily translate the content of this message.

 

 Message in original content Message translated to Spanish
wpml info cookie law wpml info cookie law

Contents

Getting started and what to check

Is your site already configured by your developer?

Ensure that the following plugins and options are activated.

Are you setting up WPML yourself?

If so, you need to follow the steps below.

Set up WPML from the WPML -> Languages page. See our WPML Getting Started Guide for a complete reference. The initial three-step setup is simple and self-explanatory, asking you to choose a default language, set of active languages, and language selector. (For starters, choose the footer language selector. You can change this later.)

Next, install and activate the core WPML plugins (WPML Multilingual CMS, WPML String Translation, and WPML Translation Management) followed by other WPML plugins that may depend on them.

Install the Cookie Law Info plugin and define the options.

Making your content translatable using WPML

Go to the WPML ->Theme and plugins localization page and check the first option: Translate themes and plugins using WPML’s String Translation only (don’t load .mo files).

Click on Save.

WPML and Cookie Law Info plugin

WPML translating strings option

 

Next, scroll down to the Strings in the plugins section and select Cookie Law Info from the list. Finally, click on the Scan selected plugins for strings button.

 

wpml and Cookie Law Info

Selecting the right plugin to scan

Translating your Cookie Law Message Bar and Buttons

Once your original message is written on the Cookie Law Info -> Cookie Law Setting page, you will need to translate it. We will translate the Cookie Message and the Accept button of your cookie message as shown below:

wml cookie info law

Your cookie message with the Accept button

1. Go to the WPML -> String Translation page.
2. Use the filter on the top of the page to find the text you want to translate.
3. When you find the relevant string, click on the translations link next to it and add your translated text.

wpml cookie law info

Selecting the right string to scan

4. Finally, choose the Translation is complete option and click Save.

5. Follow the same steps to translate the message itself:

WPML and Cookie Info Law

Translating the message

 

 

Translating the links of the buttons

If you choose to display a Read More button, the user needs to be redirected to a landing page using the correct language.

1. From the Cookie Law Settings page, set up the URL in the default language.
In our example, we use a button called Read More that we link to “https://mylink.co.uk”.

Setting up the URL for the button WPML info law cookie

Setting up the URL for the button

2. Now, go back to the WPML -> String Translation page and search for this URL.

WPML and Cookie Law Info

Searching for the URL to translate

3. Change the URL to the Spanish version, select the checkbox for Translation is complete, and click Save.

Getting help from our support

We have supporters in our forum who are available six days a week to help you. They are trained in how to use WPML with Kalium. If you are working with a developer for your site, please use our Translation support forum to get help with translating your site’s content.

If you are setting up the site and WPML yourself, please use our Technical support forum.