i18n: appliesRemoveError
This commit is contained in:
parent
d03c752dd5
commit
53770c0db6
|
@ -56,6 +56,10 @@
|
||||||
"message": "Remove",
|
"message": "Remove",
|
||||||
"description": "Label for the button to remove an 'applies' entry"
|
"description": "Label for the button to remove an 'applies' entry"
|
||||||
},
|
},
|
||||||
|
"appliesRemoveError": {
|
||||||
|
"message": "Can not remove last 'applies to' entry",
|
||||||
|
"description": "Error displayed when the last 'applies' is going to be removed"
|
||||||
|
},
|
||||||
"appliesSpecify": {
|
"appliesSpecify": {
|
||||||
"message": "Specify",
|
"message": "Specify",
|
||||||
"description": "Label for the button to make a style apply only to specific sites"
|
"description": "Label for the button to make a style apply only to specific sites"
|
||||||
|
|
|
@ -264,8 +264,7 @@ function createAppliesToLineWidget(cm) {
|
||||||
let to;
|
let to;
|
||||||
if (applies.length < 2) {
|
if (applies.length < 2) {
|
||||||
messageBox({
|
messageBox({
|
||||||
title: 'Error',
|
contents: chrome.i18n.getMessage('appliesRemoveError'),
|
||||||
contents: 'Can\'t remove last applies-to',
|
|
||||||
buttons: [t('confirmClose')]
|
buttons: [t('confirmClose')]
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user