@@ -19,10 +19,10 @@ def __init__(self, fmts, parent=None):
1919 QDialog .__init__ (self , parent )
2020 self .l = l = QVBoxLayout (self )
2121 self .setLayout (l )
22- self .setWindowTitle (_ ('Choose format to tweak ' ))
22+ self .setWindowTitle (_ ('Choose format to edit ' ))
2323
2424 self .la = la = QLabel (_ (
25- 'This book has multiple formats that can be tweaked . Choose the format you want to tweak .' ))
25+ 'This book has multiple formats that can be edited . Choose the format you want to edit .' ))
2626 l .addWidget (la )
2727
2828 self .rem = QCheckBox (_ ('Always ask when more than one format is available' ))
@@ -54,7 +54,7 @@ def accept(self):
5454class TweakEpubAction (InterfaceAction ):
5555
5656 name = 'Tweak ePub'
57- action_spec = (_ ('Tweak Book' ), 'tweak.png' , _ ('Edit eBooks' ), _ ('T' ))
57+ action_spec = (_ ('Edit Book' ), 'tweak.png' , _ ('Edit eBooks' ), _ ('T' ))
5858 dont_add_to = frozenset (['context-menu-device' ])
5959 action_type = 'current'
6060
@@ -90,7 +90,7 @@ def genesis(self):
9090 def tweak_book (self ):
9191 row = self .gui .library_view .currentIndex ()
9292 if not row .isValid ():
93- return error_dialog (self .gui , _ ('Cannot Tweak Book' ),
93+ return error_dialog (self .gui , _ ('Cannot Edit Book' ),
9494 _ ('No book selected' ), show = True )
9595
9696 book_id = self .gui .library_view .model ().id (row )
@@ -103,8 +103,8 @@ def do_tweak(self, book_id):
103103 fmts = [x .upper ().strip () for x in fmts .split (',' )]
104104 tweakable_fmts = set (fmts ).intersection (SUPPORTED )
105105 if not tweakable_fmts :
106- return error_dialog (self .gui , _ ('Cannot Tweak Book' ),
107- _ ('The book must be in the %s formats to tweak .'
106+ return error_dialog (self .gui , _ ('Cannot Edit Book' ),
107+ _ ('The book must be in the %s formats to edit .'
108108 '\n \n First convert the book to one of these formats.' ) % (_ (' or ' .join (SUPPORTED ))),
109109 show = True )
110110 from calibre .gui2 .tweak_book import tprefs
@@ -126,7 +126,7 @@ def do_tweak(self, book_id):
126126 return error_dialog (self .gui , _ ('File missing' ), _ (
127127 'The %s format is missing from the calibre library. You should run'
128128 ' library maintenance.' ) % fmt , show = True )
129- tweak = 'ebook-tweak '
129+ tweak = 'ebook-edit '
130130 self .gui .setCursor (Qt .BusyCursor )
131131 if tprefs ['update_metadata_from_calibre' ]:
132132 from calibre .ebooks .metadata .opf2 import pretty_print
0 commit comments