Added confirm language to translations. Increased size of notice. Updated translations.

This commit is contained in:
Ajay Ramachandran 2019-08-21 14:04:05 -04:00
parent f097ff60aa
commit 118804e139
6 changed files with 14 additions and 8 deletions

View file

@ -123,5 +123,8 @@
},
"leftTimes": {
"message": "You seem to have left some sponsor times unsubmitted. Go back to that page to submit them (they are not deleted)."
},
"submitCheck": {
"message": "Are you sure you want to submit this?"
}
}

View file

@ -31,10 +31,10 @@
"message": "Cette channel est sur la liste blanche!"
},
"Sponsor": {
"message": "Endossement"
"message": "endossement"
},
"Sponsors": {
"message": "Endossements"
"message": "endossements"
},
"Segment": {
"message": "section d'endossement"
@ -122,5 +122,8 @@
},
"leftTimes": {
"message": "Vous avez laissé les endossements qui n'étaient pas soumis. Retournez à la page pour les soumettre (Ils ne sont pas enlevés)."
},
"submitCheck": {
"message": "Êtes-vous certaines vous voulez soumettre?"
}
}

View file

@ -31,10 +31,10 @@
"message": "Canal adicionado a lista branca!"
},
"Sponsor": {
"message": "Patrocinador"
"message": "patrocinador"
},
"Sponsors": {
"message": "Patrocinadores"
"message": "patrocinadores"
},
"Segment": {
"message": "segmento de patrocinador"

View file

@ -71,7 +71,7 @@
}
.sponsorSkipNotice {
min-width: 280px;
min-width: 300px;
background-color: rgba(28, 28, 28, 0.9);
position: absolute;
right: 5px;

View file

@ -931,8 +931,8 @@ function submitSponsorTimes() {
let sponsorTimes = result[sponsorTimeKey];
if (sponsorTimes != undefined && sponsorTimes.length > 0) {
let confirmMessage = "Are you sure you want to submit this?\n\n" + getSponsorTimesMessage(sponsorTimes);
confirmMessage += "\n\nTo edit or delete values, click the info button or open the extension popup by clicking the extension icon in the top right corner."
let confirmMessage = chrome.i18n.getMessage("submitCheck") + "\n\n" + getSponsorTimesMessage(sponsorTimes);
confirmMessage += "\n\n" + chrome.i18n.getMessage("confirmMSG");
if(!confirm(confirmMessage)) return;
sendSubmitMessage();

View file

@ -5,7 +5,7 @@ function getYouTubeVideoID(url) {
urlObject = new URL(url);
} catch (e) {
console.error("[SB] Unable to parse URL: " + url);
return false
return false;
}
//Check if valid hostname