mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
String changes
This commit is contained in:
parent
40684801db
commit
77c3a35866
@ -30,7 +30,7 @@ class UnpackBook(QDialog):
|
|||||||
self._cleanup_files = []
|
self._cleanup_files = []
|
||||||
|
|
||||||
self.setup_ui()
|
self.setup_ui()
|
||||||
self.setWindowTitle(_('Unpack Book') + ' - ' + db.title(book_id,
|
self.setWindowTitle(_('Unpack book') + ' - ' + db.title(book_id,
|
||||||
index_is_id=True))
|
index_is_id=True))
|
||||||
|
|
||||||
button = self.fmt_choice_buttons[0]
|
button = self.fmt_choice_buttons[0]
|
||||||
@ -74,20 +74,20 @@ class UnpackBook(QDialog):
|
|||||||
self.fmt_choice_box.setVisible(len(fmts) > 1)
|
self.fmt_choice_box.setVisible(len(fmts) > 1)
|
||||||
|
|
||||||
self.help_label = QLabel(_('''\
|
self.help_label = QLabel(_('''\
|
||||||
<h2>About Unpack Book</h2>
|
<h2>About Unpack book</h2>
|
||||||
<p>Unpack Book allows you to fine tune the appearance of an ebook by
|
<p>Unpack book allows you to fine tune the appearance of an ebook by
|
||||||
making small changes to its internals. In order to use Unpack Book,
|
making small changes to its internals. In order to use Unpack book,
|
||||||
you need to know a little bit about HTML and CSS, technologies that
|
you need to know a little bit about HTML and CSS, technologies that
|
||||||
are used in ebooks. Follow the steps:</p>
|
are used in ebooks. Follow the steps:</p>
|
||||||
<br>
|
<br>
|
||||||
<ol>
|
<ol>
|
||||||
<li>Click "Explode Book": This will "explode" the book into its
|
<li>Click "Explode book": This will "explode" the book into its
|
||||||
individual internal components.<br></li>
|
individual internal components.<br></li>
|
||||||
<li>Right click on any individual file and select "Open with..." to
|
<li>Right click on any individual file and select "Open with..." to
|
||||||
edit it in your favorite text editor.<br></li>
|
edit it in your favorite text editor.<br></li>
|
||||||
<li>When you are done: <b>close the file browser window
|
<li>When you are done: <b>close the file browser window
|
||||||
and the editor windows you used to make your tweaks</b>. Then click
|
and the editor windows you used to make your tweaks</b>. Then click
|
||||||
the "Rebuild Book" button, to update the book in your calibre
|
the "Rebuild book" button, to update the book in your calibre
|
||||||
library.</li>
|
library.</li>
|
||||||
</ol>'''))
|
</ol>'''))
|
||||||
self.help_label.setWordWrap(True)
|
self.help_label.setWordWrap(True)
|
||||||
@ -102,10 +102,10 @@ class UnpackBook(QDialog):
|
|||||||
b.setContentsMargins(left, top, right, bottom)
|
b.setContentsMargins(left, top, right, bottom)
|
||||||
l.addLayout(b, stretch=10)
|
l.addLayout(b, stretch=10)
|
||||||
|
|
||||||
self.explode_button = QPushButton(QIcon(I('wizard.png')), _('&Explode Book'))
|
self.explode_button = QPushButton(QIcon(I('wizard.png')), _('&Explode book'))
|
||||||
self.preview_button = QPushButton(QIcon(I('view.png')), _('&Preview Book'))
|
self.preview_button = QPushButton(QIcon(I('view.png')), _('&Preview book'))
|
||||||
self.cancel_button = QPushButton(QIcon(I('window-close.png')), _('&Cancel'))
|
self.cancel_button = QPushButton(QIcon(I('window-close.png')), _('&Cancel'))
|
||||||
self.rebuild_button = QPushButton(QIcon(I('exec.png')), _('&Rebuild Book'))
|
self.rebuild_button = QPushButton(QIcon(I('exec.png')), _('&Rebuild book'))
|
||||||
|
|
||||||
self.explode_button.setToolTip(
|
self.explode_button.setToolTip(
|
||||||
_('Explode the book to edit its components'))
|
_('Explode the book to edit its components'))
|
||||||
@ -324,7 +324,7 @@ class UnpackBookAction(InterfaceAction):
|
|||||||
def tweak_book(self):
|
def tweak_book(self):
|
||||||
row = self.gui.library_view.currentIndex()
|
row = self.gui.library_view.currentIndex()
|
||||||
if not row.isValid():
|
if not row.isValid():
|
||||||
return error_dialog(self.gui, _('Cannot unpack Book'),
|
return error_dialog(self.gui, _('Cannot unpack book'),
|
||||||
_('No book selected'), show=True)
|
_('No book selected'), show=True)
|
||||||
|
|
||||||
book_id = self.gui.library_view.model().id(row)
|
book_id = self.gui.library_view.model().id(row)
|
||||||
@ -337,13 +337,10 @@ class UnpackBookAction(InterfaceAction):
|
|||||||
tweakable_fmts = set(fmts).intersection({'epub', 'htmlz', 'azw3',
|
tweakable_fmts = set(fmts).intersection({'epub', 'htmlz', 'azw3',
|
||||||
'mobi', 'azw'})
|
'mobi', 'azw'})
|
||||||
if not tweakable_fmts:
|
if not tweakable_fmts:
|
||||||
return error_dialog(self.gui, _('Cannot unpack Book'),
|
return error_dialog(self.gui, _('Cannot unpack book'),
|
||||||
_('The book must be in ePub, HTMLZ or AZW3 formats to unpack.'
|
_('The book must be in ePub, HTMLZ or AZW3 formats to unpack.'
|
||||||
'\n\nFirst convert the book to one of these formats.'),
|
'\n\nFirst convert the book to one of these formats.'),
|
||||||
show=True)
|
show=True)
|
||||||
dlg = UnpackBook(self.gui, book_id, tweakable_fmts, db)
|
dlg = UnpackBook(self.gui, book_id, tweakable_fmts, db)
|
||||||
dlg.exec_()
|
dlg.exec_()
|
||||||
dlg.cleanup()
|
dlg.cleanup()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -186,7 +186,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tab_2">
|
<widget class="QWidget" name="tab_2">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Nam&e/Description ...</string>
|
<string>Nam&e/Description...</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
|
@ -186,7 +186,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tab_2">
|
<widget class="QWidget" name="tab_2">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Titl&e/Author/Price ...</string>
|
<string>Titl&e/Author/Price...</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
|
@ -70,9 +70,9 @@ def register_text_editor_actions(_reg, palette):
|
|||||||
ac.setToolTip(_('<h3>Subscript</h3>Set the selected text slightly smaller and below the normal line'))
|
ac.setToolTip(_('<h3>Subscript</h3>Set the selected text slightly smaller and below the normal line'))
|
||||||
ac = reg('format-text-color.png', _('&Color'), ('format_text', 'color'), 'format-text-color', (), _('Change text color'))
|
ac = reg('format-text-color.png', _('&Color'), ('format_text', 'color'), 'format-text-color', (), _('Change text color'))
|
||||||
ac.setToolTip(_('<h3>Color</h3>Change the color of the selected text'))
|
ac.setToolTip(_('<h3>Color</h3>Change the color of the selected text'))
|
||||||
ac = reg('format-fill-color.png', _('&Background Color'), ('format_text', 'background-color'),
|
ac = reg('format-fill-color.png', _('&Background color'), ('format_text', 'background-color'),
|
||||||
'format-text-background-color', (), _('Change background color of text'))
|
'format-text-background-color', (), _('Change background color of text'))
|
||||||
ac.setToolTip(_('<h3>Background Color</h3>Change the background color of the selected text'))
|
ac.setToolTip(_('<h3>Background color</h3>Change the background color of the selected text'))
|
||||||
ac = reg('format-justify-left.png', _('Align &left'), ('format_text', 'justify_left'), 'format-text-justify-left', (), _('Align left'))
|
ac = reg('format-justify-left.png', _('Align &left'), ('format_text', 'justify_left'), 'format-text-justify-left', (), _('Align left'))
|
||||||
ac.setToolTip(_('<h3>Align left</h3>Align the paragraph to the left'))
|
ac.setToolTip(_('<h3>Align left</h3>Align the paragraph to the left'))
|
||||||
ac = reg('format-justify-center.png', _('&Center'), ('format_text', 'justify_center'), 'format-text-justify-center', (), _('Center'))
|
ac = reg('format-justify-center.png', _('&Center'), ('format_text', 'justify_center'), 'format-text-justify-center', (), _('Center'))
|
||||||
|
@ -223,13 +223,13 @@ class UpdateMixin(object):
|
|||||||
if not plugin:
|
if not plugin:
|
||||||
return
|
return
|
||||||
if number_of_updates:
|
if number_of_updates:
|
||||||
plugin.qaction.setText(_('Plugin Updates')+'*')
|
plugin.qaction.setText(_('Plugin updates')+'*')
|
||||||
plugin.qaction.setIcon(QIcon(I('plugins/plugin_updater_updates.png')))
|
plugin.qaction.setIcon(QIcon(I('plugins/plugin_updater_updates.png')))
|
||||||
plugin.qaction.setToolTip(
|
plugin.qaction.setToolTip(
|
||||||
ngettext('A plugin update is available',
|
ngettext('A plugin update is available',
|
||||||
'There are {} plugin updates available', number_of_updates).format(number_of_updates))
|
'There are {} plugin updates available', number_of_updates).format(number_of_updates))
|
||||||
else:
|
else:
|
||||||
plugin.qaction.setText(_('Plugin Updates'))
|
plugin.qaction.setText(_('Plugin updates'))
|
||||||
plugin.qaction.setIcon(QIcon(I('plugins/plugin_updater.png')))
|
plugin.qaction.setIcon(QIcon(I('plugins/plugin_updater.png')))
|
||||||
plugin.qaction.setToolTip(_('Install and configure user plugins'))
|
plugin.qaction.setToolTip(_('Install and configure user plugins'))
|
||||||
|
|
||||||
@ -239,6 +239,7 @@ class UpdateMixin(object):
|
|||||||
calibre_version, number_of_plugin_updates = cPickle.loads(binascii.unhexlify(url[len('update:'):]))
|
calibre_version, number_of_plugin_updates = cPickle.loads(binascii.unhexlify(url[len('update:'):]))
|
||||||
self.update_found(calibre_version, number_of_plugin_updates, force=True)
|
self.update_found(calibre_version, number_of_plugin_updates, force=True)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
from calibre.gui2 import Application
|
from calibre.gui2 import Application
|
||||||
app = Application([])
|
app = Application([])
|
||||||
|
@ -911,7 +911,7 @@ You must enter the search URL for the search engine, with the placeholder
|
|||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tab_3">
|
<widget class="QWidget" name="tab_3">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>User &Stylesheet</string>
|
<string>User &stylesheet</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||||
<item>
|
<item>
|
||||||
|
@ -67,7 +67,7 @@
|
|||||||
<item row="1" column="1" colspan="2">
|
<item row="1" column="1" colspan="2">
|
||||||
<widget class="QLineEdit" name="relay_host">
|
<widget class="QLineEdit" name="relay_host">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>The hostname of your mail server. For e.g. smtp.gmail.com</string>
|
<string>The hostname of your mail server. For example, smtp.gmail.com</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user