mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Added confirm language to translations. Increased size of notice. Updated translations.
This commit is contained in:
parent
f097ff60aa
commit
118804e139
6 changed files with 14 additions and 8 deletions
|
@ -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?"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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?"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
}
|
||||
|
||||
.sponsorSkipNotice {
|
||||
min-width: 280px;
|
||||
min-width: 300px;
|
||||
background-color: rgba(28, 28, 28, 0.9);
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
|
|
|
@ -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();
|
||||
|
|
2
utils.js
2
utils.js
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue