How to translate the cookie alert

The plugin Cookies CK has been designed multilanguage, this means that you can translate it like you want in any language, but also change the message that is displayed.

 

How to create my own language

First thing that you can check is the list of available existing translations : See all translations for Cookies CK

Then you can create your own language in the path

[root]/administrator/language

For each language you must have a folder here. Example : en-GB for english, fr-FR for french, de-De for german ...

You can paste the .ini files, or create your own files by copying the en-GB files

en-GB.plg_system_cookiesck.ini
en-GB.plg_system_cookiesck.sys.ini

into your own language (example with german) to put in the correct language folder

de-DE.plg_system_cookiesck.ini
de-DE.plg_system_cookiesck.sys.ini

 

The full path of your files in this example will be

[root]/administrator/language/de-DE/de-DE.plg_system_cookiesck.ini

 

Override the existing language

Joomla! has a language override system included in the core. Go in your admin >> Extensions >> Language >> Overrides

language override admin menu

Then click on the New button to create your override. Here you must set 2 things :

In the plugin Cookies CK, the message that is shown in the bar is rendered using the string COOKIESCK_INFO

See how you can write your own message here

language override example

 

Download Cookies CK