Skip to content

Commit 2084320

Browse files
committed
Fix the translation, DEV-1111
Signed-off-by: Iman Aboheydary <iman@customgento.com>
1 parent 27e60ef commit 2084320

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

i18n/de_DE.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
"Cookiebot ID","Cookiebot ID"
44
"Data Culture","Data Culture"
55
"Please <a href=""javascript:Cookiebot.renew()"" class=""cookiebot-iframe-consent-link"">accept %1 cookies</a> to view this %2 content.","Bitte <a href=""javascript:Cookiebot.renew()"" class=""cookiebot-iframe-consent-link"">akzeptieren Sie %1 Cookies</a>, um diesen %2 Inhalt anzuzeigen."
6+
"Please <a href="javascript:Cookiebot.renew()">accept marketing cookies</a> to view this content.","Bitte <a href="javascript:Cookiebot.renew()">akzeptieren Sie Marketing-Cookies</a>, um diesen Inhalt anzuzeigen."

i18n/en_US.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
"Cookiebot ID","Cookiebot ID"
44
"Data Culture","Data Culture"
55
"Please <a href=""javascript:Cookiebot.renew()"" class=""cookiebot-iframe-consent-link"">accept %1 cookies</a> to view this %2 content.","Please <a href=""javascript:Cookiebot.renew()"" class=""cookiebot-iframe-consent-link"">accept %1 cookies</a> to view this %2 content."
6+
"Please <a href="javascript:Cookiebot.renew()">accept marketing cookies</a> to view this content.","Please <a href="javascript:Cookiebot.renew()">accept marketing cookies</a> to view this content."

view/frontend/web/js/fotorama-video-events-mixin.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,13 @@ define([
2929
`;
3030

3131
divElement.classList.add('cookieconsent-optout-marketing');
32-
linkElement.textContent = 'accept marketing cookies';
33-
linkElement.href = 'javascript:Cookiebot.renew()';
34-
paragraphElement.append(
35-
document.createTextNode('Please '),
36-
linkElement,
37-
document.createTextNode(' to view this content.')
38-
);
32+
paragraphElement.innerHTML =
33+
$.mage.__('Please <a href="javascript:Cookiebot.renew()">accept marketing cookies</a> to view this content.')
34+
;
3935

4036
divElement.style.fontSize = '1.4rem';
4137
divElement.append(paragraphElement);
42-
paragraphElement.style.zIndex = '1000';
38+
paragraphElement.style.zIndex = '10001';
4339
paragraphElement.style.position = 'relative';
4440
videoElement?.parentNode.insertBefore(divElement, videoElement);
4541
},

0 commit comments

Comments
 (0)