From 80b260496b1d4ce38cf95e43d74780a39158ae82 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Tue, 19 May 2020 18:23:38 +0100 Subject: [PATCH] Enhancement 1879446: Change name of Tag editor --- src/calibre/gui2/dialogs/tag_editor.py | 17 +++++++++++- src/calibre/gui2/dialogs/tag_editor.ui | 36 ++++++++++---------------- 2 files changed, 29 insertions(+), 24 deletions(-) diff --git a/src/calibre/gui2/dialogs/tag_editor.py b/src/calibre/gui2/dialogs/tag_editor.py index d3b4c51195..48d024537f 100644 --- a/src/calibre/gui2/dialogs/tag_editor.py +++ b/src/calibre/gui2/dialogs/tag_editor.py @@ -29,10 +29,25 @@ class TagEditor(QDialog, Ui_TagEditor): self.is_names = fm['display'].get('is_names', False) if self.is_names: self.sep = '&' - self.setWindowTitle(_('Edit %s') % fm['name']) + self.setWindowTitle(self.windowTitle() + ': ' + fm['name']) except Exception: pass key = db.field_metadata.key_to_label(key) + else: + self.setWindowTitle(self.windowTitle() + ': ' + db.field_metadata['tags']['name']) + + if self.sep == '&': + self.add_tag_input.setToolTip('

' + + _('If the item you want is not in the available list, ' + 'you can add it here. Accepts an ampersand-separated ' + 'list of items. The item(s) will be applied to ' + 'the book.') + '

') + else: + self.add_tag_input.setToolTip('

' + + _('If the item you want is not in the available list, ' + 'you can add it here. Accepts a comma-separated ' + 'list of items. The item(s) will be applied to ' + 'the book.') + '

') self.key = key self.index = db.row(id_) if id_ is not None else None if self.index is not None: diff --git a/src/calibre/gui2/dialogs/tag_editor.ui b/src/calibre/gui2/dialogs/tag_editor.ui index 512162ca35..ea2a4de5cb 100644 --- a/src/calibre/gui2/dialogs/tag_editor.ui +++ b/src/calibre/gui2/dialogs/tag_editor.ui @@ -11,7 +11,7 @@ - Tag editor + Manage items @@ -38,7 +38,7 @@ - &Add tag: + &Add item: add_tag_input @@ -46,19 +46,12 @@ - - - If the tag you want is not in the available list, you can add it here. Accepts a comma separated list of tags. - - + - Add tag to available tags and apply it to current book - - - ... + Apply item(s) to the current book @@ -95,7 +88,7 @@ - Filter the available tags + Filter the available items true @@ -118,10 +111,10 @@ - Delete tag from database. This will unapply the tag from all books and then remove it from the database. + Delete the item from database. This will unapply the item from all books and then remove it from the database. - &Delete tag + &Delete item(s) @@ -132,7 +125,7 @@ - Ava&ilable tags + Ava&ilable items available_tags @@ -144,10 +137,7 @@ - Apply tag to current book - - - ... + Apply item to current book @@ -160,7 +150,7 @@ - Filter the applied tags + Filter the applied items true @@ -183,7 +173,7 @@ - Applied &tags + Applied &items applied_tags @@ -193,10 +183,10 @@ - Unapply (remove) tag from current book + Unapply (remove) the item from current book - &Unapply tag + &Unapply item(s)