mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 19:47:04 +03:00
Localised key errors
This commit is contained in:
@@ -452,5 +452,14 @@
|
|||||||
},
|
},
|
||||||
"copyDebugInformationComplete": {
|
"copyDebugInformationComplete": {
|
||||||
"message": "The debug information has been copied to the clip board. Feel free to remove any information you would rather not share. Save this in a text file or paste into the bug report."
|
"message": "The debug information has been copied to the clip board. Feel free to remove any information you would rather not share. Save this in a text file or paste into the bug report."
|
||||||
|
},
|
||||||
|
"theKey": {
|
||||||
|
"message": "The key"
|
||||||
|
},
|
||||||
|
"keyAlreadyUsedByYouTube": {
|
||||||
|
"message": "is already used by youtube. Please select another key."
|
||||||
|
},
|
||||||
|
"keyAlreadyUsed": {
|
||||||
|
"message": "is bound to another action. Please select another key."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -344,9 +344,7 @@ function keybindKeyPressed(element: HTMLElement, e: KeyboardEvent) {
|
|||||||
if (restrictedKeys.indexOf(key) !== -1 ) {
|
if (restrictedKeys.indexOf(key) !== -1 ) {
|
||||||
closeKeybindOption(element, button);
|
closeKeybindOption(element, button);
|
||||||
|
|
||||||
// TODO: This should be localised
|
alert(chrome.i18n.getMessage("theKey") + " " + key + " " + chrome.i18n.getMessage("keyAlreadyUsedByYouTube"));
|
||||||
alert("The key " + key + " is already used by youtube. Please select another key.");
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -356,9 +354,7 @@ function keybindKeyPressed(element: HTMLElement, e: KeyboardEvent) {
|
|||||||
if (key === otherKeybind) {
|
if (key === otherKeybind) {
|
||||||
closeKeybindOption(element, button);
|
closeKeybindOption(element, button);
|
||||||
|
|
||||||
// TODO: This should be localised
|
alert(chrome.i18n.getMessage("theKey") + " " + key + " " + chrome.i18n.getMessage("keyAlreadyUsed"));
|
||||||
alert("The key " + key + " is bound to another action. Please select another key.");
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user