Home Forums Template Support Cookies consent french translation

Viewing 4 posts - 1 through 4 (of 4 total)

  • malex
    Subscriber

    Hello, i have problems with cookies consent with accent in french :
    “Nous utilisons des cookies afin de vous offrir la meilleure expérience sur notre site web et particulièrement pour nous permettre de réaliser des statistiques de visites. En poursuivant votre navigation sur ce site, vous acceptez lâ??utilisation de ces cookies. “

    I can i resolve this ?


    malex
    Subscriber

    I’ve made a mistake in my post (“how can i…”) no way to modify this .. ?


    Michael
    Subscriber

    Hi Malex,

    Just replace the code from cookieconsent.html.twig with the code below

    {% extends '@nucleus/partials/particle.html.twig' %}
    
    {% block particle %}
        {% assets in 'head' with {priority: 0} %}
        <link rel="stylesheet" href="{{ url('gantry-theme://css/cookieconsent.min.css') }}"/>
        {% endassets -%}
    
        {% set color = particle.color %}
        {% scripts in 'footer' with {priority: 10} %}
        <script src="{{ url('gantry-theme://js/cookieconsent.min.js') }}"></script>
        <!-- Begin Cookie Consent plugin by Silktide - http://silktide.com/cookieconsent -->
        <script>
            window.addEventListener("load", function() {
                window.cookieconsent.initialise({
                    "palette": {
                        "popup": {
                            "background": "{{color.banner == "" ? "#000000" : color.banner}}",
                            "text": "{{color.bannertext == "" ? " #ffffff" : color.bannertext}}"
                        },
                        "button": {
                            {% if particle.layout == "wire" %}
                              "background": "transparent",
                              "border": "{{color.buttontext == "" ? "#000000" : color.buttontext}}",
                            {% else %}
                              "background": "{{color.button == "" ? "#f1d600" : color.button}}",
                            {% endif %}
                            "text": "{{color.buttontext == "" ? "#000000" : color.buttontext}}"
                        }
                    },
                    {% if (particle.layout != "default") and (particle.layout != "wire") %}
                      "theme": "{{particle.layout}}",
                    {% endif %}
                    {% if particle.position != "default" %}
                      {% if particle.position == "top2" %}
                        "position": "top",
                        "static": true,
                      {% else %}
                        "position": "{{particle.position}}",
                      {% endif %}
                    {% endif %}
                    "content": {
                        "message": "{{particle.message|e('js')}}",
                        "dismiss": "{{particle.dismiss}}",
                        "link": "{{particle.readmore}}",
                        {% if particle.policy != "" %}
                          "href": "{{particle.policy}}"
                        {% endif %}
                    }
                })
            });
        </script>
    
        <!-- End Cookie Consent plugin -->
        {% endscripts %}
    {% endblock %}
    

    Thank you


    Tony
    Moderator

    Hi Malex,

    You can edit the post by clicking the EDIT link (appear in the left corner). If you still face the issue with editing topic, please let me know.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

JoomLead Gantry5 Particles 2.2.10 released, new features, bug fixes and more Learn more
Flash Sale. Get Up to 25% Off - Coupon: FLASH25 Shop Now