mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 02:53:21 +02:00
...
This commit is contained in:
parent
6d8b067e09
commit
7a90d00dc8
1 changed files with 4 additions and 4 deletions
|
|
@ -347,9 +347,9 @@ def do_library_delete(self, to_delete_ids):
|
|||
self.remove_matching_books_from_device()
|
||||
# The following will run if the selected books are not on a connected device.
|
||||
# The user has selected to delete from the library or the device and library.
|
||||
if not confirm('<p>'+_('The selected books will be '
|
||||
if not confirm('<p>'+_('The %d selected book(s) will be '
|
||||
'<b>permanently deleted</b> and the files '
|
||||
'removed from your calibre library. Are you sure?')
|
||||
'removed from your calibre library. Are you sure?')%len(to_delete_ids)
|
||||
+'</p>', 'library_delete_books', self.gui):
|
||||
return
|
||||
next_id = view.next_id
|
||||
|
|
@ -382,9 +382,9 @@ def delete_books(self, *args):
|
|||
view = self.gui.card_b_view
|
||||
paths = view.model().paths(rows)
|
||||
ids = view.model().indices(rows)
|
||||
if not confirm('<p>'+_('The selected books will be '
|
||||
if not confirm('<p>'+_('The %d selected book(s) will be '
|
||||
'<b>permanently deleted</b> '
|
||||
'from your device. Are you sure?')
|
||||
'from your device. Are you sure?')%len(paths)
|
||||
+'</p>', 'device_delete_books', self.gui):
|
||||
return
|
||||
job = self.gui.remove_paths(paths)
|
||||
|
|
|
|||
Loading…
Reference in a new issue