PDF reader: Tweak annotation deletion confirmation text
This commit is contained in:
parent
82b1ce2027
commit
a6e0432848
2 changed files with 14 additions and 3 deletions
|
@ -830,7 +830,18 @@ class ReaderTab extends ReaderInstance {
|
|||
});
|
||||
|
||||
this._iframeWindow.wrappedJSObject.zoteroConfirmDeletion = function (plural) {
|
||||
return Services.prompt.confirm(null, '', Zotero.getString('pdfReader.deleteAnnotation.' + (plural ? 'plural' : 'singular')));
|
||||
let ps = Services.prompt;
|
||||
let buttonFlags = ps.BUTTON_POS_0 * ps.BUTTON_TITLE_IS_STRING
|
||||
+ ps.BUTTON_POS_1 * ps.BUTTON_TITLE_CANCEL;
|
||||
let index = ps.confirmEx(
|
||||
null,
|
||||
'',
|
||||
Zotero.getString('pdfReader.deleteAnnotation.' + (plural ? 'plural' : 'singular')),
|
||||
buttonFlags,
|
||||
Zotero.getString('general.delete'),
|
||||
null, null, null, {}
|
||||
);
|
||||
return !index;
|
||||
};
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1375,8 +1375,8 @@ pdfReader.thisPage = This page
|
|||
pdfReader.thisPageAndLaterPages = This page and later pages
|
||||
pdfReader.allPages = All pages
|
||||
pdfReader.autoDetect = Auto-Detect
|
||||
pdfReader.deleteAnnotation.singular = Delete the selected annotation?
|
||||
pdfReader.deleteAnnotation.plural = Delete selected annotations?
|
||||
pdfReader.deleteAnnotation.singular = Are you sure you want to delete the selected annotation?
|
||||
pdfReader.deleteAnnotation.plural = Are you sure you want to delete the selected annotations?
|
||||
|
||||
spellCheck.checkSpelling = Check Spelling
|
||||
spellCheck.addRemoveDictionaries = Add/Remove Dictionaries…
|
||||
|
|
Loading…
Reference in a new issue