Kaynağa Gözat

Récupération des commits 3a073633e883705ef3f5dc49b5cc96214c4afe02 et 09db2562a5fb1d06379f5618d0636abdcd0c0ca8

Luc MULLER 4 yıl önce
ebeveyn
işleme
b268e62532

+ 2 - 0
lang/tarteaucitron.bg.js

@@ -42,6 +42,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
     
     
     "fallback": "е изключен.",
     "fallback": "е изключен.",
+    "allowed": "Позволен",
+    "disallowed": "Забранено",
 
 
     "ads": {
     "ads": {
         "title": "Рекламодатели",
         "title": "Рекламодатели",

+ 2 - 0
lang/tarteaucitron.ca.js

@@ -42,6 +42,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
     
     
     "fallback": "està deshabilitat.",
     "fallback": "està deshabilitat.",
+    "allowed": "Permès",
+    "disallowed": "Desautoritzat",
 
 
     "ads": {
     "ads": {
         "title": "Xarxa de publicitat",
         "title": "Xarxa de publicitat",

+ 2 - 0
lang/tarteaucitron.cn.js

@@ -40,6 +40,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
 
 
     "fallback": "已禁用。",
     "fallback": "已禁用。",
+    "allowed": "允许的",
+    "disallowed": "不允许的",
 
 
     "ads": {
     "ads": {
         "title": "广告组",
         "title": "广告组",

+ 2 - 0
lang/tarteaucitron.cs.js

@@ -42,6 +42,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
     
     
     "fallback": "je vypnutý.",
     "fallback": "je vypnutý.",
+    "allowed": "povoleno",
+    "disallowed": "nepovoleno",
 
 
     "ads": {
     "ads": {
         "title": "Reklamní síť",
         "title": "Reklamní síť",

+ 2 - 0
lang/tarteaucitron.da.js

@@ -43,6 +43,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
 
 
     "fallback": "er deaktiveret.",
     "fallback": "er deaktiveret.",
+    "allowed": "tilladt",
+    "disallowed": "ikke tilladt",
 
 
     "ads": {
     "ads": {
         "title": "Annonceringsnetværk",
         "title": "Annonceringsnetværk",

+ 2 - 0
lang/tarteaucitron.de.js

@@ -42,6 +42,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
     
     
     "fallback": "ist deaktiviert.",
     "fallback": "ist deaktiviert.",
+    "allowed": "erlaubt",
+    "disallowed": "nicht erlaubt",
 
 
     "ads": {
     "ads": {
         "title": "Werbenetzwerke",
         "title": "Werbenetzwerke",

+ 2 - 0
lang/tarteaucitron.el.js

@@ -42,6 +42,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
     
     
     "fallback": "είναι απενεργοποιημένο.",
     "fallback": "είναι απενεργοποιημένο.",
+    "allowed": "επιτρέπεται",
+    "disallowed": "απαγορεύεται",
 
 
     "ads": {
     "ads": {
         "title": "Διαφημιστικό Δίκτυο",
         "title": "Διαφημιστικό Δίκτυο",

+ 2 - 0
lang/tarteaucitron.en.js

@@ -43,6 +43,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
     
     
     "fallback": "is disabled.",
     "fallback": "is disabled.",
+    "allowed": "allowed",
+    "disallowed": "disallowed",
 
 
     "ads": {
     "ads": {
         "title": "Advertising network",
         "title": "Advertising network",

+ 2 - 0
lang/tarteaucitron.es.js

@@ -42,6 +42,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
     
     
     "fallback": "está deshabilitado.",
     "fallback": "está deshabilitado.",
+    "allowed": "permitido",
+    "disallowed": "rechazado",
 
 
     "ads": {
     "ads": {
         "title": "Red de publicidad",
         "title": "Red de publicidad",

+ 2 - 0
lang/tarteaucitron.fi.js

@@ -43,6 +43,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
    
    
     "fallback": "hylätty.",
     "fallback": "hylätty.",
+    "allowed": "sallittu",
+    "disallowed": "kielletty",
 
 
     "ads": {
     "ads": {
         "title": "Mainosverkosto",
         "title": "Mainosverkosto",

+ 2 - 0
lang/tarteaucitron.fr.js

@@ -44,6 +44,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
     
     
     "fallback": "est désactivé.",
     "fallback": "est désactivé.",
+    "allowed": "autorisé",
+    "disallowed": "interdit",
 
 
     "ads": {
     "ads": {
         "title": "Régies publicitaires",
         "title": "Régies publicitaires",

+ 2 - 0
lang/tarteaucitron.hu.js

@@ -43,6 +43,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
     
     
     "fallback": "letiltott.",
     "fallback": "letiltott.",
+    "allowed": "megengedett",
+    "disallowed": "nem engedélyezett",
 
 
     "ads": {
     "ads": {
         "title": "Reklámhálózat",
         "title": "Reklámhálózat",

+ 2 - 0
lang/tarteaucitron.it.js

@@ -42,6 +42,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
     
     
     "fallback": "è disattivato",
     "fallback": "è disattivato",
+    "allowed": "permesso",
+    "disallowed": "non consentito",
     
     
     "ads": {
     "ads": {
         "title": "Regie pubblicitarie",
         "title": "Regie pubblicitarie",

+ 2 - 0
lang/tarteaucitron.ja.js

@@ -43,6 +43,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
     
     
     "fallback": "is disabled.",
     "fallback": "is disabled.",
+    "allowed": "許可",
+    "disallowed": "許可されていません",
 
 
     "ads": {
     "ads": {
         "title": "Advertising network",
         "title": "Advertising network",

+ 2 - 0
lang/tarteaucitron.lv.js

@@ -43,6 +43,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
     
     
     "fallback": "letiltott.",
     "fallback": "letiltott.",
+    "allowed": "atļauts",
+    "disallowed": "nav atļauts",
 
 
     "ads": {
     "ads": {
         "title": "Reklámhálózat",
         "title": "Reklámhálózat",

+ 2 - 0
lang/tarteaucitron.nl.js

@@ -32,6 +32,8 @@ tarteaucitron.lang = {
     "credit": "Cookie manager mogelijk gemaakt door tarteaucitron.js",
     "credit": "Cookie manager mogelijk gemaakt door tarteaucitron.js",
     
     
     "fallback": "is uitgeschakeld.",
     "fallback": "is uitgeschakeld.",
+    "allowed": "toegestaan",
+    "disallowed": "niet toegestaan",
 
 
     "toggleInfoBox": "Toon/verberg informatie over cookie opslag",
     "toggleInfoBox": "Toon/verberg informatie over cookie opslag",
     "title": "Cookies beheer paneel",
     "title": "Cookies beheer paneel",

+ 2 - 0
lang/tarteaucitron.no.js

@@ -43,6 +43,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
 
 
 	"fallback" : "er skrudd av.",
 	"fallback" : "er skrudd av.",
+	"allowed": "tillatt",
+    "disallowed": "ikke tillatt",
 
 
 	"ads"      : {
 	"ads"      : {
 		"title"   : "Annonsenettverk",
 		"title"   : "Annonsenettverk",

+ 2 - 0
lang/tarteaucitron.oc.js

@@ -44,6 +44,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
     
     
     "fallback": "es desactivat.",
     "fallback": "es desactivat.",
+    "allowed": "allowed",
+    "disallowed": "disallowed",
 
 
     "ads": {
     "ads": {
         "title": "Regias publicitàrias",
         "title": "Regias publicitàrias",

+ 2 - 0
lang/tarteaucitron.pl.js

@@ -42,6 +42,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
     
     
     "fallback": "jest nieaktywna.",
     "fallback": "jest nieaktywna.",
+    "allowed": "dozwolony",
+    "disallowed": "niedozwolone",
 
 
     "ads": {
     "ads": {
         "title": "Sieć reklamowa",
         "title": "Sieć reklamowa",

+ 3 - 0
lang/tarteaucitron.pt.js

@@ -41,6 +41,9 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
 
 
     "fallback": "está desativado.",
     "fallback": "está desativado.",
+    "allowed": "permitido",
+    "disallowed": "não permitido",
+    
     "ads": {
     "ads": {
         "title": "Rede de anúncios",
         "title": "Rede de anúncios",
         "details": "As redes de anúncios podem gerar receitas com a venda de espaço publicitário no site."
         "details": "As redes de anúncios podem gerar receitas com a venda de espaço publicitário no site."

+ 2 - 0
lang/tarteaucitron.ro.js

@@ -42,6 +42,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
     
     
     "fallback": "este dezactivat.",
     "fallback": "este dezactivat.",
+    "allowed": "permis",
+    "disallowed": "nepermis",
 
 
     "ads": {
     "ads": {
         "title": "Rețea de publicitate",
         "title": "Rețea de publicitate",

+ 2 - 0
lang/tarteaucitron.ru.js

@@ -43,6 +43,8 @@ tarteaucitron.lang = {
     
     
     
     
     "fallback": "Деактивирован.",
     "fallback": "Деактивирован.",
+    "allowed": "разрешается",
+    "disallowed": "запрещено",
 
 
     "ads": {
     "ads": {
         "title": "Рекламная сеть",
         "title": "Рекламная сеть",

+ 2 - 0
lang/tarteaucitron.se.js

@@ -42,6 +42,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
 
 
     "fallback": "är ur funktion.",
     "fallback": "är ur funktion.",
+    "allowed": "tillåten",
+    "disallowed": "tillåtet",
 
 
     "ads": {
     "ads": {
         "title": "Annonsnätverk",
         "title": "Annonsnätverk",

+ 2 - 0
lang/tarteaucitron.sk.js

@@ -43,6 +43,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
     
     
     "fallback": "je zakázané.",
     "fallback": "je zakázané.",
+    "allowed": "povolený",
+    "disallowed": "nepovolený",
 
 
     "ads": {
     "ads": {
         "title": "Reklamná sieť",
         "title": "Reklamná sieť",

+ 2 - 0
lang/tarteaucitron.sv.js

@@ -42,6 +42,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
 
 
     "fallback": "är ur funktion.",
     "fallback": "är ur funktion.",
+    "allowed": "dovoljeno",
+    "disallowed": "nedovoljeno",
 
 
     "ads": {
     "ads": {
         "title": "Annonsnätverk",
         "title": "Annonsnätverk",

+ 2 - 0
lang/tarteaucitron.tr.js

@@ -44,6 +44,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
     
     
     "fallback": "devre dışı.",
     "fallback": "devre dışı.",
+    "allowed": "izin verildi",
+    "disallowed": "izin verilmeyen",
 
 
     "ads": {
     "ads": {
         "title": "Reklam yönetimi",
         "title": "Reklam yönetimi",

+ 2 - 0
lang/tarteaucitron.vi.js

@@ -43,6 +43,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
 
 
     "fallback": "tắt.",
     "fallback": "tắt.",
+    "allowed": "được phép",
+    "disallowed": "không được phép",
 
 
     "ads": {
     "ads": {
         "title": "Mạng quảng cáo",
         "title": "Mạng quảng cáo",

+ 2 - 0
lang/tarteaucitron.zh.js

@@ -40,6 +40,8 @@ tarteaucitron.lang = {
     "icon": "Cookies",
     "icon": "Cookies",
 
 
     "fallback": "已禁用。",
     "fallback": "已禁用。",
+    "allowed": "允许的",
+    "disallowed": "不允许的",
 
 
     "ads": {
     "ads": {
         "title": "广告组",
         "title": "广告组",

+ 16 - 3
tarteaucitron.js

@@ -17,7 +17,7 @@ var scripts = document.getElementsByTagName('script'),
 
 
 
 
 var tarteaucitron = {
 var tarteaucitron = {
-    "version": 20210310,
+    "version": 20210422,
     "cdn": cdn,
     "cdn": cdn,
     "user": {},
     "user": {},
     "lang": {},
     "lang": {},
@@ -745,14 +745,15 @@ var tarteaucitron = {
             isDenied = (cookie.indexOf(service.key + '=false') >= 0),
             isDenied = (cookie.indexOf(service.key + '=false') >= 0),
             isAllowed = ((cookie.indexOf(service.key + '=true') >= 0) || (!service.needConsent && cookie.indexOf(service.key + '=false') < 0)),
             isAllowed = ((cookie.indexOf(service.key + '=true') >= 0) || (!service.needConsent && cookie.indexOf(service.key + '=false') < 0)),
             isResponded = (cookie.indexOf(service.key + '=false') >= 0 || cookie.indexOf(service.key + '=true') >= 0),
             isResponded = (cookie.indexOf(service.key + '=false') >= 0 || cookie.indexOf(service.key + '=true') >= 0),
-            isDNTRequested = (navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1" || window.doNotTrack === "1");
+            isDNTRequested = (navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1" || window.doNotTrack === "1"),
+            currentStatus = (isAllowed) ? tarteaucitron.lang.allowed : tarteaucitron.lang.disallowed;
 
 
         if (tarteaucitron.added[service.key] !== true) {
         if (tarteaucitron.added[service.key] !== true) {
             tarteaucitron.added[service.key] = true;
             tarteaucitron.added[service.key] = true;
 
 
             html += '<li id="' + service.key + 'Line" class="tarteaucitronLine">';
             html += '<li id="' + service.key + 'Line" class="tarteaucitronLine">';
             html += '   <div class="tarteaucitronName">';
             html += '   <div class="tarteaucitronName">';
-            html += '       <span class="tarteaucitronH3" role="heading" aria-level="3">' + service.name + '</span>';
+            html += '       <span class="tarteaucitronH3" role="heading" aria-level="3">' + service.name + ' (<span id="tacCurrentStatus' + service.key + '">'+currentStatus+'</span>)</span>';
             html += '       <span id="tacCL' + service.key + '" class="tarteaucitronListCookies"></span><br/>';
             html += '       <span id="tacCL' + service.key + '" class="tarteaucitronListCookies"></span><br/>';
 
 
             if (tarteaucitron.parameters.moreInfoLink == true) {
             if (tarteaucitron.parameters.moreInfoLink == true) {
@@ -955,6 +956,12 @@ var tarteaucitron = {
                         if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + key + "_") < 0) { tarteaucitron.services[key].js(); }
                         if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + key + "_") < 0) { tarteaucitron.services[key].js(); }
                         tarteaucitron.sendEvent(key + '_loaded');
                         tarteaucitron.sendEvent(key + '_loaded');
                     }
                     }
+                    var itemStatusElem = document.getElementById('tacCurrentStatus'+key);
+                    if(status == true){
+                        itemStatusElem.innerHTML = tarteaucitron.lang.allowed;
+                    }else{
+                        itemStatusElem.innerHTML = tarteaucitron.lang.disallowed;
+                    }
                     tarteaucitron.state[key] = status;
                     tarteaucitron.state[key] = status;
                     tarteaucitron.cookie.create(key, status);
                     tarteaucitron.cookie.create(key, status);
                     tarteaucitron.userInterface.color(key, status);
                     tarteaucitron.userInterface.color(key, status);
@@ -990,6 +997,12 @@ var tarteaucitron = {
                     if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + key + "_") < 0) { tarteaucitron.services[key].js(); }
                     if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + key + "_") < 0) { tarteaucitron.services[key].js(); }
                 }
                 }
             }
             }
+            var itemStatusElem = document.getElementById('tacCurrentStatus'+key);
+            if(status == true){
+                itemStatusElem.innerHTML = tarteaucitron.lang.allowed;
+            }else{
+                itemStatusElem.innerHTML = tarteaucitron.lang.disallowed;
+            }
             tarteaucitron.state[key] = status;
             tarteaucitron.state[key] = status;
             tarteaucitron.cookie.create(key, status);
             tarteaucitron.cookie.create(key, status);
             tarteaucitron.userInterface.color(key, status);
             tarteaucitron.userInterface.color(key, status);