Skip to content

Commit 23aacaa

Browse files
mgurgelgithub-actions[bot]
authored andcommitted
Release build 9.5.0 [ci release]
1 parent f15a5d3 commit 23aacaa

File tree

245 files changed

+6499
-427
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

245 files changed

+6499
-427
lines changed

CHANGELOG.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
- Device enumeration blocking WebCompat feature (#1724)
1+
- Duck Player custom error translations (#1732)
2+
- Duck Player Native pausing bugs (#1705)
3+
- Scam Blocker translations (#1733)

Sources/ContentScopeScripts/dist/contentScope.js

Lines changed: 38 additions & 19 deletions
Large diffs are not rendered by default.

Sources/ContentScopeScripts/dist/contentScopeIsolated.js

Lines changed: 38 additions & 19 deletions
Large diffs are not rendered by default.

Sources/ContentScopeScripts/dist/pages/duckplayer/dist/index.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2851,9 +2851,6 @@
28512851
function useYouTubeError() {
28522852
return x2(YouTubeErrorContext).error;
28532853
}
2854-
function useLocale() {
2855-
return x2(YouTubeErrorContext).locale;
2856-
}
28572854
function useShowCustomError() {
28582855
const settings = useSettings();
28592856
const youtubeError = x2(YouTubeErrorContext).error;
@@ -3478,8 +3475,9 @@
34783475
};
34793476

34803477
// pages/duckplayer/app/components/YouTubeError.jsx
3481-
function useErrorStrings(youtubeError, locale) {
3478+
function useErrorStrings(youtubeError) {
34823479
const { t: t3 } = useTypedTranslation();
3480+
const version = "v2";
34833481
const versions = {
34843482
v1: {
34853483
"sign-in-required": {
@@ -3516,18 +3514,16 @@
35163514
}
35173515
}
35183516
};
3519-
const version = locale === "en" ? "v2" : "v1";
35203517
return versions[version]?.[youtubeError] || versions[version]?.["unknown"] || versions["v1"]["unknown"];
35213518
}
35223519
function YouTubeError({ layout, embed }) {
35233520
const youtubeError = useYouTubeError();
3524-
const locale = useLocale();
35253521
if (!youtubeError) {
35263522
return null;
35273523
}
35283524
const { t: t3 } = useTypedTranslation();
35293525
const openOnYoutube = useOpenOnYoutubeHandler();
3530-
const { heading, messages, variant } = useErrorStrings(youtubeError, locale);
3526+
const { heading, messages, variant } = useErrorStrings(youtubeError);
35313527
const classes = (0, import_classnames10.default)(YouTubeError_default.error, {
35323528
[YouTubeError_default.desktop]: layout === "desktop",
35333529
[YouTubeError_default.mobile]: layout === "mobile"

Sources/ContentScopeScripts/dist/pages/duckplayer/index.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4006,9 +4006,6 @@
40064006
function useYouTubeError() {
40074007
return x2(YouTubeErrorContext).error;
40084008
}
4009-
function useLocale() {
4010-
return x2(YouTubeErrorContext).locale;
4011-
}
40124009
function useShowCustomError() {
40134010
const settings = useSettings();
40144011
const youtubeError = x2(YouTubeErrorContext).error;
@@ -4633,8 +4630,9 @@
46334630
};
46344631

46354632
// pages/duckplayer/app/components/YouTubeError.jsx
4636-
function useErrorStrings(youtubeError, locale) {
4633+
function useErrorStrings(youtubeError) {
46374634
const { t: t3 } = useTypedTranslation();
4635+
const version = "v2";
46384636
const versions = {
46394637
v1: {
46404638
"sign-in-required": {
@@ -4671,18 +4669,16 @@
46714669
}
46724670
}
46734671
};
4674-
const version = locale === "en" ? "v2" : "v1";
46754672
return versions[version]?.[youtubeError] || versions[version]?.["unknown"] || versions["v1"]["unknown"];
46764673
}
46774674
function YouTubeError({ layout, embed }) {
46784675
const youtubeError = useYouTubeError();
4679-
const locale = useLocale();
46804676
if (!youtubeError) {
46814677
return null;
46824678
}
46834679
const { t: t3 } = useTypedTranslation();
46844680
const openOnYoutube = useOpenOnYoutubeHandler();
4685-
const { heading, messages, variant } = useErrorStrings(youtubeError, locale);
4681+
const { heading, messages, variant } = useErrorStrings(youtubeError);
46864682
const classes = (0, import_classnames10.default)(YouTubeError_default.error, {
46874683
[YouTubeError_default.desktop]: layout === "desktop",
46884684
[YouTubeError_default.mobile]: layout === "mobile"

Sources/ContentScopeScripts/dist/pages/duckplayer/locales/bg/duckplayer.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,42 @@
3232
"title" : "<b>ГРЕШКА:</b> невалиден идентификатор на видеоклипа",
3333
"note" : "Shown when the page URL doesn't match a known video ID. Note for translators: The <b> tag makes the word 'ERROR:' bold. Depending on the grammar of the target language, you might need to move it so that the correct word is emphasized."
3434
},
35+
"unknownErrorHeading2" : {
36+
"title" : "Duck Player не може да зареди това видео",
37+
"note" : "Message shown when YouTube has blocked playback of a video"
38+
},
39+
"unknownErrorMessage2a" : {
40+
"title" : "Това видео не може да бъде гледано извън YouTube.",
41+
"note" : "Explanation on why the error is happening."
42+
},
43+
"unknownErrorMessage2b" : {
44+
"title" : "Все пак можете да гледате това видео в YouTube, но без допълнителната поверителност на Duck Player.",
45+
"note" : "A message explaining that the blocked video can be watched directly on YouTube."
46+
},
47+
"ageRestrictedErrorHeading2" : {
48+
"title" : "Съжаляваме, но това видео има възрастово ограничение",
49+
"note" : "Message shown when YouTube has blocked playback of a video"
50+
},
51+
"ageRestrictedErrorMessage2a" : {
52+
"title" : "За да гледате видеа с възрастово ограничение, трябва да влезете в YouTube, за да потвърдите възрастта си.",
53+
"note" : "Explanation on why the error is happening."
54+
},
55+
"ageRestrictedErrorMessage2b" : {
56+
"title" : "Все пак можете да гледате това видео, но ще трябва да влезете и да го гледате в YouTube без допълнителната поверителност на Duck Player.",
57+
"note" : "A message explaining that the blocked video can be watched directly on YouTube."
58+
},
59+
"noEmbedErrorHeading2" : {
60+
"title" : "Съжаляваме, но това видео може да се гледа само в YouTube",
61+
"note" : "Message shown when YouTube has blocked playback of a video"
62+
},
63+
"noEmbedErrorMessage2a" : {
64+
"title" : "Създателят на това видео е избрал да не позволява то да бъде гледано на други сайтове.",
65+
"note" : "Explanation on why the error is happening."
66+
},
67+
"noEmbedErrorMessage2b" : {
68+
"title" : "Все пак можете да го гледате в YouTube, но без допълнителната поверителност на Duck Player.",
69+
"note" : "A message explaining that the blocked video can be watched directly on YouTube."
70+
},
3571
"blockedVideoErrorHeading" : {
3672
"title" : "YouTube няма да позволи на Duck Player да зареди това видео",
3773
"note" : "Message shown when YouTube has blocked playback of a video"
@@ -44,6 +80,10 @@
4480
"title" : "Все пак можете да гледате това видео в YouTube, но без допълнителната поверителност на Duck Player.",
4581
"note" : "A message explaining that the blocked video can be watched directly on YouTube."
4682
},
83+
"signInRequiredErrorHeading2" : {
84+
"title" : "Съжаляваме, но YouTube мисли, че сте бот",
85+
"note" : "Message shown when YouTube has blocked playback of a video"
86+
},
4787
"signInRequiredErrorMessage1" : {
4888
"title" : "YouTube блокира зареждането на това видео. Ако използвате VPN, опитайте да го изключите и презаредете тази страница.",
4989
"note" : "Explanation on why the error is happening and a suggestions on how to solve it."
@@ -52,6 +92,14 @@
5292
"title" : "Ако това не свърши работа, можете да гледате това видео в YouTube, но без допълнителната поверителност на Duck Player.",
5393
"note" : "More troubleshooting tips for this specific error"
5494
},
95+
"signInRequiredErrorMessage2a" : {
96+
"title" : "Това може да се случи, ако използвате VPN. Опитайте да изключите VPN или да промените местоположението на сървъра и да презаредите тази страница.",
97+
"note" : "Explanation on why the error is happening and a suggestions on how to solve it."
98+
},
99+
"signInRequiredErrorMessage2b" : {
100+
"title" : "Ако това не проработи, ще трябва да влезете и да гледате това видео в YouTube без допълнителната поверителност на Duck Player.",
101+
"note" : "More troubleshooting tips for this specific error"
102+
},
55103
"tooltipInfo" : {
56104
"title" : "Duck Player осигурява чисто изживяване без персонализирани реклами в YouTube и предотвратява влиянието на вече гледаните видеоклипове върху препоръките на YouTube."
57105
}

Sources/ContentScopeScripts/dist/pages/duckplayer/locales/cs/duckplayer.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,42 @@
3232
"title" : "<b>CHYBA:</b> Neplatné ID videa",
3333
"note" : "Shown when the page URL doesn't match a known video ID. Note for translators: The <b> tag makes the word 'ERROR:' bold. Depending on the grammar of the target language, you might need to move it so that the correct word is emphasized."
3434
},
35+
"unknownErrorHeading2" : {
36+
"title" : "Duck Player nemůže načíst tohle video",
37+
"note" : "Message shown when YouTube has blocked playback of a video"
38+
},
39+
"unknownErrorMessage2a" : {
40+
"title" : "Na video se nedá dívat mimo YouTube.",
41+
"note" : "Explanation on why the error is happening."
42+
},
43+
"unknownErrorMessage2b" : {
44+
"title" : "Na tohle video se můžeš pořád podívat na YouTube, ale bez ochrany soukromí, jakou nabízí Duck Player.",
45+
"note" : "A message explaining that the blocked video can be watched directly on YouTube."
46+
},
47+
"ageRestrictedErrorHeading2" : {
48+
"title" : "Omlouváme se, ale tohle video je věkově omezené",
49+
"note" : "Message shown when YouTube has blocked playback of a video"
50+
},
51+
"ageRestrictedErrorMessage2a" : {
52+
"title" : "Pokud chceš sledovat videa s věkovým omezením, musíš se přihlásit na YouTube a ověřit svůj věk.",
53+
"note" : "Explanation on why the error is happening."
54+
},
55+
"ageRestrictedErrorMessage2b" : {
56+
"title" : "Na tohle video se i tak můžeš podívat, ale budeš se muset přihlásit a pustit si ho na YouTube bez ochrany soukromí, kterou nabízí Duck Player.",
57+
"note" : "A message explaining that the blocked video can be watched directly on YouTube."
58+
},
59+
"noEmbedErrorHeading2" : {
60+
"title" : "Omlouváme se, ale tohle video se dá přehrát jen na YouTube",
61+
"note" : "Message shown when YouTube has blocked playback of a video"
62+
},
63+
"noEmbedErrorMessage2a" : {
64+
"title" : "Autor tohoto videa se rozhodl nepovolit jeho zobrazení na jiných stránkách.",
65+
"note" : "Explanation on why the error is happening."
66+
},
67+
"noEmbedErrorMessage2b" : {
68+
"title" : "Pořád se na něj můžeš podívat na YouTube, ale bez ochrany soukromí, jakou nabízí Duck Player.",
69+
"note" : "A message explaining that the blocked video can be watched directly on YouTube."
70+
},
3571
"blockedVideoErrorHeading" : {
3672
"title" : "YouTube nedovoluje přehrávači Duck Player načíst tohle video",
3773
"note" : "Message shown when YouTube has blocked playback of a video"
@@ -44,6 +80,10 @@
4480
"title" : "Na tohle video se můžeš pořád podívat na YouTube, ale bez ochrany soukromí, jakou nabízí Duck Player.",
4581
"note" : "A message explaining that the blocked video can be watched directly on YouTube."
4682
},
83+
"signInRequiredErrorHeading2" : {
84+
"title" : "Omlouváme se, ale YouTube si myslí, že jsi robot",
85+
"note" : "Message shown when YouTube has blocked playback of a video"
86+
},
4787
"signInRequiredErrorMessage1" : {
4888
"title" : "YouTube blokuje načítání tohohle videa. Pokud používáš VPN, zkus ji vypnout a stránku znovu načíst.",
4989
"note" : "Explanation on why the error is happening and a suggestions on how to solve it."
@@ -52,6 +92,14 @@
5292
"title" : "Pokud to nefunguje, můžeš se na video podívat na YouTube, ale bez ochrany soukromí, jakou nabízí Duck Player.",
5393
"note" : "More troubleshooting tips for this specific error"
5494
},
95+
"signInRequiredErrorMessage2a" : {
96+
"title" : "To se může stát, pokud používáš VPN. Zkus VPN vypnout nebo změnit umístění serveru a načíst stránku znovu.",
97+
"note" : "Explanation on why the error is happening and a suggestions on how to solve it."
98+
},
99+
"signInRequiredErrorMessage2b" : {
100+
"title" : "Pokud to nezabere, budeš se muset přihlásit a video si na YouTube přehrát bez ochrany soukromí, kterou nabízí Duck Player.",
101+
"note" : "More troubleshooting tips for this specific error"
102+
},
55103
"tooltipInfo" : {
56104
"title" : "Přehrávač Duck Player nabízí sledování v minimalistickém prostředí bez personalizovaných reklam a brání tomu, aby sledovaná videa ovlivňovala tvoje doporučení na YouTube."
57105
}

Sources/ContentScopeScripts/dist/pages/duckplayer/locales/da/duckplayer.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,42 @@
3232
"title" : "<b>FEJL:</b> Ugyldigt video-ID",
3333
"note" : "Shown when the page URL doesn't match a known video ID. Note for translators: The <b> tag makes the word 'ERROR:' bold. Depending on the grammar of the target language, you might need to move it so that the correct word is emphasized."
3434
},
35+
"unknownErrorHeading2" : {
36+
"title" : "Duck Player kan ikke indlæse denne video",
37+
"note" : "Message shown when YouTube has blocked playback of a video"
38+
},
39+
"unknownErrorMessage2a" : {
40+
"title" : "Denne video kan ikke vises uden for YouTube.",
41+
"note" : "Explanation on why the error is happening."
42+
},
43+
"unknownErrorMessage2b" : {
44+
"title" : "Du kan stadig se denne video på YouTube, men uden den ekstra fortrolighed, som Duck Player giver.",
45+
"note" : "A message explaining that the blocked video can be watched directly on YouTube."
46+
},
47+
"ageRestrictedErrorHeading2" : {
48+
"title" : "Beklager, denne video har aldersbegrænsning",
49+
"note" : "Message shown when YouTube has blocked playback of a video"
50+
},
51+
"ageRestrictedErrorMessage2a" : {
52+
"title" : "For at se aldersbegrænsede videoer skal du logge ind på YouTube for at bekræfte din alder.",
53+
"note" : "Explanation on why the error is happening."
54+
},
55+
"ageRestrictedErrorMessage2b" : {
56+
"title" : "Du kan stadig se denne video, men du skal logge ind og se den på YouTube uden den ekstra fortrolighed, som Duck Player giver.",
57+
"note" : "A message explaining that the blocked video can be watched directly on YouTube."
58+
},
59+
"noEmbedErrorHeading2" : {
60+
"title" : "Beklager, denne video kan kun afspilles på YouTube",
61+
"note" : "Message shown when YouTube has blocked playback of a video"
62+
},
63+
"noEmbedErrorMessage2a" : {
64+
"title" : "Skaberen af denne video har valgt ikke at tillade, at den kan vises på andre hjemmesider.",
65+
"note" : "Explanation on why the error is happening."
66+
},
67+
"noEmbedErrorMessage2b" : {
68+
"title" : "Du kan stadig se den på YouTube, men uden den ekstra fortrolighed, som Duck Player giver.",
69+
"note" : "A message explaining that the blocked video can be watched directly on YouTube."
70+
},
3571
"blockedVideoErrorHeading" : {
3672
"title" : "YouTube vil ikke lade Duck Player indlæse denne video",
3773
"note" : "Message shown when YouTube has blocked playback of a video"
@@ -44,6 +80,10 @@
4480
"title" : "Du kan stadig se denne video på YouTube, men uden den ekstra fortrolighed, som Duck Player giver.",
4581
"note" : "A message explaining that the blocked video can be watched directly on YouTube."
4682
},
83+
"signInRequiredErrorHeading2" : {
84+
"title" : "Beklager, YouTube tror, at du er en bot",
85+
"note" : "Message shown when YouTube has blocked playback of a video"
86+
},
4787
"signInRequiredErrorMessage1" : {
4888
"title" : "YouTube blokerer for, at denne video kan indlæses. Hvis du bruger en VPN, så prøv at slå den fra og genindlæse denne side.",
4989
"note" : "Explanation on why the error is happening and a suggestions on how to solve it."
@@ -52,6 +92,14 @@
5292
"title" : "Hvis dette ikke virker, kan du stadig se denne video på YouTube, men uden den ekstra fortrolighed, som Duck Player giver.",
5393
"note" : "More troubleshooting tips for this specific error"
5494
},
95+
"signInRequiredErrorMessage2a" : {
96+
"title" : "Dette kan ske, hvis du bruger en VPN. Prøv at slå VPN fra eller skifte serverplacering og genindlæse denne side.",
97+
"note" : "Explanation on why the error is happening and a suggestions on how to solve it."
98+
},
99+
"signInRequiredErrorMessage2b" : {
100+
"title" : "Hvis det ikke virker, skal du logge ind og se denne video på YouTube uden den ekstra fortrolighed, som Duck Player giver.",
101+
"note" : "More troubleshooting tips for this specific error"
102+
},
55103
"tooltipInfo" : {
56104
"title" : "Duck Player giver en ren seeroplevelse uden målrettede annoncer og forhindrer, at visningsaktivitet påvirker dine YouTube-anbefalinger."
57105
}

0 commit comments

Comments
 (0)