The CookieYes 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 language||Message translated to German|
- Getting started and what to check
- WPML translation tools
- Making your content translatable using WPML
- Translating your Cookies Message Bar & Buttons
- Getting help from our support
Ask them to install and configure core WPML plugins (WPML Multilingual CMS, WPML String Translation, and WPML Translation Management).
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 CookieYes plugin and define the options.
WPML offers two translation editors you can use for translating your site’s content:
- WPML classic translation editor (CTE).
- WPML Advanced Translation Editor (ATE) offers affordable automatic translation, a glossary, spell checker, and more!
Besides translating your site content yourself, you can also:
- Send your content for translation to a professional translation service.
- Create your own team of local translators from the Translation Roles tab in Translation Management and assign translation jobs to them.
Go to the WPML → Theme and plugins localization page, scroll down to the Strings in the plugins section and select GDPR Cookie Consent from the list. Finally, click on the Scan selected plugins for strings button.
Once you’ve set your consent message on the GDPR Cookie Consent → Settings page, you will need to translate it. We will translate the main Cookie Message and the Accept All button as shown below:
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 plus symbol under the corresponding language you want to translate first. A dialogue box will open where you can add the translation. Once you’ve completed the translation, simply click on the tabbed arrow for the next language to save and move on. If there are no more translations to add, click outside of the dialogue box to automatically save and exit the box.
4. Follow the same steps to translate the main Cookie Consent message:
If you choose to display a Read More button, the user needs to be redirected to a landing page via a link in the correct language.
1. Go to the GDPR Cookie Consent → Settings page, click the Customise Buttons tab, and then the Read more sub-tab. Set the URL in the default language. In our example, our Read More button links to “https://mylink.co.uk”.
2. Now, go back to the WPML → String Translation page and search for this button’s string.
3. Click the plus symbol and translate the text just like any other string.
4. Repeat these steps for translating the link’s URL, remembering to add the necessary language extension, eg, “de” for German.
In case you need help translating your site built using CookieYes and WPML, visit WPML’s support forum.