diff --git a/src/calibre/gui2/actions/edit_metadata.py b/src/calibre/gui2/actions/edit_metadata.py index c46d77cd06..a1f6a6ba90 100644 --- a/src/calibre/gui2/actions/edit_metadata.py +++ b/src/calibre/gui2/actions/edit_metadata.py @@ -192,14 +192,15 @@ class EditMetadataAction(InterfaceAction): _('At least two books must be selected for merging'), show=True) dest_id, src_books, src_ids = self.books_to_merge(rows) + title = self.gui.library_view.model().db.title(dest_id, index_is_id=True) if safe_merge: if not confirm('

'+_( 'Book formats and metadata from the selected books ' - 'will be added to the first selected book. ' + 'will be added to the first selected book (%s). ' 'ISBN will not be merged.

' 'The second and subsequently selected books will not ' 'be deleted or changed.

' - 'Please confirm you want to proceed.') + 'Please confirm you want to proceed.')%title +'

', 'merge_books_safe', self.gui): return self.add_formats(dest_id, src_books) @@ -207,14 +208,14 @@ class EditMetadataAction(InterfaceAction): else: if not confirm('

'+_( 'Book formats and metadata from the selected books will be merged ' - 'into the first selected book. ' + 'into the first selected book (%s). ' 'ISBN will not be merged.

' 'After merger the second and ' 'subsequently selected books will be deleted.

' 'All book formats of the first selected book will be kept ' 'and any duplicate formats in the second and subsequently selected books ' 'will be permanently deleted from your computer.

' - 'Are you sure you want to proceed?') + 'Are you sure you want to proceed?')%title +'

', 'merge_books', self.gui): return if len(rows)>5: