You can use Real Cookie Banner on websites with multiple languages. We support Weglot as well as WPML, Polylang and TranslatePress as multi-language plugins. We will show you how to set up Real Cookie Banner for multiple languages and what settings you can edit per language.
You can install Real Cookie Banner first and then Weglot in your WordPress or in reverse order. In both cases Real Cookie Banner will be initialized automatically, so you can translate it with Weglot.
In case you install Weglot after Real Cookie Banner, where you have already created services, content blockers etc., please make sure you see the cookie banner in the frontend at least once. This is necessary for Weglot to recognize and index all strings that should be translated.
Translations with Weglot
Weglot relies on so-called string translations. This means that e.g. services and content blockers are not duplicated for a secondary language, but only the individual text blocks are translated. This allows an easy translation of any text of almost any WordPress plugin, but changes to settings per language can only be done if the respective plugin supports this.
Below we explain in more detail which settings you can set per language and which for all languages.
All texts are automatically machine translated by Weglot, as you are used to. Please note: Due to a missing technical interface of Weglot we can’t import translated and optimized legal texts for your cookie banner, cookies/services and content blocker into the Weglot translations (only English texts come from Real Cookie Banner). Weglot’s automatic translations can be incorrect because of the special legal context. Therefore, we strongly recommend that you check each translation to ensure safe informed consent on your website in all languages of your website.
Newly created services and content blockers are always created for all languages of your website. Translations will be automatically generated by Weglot.
If you delete a services or content blocker in one language, it will be automatically deleted for the other languages.
In the WordPress Customizer you can change the appearance of the cookie banner. All texts you can change will be changed for the primary language of your website. To edit the translated texts, please use the standard Weglot translation editor. All other settings apply to all languages.