i18n: appliesRemoveError

This commit is contained in:
eight 2017-11-09 13:09:03 +08:00
parent d03c752dd5
commit 53770c0db6
2 changed files with 5 additions and 2 deletions

View File

@ -56,6 +56,10 @@
"message": "Remove",
"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": {
"message": "Specify",
"description": "Label for the button to make a style apply only to specific sites"

View File

@ -264,8 +264,7 @@ function createAppliesToLineWidget(cm) {
let to;
if (applies.length < 2) {
messageBox({
title: 'Error',
contents: 'Can\'t remove last applies-to',
contents: chrome.i18n.getMessage('appliesRemoveError'),
buttons: [t('confirmClose')]
});
return;