Support » Plugin: Beautiful Cookie Consent Banner » Multilingual ?

  • Resolved totoro-paris

    (@totoro-paris)


    Hello there
    is your plugin Multilingual ?
    thxs for your answer

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Nikel Schubert

    (@nikelschubert)

    Hi @totoro-paris,

    what the user sees in the frontend in the banner is totally customisable in any language, as all texts can be adapted.

    The admin area is at the moment only available in english.

    Regards
    Nikel

    Thread Starter totoro-paris

    (@totoro-paris)

    ok – so not translatable with WPML or Polylang…

    Plugin Author Nikel Schubert

    (@nikelschubert)

    @totoro-paris unfortunately not. Would you be interested in doing the translation in your language? because then I could prepare the plugin accordingly.

    Regards

    Thread Starter totoro-paris

    (@totoro-paris)

    i changed the texts in french but the website is french + English
    So i can’t have both languages with your plugin

    Plugin Author Nikel Schubert

    (@nikelschubert)

    Yes, unfortunately it won’t work with two languages at the moment.

    I found a solution…

    You need these plugins:
    WPML Multilingual CMS.
    WPML Shortcodes.

    After, in the “Beautiful and responsive cookie consent” plugin, in the “class/class-nsc_bar_frontend.php” file, in line 24, change:

    $this->json_config_string = $nsc_bar_banner_config->nsc_bar_get_banner_config_string();

    by:

    $this->json_config_string = do_shortcode( stripslashes( $nsc_bar_banner_config->nsc_bar_get_banner_config_string() ) );

    Finally, you can use the [wpml_if] shortcode in the “Beautiful and responsive cookie consent” plugin settings (in all the fields of the “Text” tab and in the “Cookie Type Name” fields of the “Compliance & Behaviour” tab, also.

    For example:

    [wpml_if lang=en]Accept all cookies[/wpml_if][wpml_if lang=fr]Accepter tous les cookies[/wpml_if]

    I expended a lot of hours to achieve this. I hope it helps.

    Regards.

    UPDATE:

    Forget about the change in the line 24 of “class/class-nsc_bar_frontend.php” file, go to line 95 of the same file and change:

    return $json_config_string_with_js;

    by:

    return do_shortcode( stripslashes( $json_config_string_with_js ) );

    Plugin Author Nikel Schubert

    (@nikelschubert)

    Hi @cesasrgalway, thanks a lot for sharing. I will add this to the plugin as soon as possible. Would you like to be mentioned as contributor?

    Kind Regards
    Nikel

    Cèsar Martí

    (@cesasrgalway)

    Hi @nikelschubert. It’s not necessary. Thanks anyway.

    Hello,

    First of all – thank you for your wonderful work,

    For easier content management, I would recommend to load a separate settings object for each language, if languages are present. This would allow to declare what to do with the cookie consent window in each language, which, from my opinion is the best approach.

    Personally I would implement support only for WPML, since it is more popular. So I’d – 1) Detect if WPML is present, 2) Get a list of available languages, 3) Save and load different settings for each language code 4) If wpml is not present, load settings the old way.

    OFFTOPIC: Background color for the consent window does not allow rgba or eight character hex codes and therefore it can’t be made semi-transparent. I would advise to change this too.

    For now, I will customize your plugin so it fits my needs, but I’d appreaciate much, as many other users of your plugin, if you could find some time and implement these changes.

    Thanks,
    Regards,
    Edgars from WEBHAUS

    • This reply was modified 10 months, 1 week ago by WEBHAUS.
    • This reply was modified 10 months, 1 week ago by WEBHAUS.

    I’m also interested in using this plugin on mutli-lingual sites. I usually don’t use WPML but Qtranslate-XT.

    A quick way to prepare this plugin for handling multiple languages on the front-end would be to run the strings through filters (apply_filter…) before display. This would allow other theme/plugin developers to make any changes such as translation. This is something I would be happy with 🙂

    Plugin Author Nikel Schubert

    (@nikelschubert)

    Hi, i am currently working on a ML version. It will be a premium addon for a small fee. I hope you understand, that this is necessary for further improvement and development oft this plugin. Will be released this or next week.

    Regards.

    Plugin Author Nikel Schubert

    (@nikelschubert)

    Hi, i am happy to announce that the multilanguage extension is now live. It works for all version > 2.4: https://beautiful-cookie-banner.com/documentation/configure-cookie-consent-banner-for-multilanguage-support/

    If you use I am very happy to hear some feedback.

    Regards

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Multilingual ?’ is closed to new replies.