Support » Plugin: Slash Admin » Slash Admin Cookie and Spinner text translations WPML

  • Hello,

    I’m just getting started with WPML (normally use Polylang) and wanted to translate the cookie consent message and the spinner text:

    Show EU Cookie Law consent message (check screenshots about available options). Since v.3.0 it also supports WPML for different message per language.

    Sadly there’s no tutorial for this, just a hint within Slash Admin:

    Retrieve the box message form from your “Read more” page’s excerpt instead of the plugin’s message field. You need to enable excerpt support to pages from the “Miscellaneous” section below. Check this option if you use WPML and you want to have different consent messages per language.

    Did it that way for the cookie text but now I can’t format it anymore.
    In SA e.g. <br /> was supported and WordPress also says that

    you may use (some) HTML formatting


    Did also test <br> instead of <br /> but didn’t work either.

    So I still need translatable AND 8basically) formatable multilingual cookie text and would like to translate the spinner text also.

    How to do that??
    Thank you in advance for your help

Viewing 1 replies (of 1 total)
  • Hi,

    The plugin’s consent message clears the excerpt from formatting, in order to only keep the text, that’s why your markup doesn’t work. If you really need it, you can go to /inc/cookie-law.php and on line 29 change
    $excerpt = wp_strip_all_tags( $get_excerpt, true );
    $excerpt = $get_excerpt;

    As for the spinner text, I’m afraid that currently it cannot be translated.

Viewing 1 replies (of 1 total)
  • The topic ‘Slash Admin Cookie and Spinner text translations WPML’ is closed to new replies.