commit c5a40d503b3cf3c7c46e262594a2e1a95ad74b2c
parent 98263fb485f0cab450534a275a40828698aa8f6a
Author: rmzelle <rintze.zelle@gmail.com>
Date: Sun, 8 Mar 2015 17:20:57 -0400
Add prompt for Remove Item(s) from Collection
Diffstat:
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js
@@ -1597,6 +1597,12 @@ var ZoteroPane = new function()
'pane.items.delete' + (this.itemsView.selection.count > 1 ? '.multiple' : '')
)
};
+ var toRemove = {
+ title: Zotero.getString('pane.items.remove.title'),
+ text: Zotero.getString(
+ 'pane.items.remove' + (this.itemsView.selection.count > 1 ? '.multiple' : '')
+ )
+ };
if (itemGroup.isLibrary(true)) {
// In library, don't prompt if meta key was pressed
@@ -1604,7 +1610,7 @@ var ZoteroPane = new function()
}
else if (itemGroup.isCollection()) {
// In collection, only prompt if trashing
- var prompt = force ? toTrash : false;
+ var prompt = force ? toTrash : toRemove;
}
else if (itemGroup.isSearch() || itemGroup.isUnfiled() || itemGroup.isDuplicates()) {
if (!force) {
diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties
@@ -204,8 +204,11 @@ pane.items.trash.multiple = Are you sure you want to move the selected items to
pane.items.delete.title = Delete
pane.items.delete = Are you sure you want to delete the selected item?
pane.items.delete.multiple = Are you sure you want to delete the selected items?
-pane.items.menu.remove = Remove Item from Collection
-pane.items.menu.remove.multiple = Remove Items from Collection
+pane.items.remove.title = Remove from Collection
+pane.items.remove = Are you sure you want to remove the selected item from this collection?
+pane.items.remove.multiple = Are you sure you want to remove the selected items from this collection?
+pane.items.menu.remove = Remove Item from Collection…
+pane.items.menu.remove.multiple = Remove Items from Collection…
pane.items.menu.moveToTrash = Move Item to Trash…
pane.items.menu.moveToTrash.multiple = Move Items to Trash…
pane.items.menu.export = Export Item…