Borlabs Cookie supports WPML and Polylang. WPML offers some advantages over Polylang and the setup with WPML is easier than with Polylang.
Before you start setting up Borlabs Cookie and using WPML, please read the WPML Settings section on this page.
Cookies from WPML and Polylang
The cookies of WPML and Polylang are technically necessary and must not be blocked.
Working with WPML and Polylang
Using WPML or Polylang you can configure Borlabs Cookie for each language individually.
To do this, select the language for which you want to configure Borlabs Cookie from the toolbar at the top of the page. You cannot select the All Languages option for Borlabs Cookie.
Make sure that the correct flag icon for the language for which you want to configure Borlabs Cookie is displayed on the right side of the Borlabs Cookie menu bar.
Borlabs Cookie stores all texts and settings in one object, which is why, for example, under Cookie Box in the texts you will not see the texts of the selected language.
In the case of WPML, you can activate the setting Edit language in your WordPress user profile. WordPress will then be loaded in the language you selected from the toolbar above. Then empty a text field in Borlabs Cookie and click Save to load the default text of the selected language. Borlabs Cookie is available in English and German.
If you use Polylang, you have to do the translation manually. Just click on e.g. Cookie Box, scroll down and change the text in the fields. You can find more text under Cookies, Cookie Groups and Content Blocker in the respective entries.
To make working with WPML and Borlabs Cookie as comfortable as possible, we recommend the setting to change the language of the admin area depending on the set editing language.
Dazu klicke in WordPress links auf Benutzer > Dein Profil und aktiviere das Häkchen für Admin-Sprache als Bearbeitungssprache einstellen.
To do this, click in WordPress on the left side on Users > Your Profile and activate the checkbox for Set admin language as editing language.
Working with several languages
Borlabs Cookie can link different languages based on the ID of the Cookies, Cookie Groups and Content Blockers. To do this, the ID must be identical across all languages.
The selected Cookie Group is not available in the current language.
If you receive this message, you have tried to change the language while in the edit mode of a Cookie, Cookie Group or Content Blocker and the ID is not yet available in the target language.
You can now either save the entry to create the ID for the selected language or click on the Dashboard or Help & Support to have Borlabs Cookie create the default entries (see next section).
STANDARD COOKIE GROUPS, CONTENT BLOCKER AND COOKIES MISSING
By default, Borlabs Cookie creates the 4 Cookie Groups Essential, External Media, Marketing and Statistics, the Cookie Borlabs Cookie, and 8 Content Blockers.
If you add a new language, these default entries are missing, as shown in the picture below.
To fix the problem, simply click on Dashboard or Help & Support. Borlabs Cookie detects the missing default entries and creates them.
The status display of Default Content Blocker, Default Cookie Groups and Default Cookies show you that the default entries have been created.
If you now click back on e.g. Cookie Groups you will see the 4 standard groups.
NOTE FOR BORLABS COOKIE FROM VERSION 2.1
If the standard entries cannot be created, make sure that the language code consists of only 2 characters (ISO 639-1, see https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes ), e.g. pt and not pt-pt.
Starting with version 2.1 of Borlabs Cookie, language codes longer than 2 characters are also supported. To do this, the following entry must be made in wp-config.php:
TEXTS IN THE WRONG LANGUAGE
If the texts on the English page are in German or vice versa, you can easily correct this.
If WordPress is loaded in the language in which you want to set up Borlabs Cookie, you can select the reset option under Cookie Groups, Cookies and Content Blocker in the overviews at the very bottom to have all default entries created in the correct language.
Under Cookie Box, simply empty all fields in the text settings and click on save. Afterward, the texts will be loaded in the current language.