aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2021-06-23 21:38:23 -0400
committerAjay Ramachandran <[email protected]>2021-06-23 21:38:23 -0400
commite7c92467bd10b5c108f5bcac4c98abd2c4ce1e7a (patch)
tree21ec3c4a053662e30abbbc03af8208d546976948 /src
parente80b7afe809fef5d11d7621aa2299ae27d5a7957 (diff)
downloadSponsorBlock-e7c92467bd10b5c108f5bcac4c98abd2c4ce1e7a.tar.gz
SponsorBlock-e7c92467bd10b5c108f5bcac4c98abd2c4ce1e7a.zip
Add localisation to unlisted experiement
Diffstat (limited to 'src')
-rw-r--r--src/content.ts11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/content.ts b/src/content.ts
index 5a7286d7..d0a1def1 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -893,14 +893,11 @@ async function unlistedCheck() {
if (isUnlisted && isOld && isHighViews) {
// Ask if they want to submit this videoID
const notice = new GenericNotice(skipNoticeContentContainer, "unlistedWarning", {
- title: "Help prevent this from disappearing",
- textBoxes: ("This video is detected as unlisted and uploaded before 2017\n"
- + "Old unlisted videos are being set to private soon\n"
- + "We are collecting *public* videos to back up\n"
- + "Would you like anonymously to submit this video?").split("\n"),
+ title: chrome.i18n.getMessage("experimentUnlistedTitle"),
+ textBoxes: chrome.i18n.getMessage("experimentUnlistedText").split("\n"),
buttons: [
{
- name: "Opt-out of all future experiments",
+ name: chrome.i18n.getMessage("experiementOptOut"),
listener: () => {
Config.config.allowExpirements = false;
@@ -908,7 +905,7 @@ async function unlistedCheck() {
}
},
{
- name: "Never show this",
+ name: chrome.i18n.getMessage("hideForever"),
listener: () => {
Config.config.askAboutUnlistedVideos = false;