Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem: How to translate the message in the plugin eu cookie law. Solution: The EU cookie law plugin is fully translatable, and the standard procedure to translate it is this:

The plugin text is added in the default language of WPML/your site.

In that case, in Settings > EU Cookie Law you have to translate the text to the fields Bar Message, More Info Text and Accept Text in the default language of the site.

If your default language is english, you add english text, if your default / main language is another language you add that text.

Next you will have scanned the plugins texts with WPML > Theme and plugisn localization module.

If your default language is not english, you have to uncheck the option to Assume that the original language of all strings is English before the scan.

After scanning the strings, you go to String Translation, where you will find the strings of the message to translate.

If you have scanned the plugin assuming all strings are english, but your site is not english, the message may not show in the frontend.

In that case check that the messages you added to the plugin and ensure they are in your desired language.

Now rescan the plugins strings in WPML > Theme and plugins localization and do NOT assume the strings are in english.

If you now go to String Translation and search for your messages you will see that these strings are now set to your desired language and that the text domain will be "admin_texts_peadig_eucookie".

If you then translate these strings to english the correct messages will appear for the corresponding languages and pages.

Relevant Documentation:

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by Jacek 3 years ago.

Assigned support staff: Cristina.

Author Posts
November 15, 2017 at 7:40 am #1430910

Jacek

Hello,

I need to translate eu cookie law mesage.
I translated this by string translation, but it not help.
I see mesage in Polish language, even if im on ENGLISH part of the website

My website: domlegend.pl

Thanks for a tip

November 16, 2017 at 4:15 pm #1432990

Cristina

Hello Jacek,

thanks for contacting and sorry for any delays in the answer.

The EU cookie law plugin is fully translatable, and the standard procedure to translate it is this:

The plugin text is added in the default language of WPML/your site.

In that case, in Settings > EU Cookie Law you have to the text to the fields Bar Message, More Info Text and Accept Text in the default language of the site.

If your default language is english, you add english text, if your default / main language is polish you add polish text.

Next you will have scanned the plugins texts with WPML > Theme and plugisn localization module.
If your default language is polish, you have to uncheck the option to Assume that the original language of all strings is English before the scan.

After scanning the strings, you go to String Translation, where you will find the strings of the message to translate.

Now in your sreenshot at this stage the string is showing an english flag, so WPML assumes that the text you have provided ther is english and you have correctly added the polish text.

But if your site is polish, this string should have polish as original language and the translated language should be english.

So this is the most probable cause for your problem.

You can do this:

Check that the messages you added to the plugin and ensure they are in polish.

Now rescan the plugins strings in WPML > Theme and plugins localization and do NOT assume the strings are in english.

If you now go to String Translation and search for your polish messages you will see that these strings are now set to polish and that the text domain will be "admin_texts_peadig_eucookie".

If you then translate these strings to english the correct messages will appear for the corresponding languages and pages.

Kind regards,
Cristina

November 20, 2017 at 8:34 am #1435371

Jacek

Thank You Cristina,
it helped 🙂