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
d2ed90f043
commit
038b03da9a
@ -105,7 +105,7 @@ class KOBO(USBMS):
|
|||||||
' e-book file itself. With this option, calibre will send a '
|
' e-book file itself. With this option, calibre will send a '
|
||||||
'separate cover image to the reader, useful if you '
|
'separate cover image to the reader, useful if you '
|
||||||
'have modified the cover.'),
|
'have modified the cover.'),
|
||||||
_('Upload Black and White Covers'),
|
_('Upload black and white Covers'),
|
||||||
_('Show expired books') +
|
_('Show expired books') +
|
||||||
':::'+_('A bug in an earlier version left non kepubs book records'
|
':::'+_('A bug in an earlier version left non kepubs book records'
|
||||||
' in the database. With this option calibre will show the '
|
' in the database. With this option calibre will show the '
|
||||||
|
@ -52,8 +52,8 @@ class KOBOTOUCHConfig(TabbedDeviceConfig):
|
|||||||
self.tab1 = Tab1Config(self, self.device)
|
self.tab1 = Tab1Config(self, self.device)
|
||||||
self.tab2 = Tab2Config(self, self.device)
|
self.tab2 = Tab2Config(self, self.device)
|
||||||
|
|
||||||
self.addDeviceTab(self.tab1, _("Collections, Covers && Uploads"))
|
self.addDeviceTab(self.tab1, _("Collections, covers && uploads"))
|
||||||
self.addDeviceTab(self.tab2, _('Metadata, On Device && Advanced'))
|
self.addDeviceTab(self.tab2, _('Metadata, on device && advanced'))
|
||||||
|
|
||||||
def get_pref(self, key):
|
def get_pref(self, key):
|
||||||
return self.device.get_pref(key)
|
return self.device.get_pref(key)
|
||||||
@ -208,7 +208,7 @@ class CollectionsGroupBox(DeviceOptionsGroupBox):
|
|||||||
self.setChecked(device.get_pref('manage_collections'))
|
self.setChecked(device.get_pref('manage_collections'))
|
||||||
self.setToolTip(wrap_msg(_('Create new bookshelves on the Kobo if they do not exist. This is only for firmware V2.0.0 or later.')))
|
self.setToolTip(wrap_msg(_('Create new bookshelves on the Kobo if they do not exist. This is only for firmware V2.0.0 or later.')))
|
||||||
|
|
||||||
self.collections_columns_label = QLabel(_('Collections Columns:'))
|
self.collections_columns_label = QLabel(_('Collections columns:'))
|
||||||
self.collections_columns_edit = QLineEdit(self)
|
self.collections_columns_edit = QLineEdit(self)
|
||||||
self.collections_columns_edit.setToolTip(_('The Kobo from firmware V2.0.0 supports bookshelves.'
|
self.collections_columns_edit.setToolTip(_('The Kobo from firmware V2.0.0 supports bookshelves.'
|
||||||
' These are created on the Kobo. ' +
|
' These are created on the Kobo. ' +
|
||||||
@ -216,12 +216,12 @@ class CollectionsGroupBox(DeviceOptionsGroupBox):
|
|||||||
self.collections_columns_edit.setText(device.get_pref('collections_columns'))
|
self.collections_columns_edit.setText(device.get_pref('collections_columns'))
|
||||||
|
|
||||||
self.create_collections_checkbox = create_checkbox(
|
self.create_collections_checkbox = create_checkbox(
|
||||||
_("Create Collections"),
|
_("Create collections"),
|
||||||
_('Create new bookshelves on the Kobo if they do not exist. This is only for firmware V2.0.0 or later.'),
|
_('Create new bookshelves on the Kobo if they do not exist. This is only for firmware V2.0.0 or later.'),
|
||||||
device.get_pref('create_collections')
|
device.get_pref('create_collections')
|
||||||
)
|
)
|
||||||
self.delete_empty_collections_checkbox = create_checkbox(
|
self.delete_empty_collections_checkbox = create_checkbox(
|
||||||
_('Delete Empty Bookshelves'),
|
_('Delete empty bookshelves'),
|
||||||
_('Delete any empty bookshelves from the Kobo when syncing is finished. This is only for firmware V2.0.0 or later.'),
|
_('Delete any empty bookshelves from the Kobo when syncing is finished. This is only for firmware V2.0.0 or later.'),
|
||||||
device.get_pref('delete_empty_collections')
|
device.get_pref('delete_empty_collections')
|
||||||
)
|
)
|
||||||
@ -277,8 +277,8 @@ class CoversGroupBox(DeviceOptionsGroupBox):
|
|||||||
self.setToolTip(wrap_msg(_('Upload cover images from the calibre library when sending books to the device.')))
|
self.setToolTip(wrap_msg(_('Upload cover images from the calibre library when sending books to the device.')))
|
||||||
|
|
||||||
self.upload_grayscale_checkbox = create_checkbox(
|
self.upload_grayscale_checkbox = create_checkbox(
|
||||||
_('Upload Black and White Covers'),
|
_('Upload black and white Covers'),
|
||||||
_('Convert covers to Black and White when uploading'),
|
_('Convert covers to black and white when uploading'),
|
||||||
device.get_pref('upload_grayscale')
|
device.get_pref('upload_grayscale')
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -230,6 +230,7 @@ class ViewLog(QDialog): # {{{
|
|||||||
gprefs[self.unique_name] = bytearray(self.saveGeometry())
|
gprefs[self.unique_name] = bytearray(self.saveGeometry())
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
|
||||||
_proceed_memory = []
|
_proceed_memory = []
|
||||||
|
|
||||||
|
|
||||||
@ -270,7 +271,7 @@ class ProceedNotification(MessageBox): # {{{
|
|||||||
self.log_is_file = log_is_file
|
self.log_is_file = log_is_file
|
||||||
self.log_viewer_title = log_viewer_title
|
self.log_viewer_title = log_viewer_title
|
||||||
|
|
||||||
self.vlb = self.bb.addButton(_('View log'), self.bb.ActionRole)
|
self.vlb = self.bb.addButton(_('&View log'), self.bb.ActionRole)
|
||||||
self.vlb.setIcon(QIcon(I('debug.png')))
|
self.vlb.setIcon(QIcon(I('debug.png')))
|
||||||
self.vlb.clicked.connect(self.show_log)
|
self.vlb.clicked.connect(self.show_log)
|
||||||
self.det_msg_toggle.setVisible(bool(det_msg))
|
self.det_msg_toggle.setVisible(bool(det_msg))
|
||||||
@ -326,7 +327,7 @@ class ErrorNotification(MessageBox): # {{{
|
|||||||
self.log_viewer_title = log_viewer_title
|
self.log_viewer_title = log_viewer_title
|
||||||
self.finished.connect(self.do_close, type=Qt.QueuedConnection)
|
self.finished.connect(self.do_close, type=Qt.QueuedConnection)
|
||||||
|
|
||||||
self.vlb = self.bb.addButton(_('View log'), self.bb.ActionRole)
|
self.vlb = self.bb.addButton(_('&View log'), self.bb.ActionRole)
|
||||||
self.vlb.setIcon(QIcon(I('debug.png')))
|
self.vlb.setIcon(QIcon(I('debug.png')))
|
||||||
self.vlb.clicked.connect(self.show_log)
|
self.vlb.clicked.connect(self.show_log)
|
||||||
self.det_msg_toggle.setVisible(bool(det_msg))
|
self.det_msg_toggle.setVisible(bool(det_msg))
|
||||||
@ -473,6 +474,7 @@ class JobError(QDialog): # {{{
|
|||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
from calibre.gui2 import question_dialog, Application
|
from calibre.gui2 import question_dialog, Application
|
||||||
app = Application([])
|
app = Application([])
|
||||||
|
@ -1046,7 +1046,7 @@ class FullFetch(QDialog): # {{{
|
|||||||
self.prev_button = pb = QPushButton(QIcon(I('back.png')), _('&Back'), self)
|
self.prev_button = pb = QPushButton(QIcon(I('back.png')), _('&Back'), self)
|
||||||
pb.clicked.connect(self.back_clicked)
|
pb.clicked.connect(self.back_clicked)
|
||||||
pb.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
|
pb.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
|
||||||
self.log_button = self.bb.addButton(_('View log'), self.bb.ActionRole)
|
self.log_button = self.bb.addButton(_('&View log'), self.bb.ActionRole)
|
||||||
self.log_button.clicked.connect(self.view_log)
|
self.log_button.clicked.connect(self.view_log)
|
||||||
self.log_button.setIcon(QIcon(I('debug.png')))
|
self.log_button.setIcon(QIcon(I('debug.png')))
|
||||||
self.prev_button.setVisible(False)
|
self.prev_button.setVisible(False)
|
||||||
@ -1159,7 +1159,7 @@ class CoverFetch(QDialog): # {{{
|
|||||||
|
|
||||||
self.bb = QDialogButtonBox(QDialogButtonBox.Cancel|QDialogButtonBox.Ok)
|
self.bb = QDialogButtonBox(QDialogButtonBox.Cancel|QDialogButtonBox.Ok)
|
||||||
l.addWidget(self.bb)
|
l.addWidget(self.bb)
|
||||||
self.log_button = self.bb.addButton(_('View log'), self.bb.ActionRole)
|
self.log_button = self.bb.addButton(_('&View log'), self.bb.ActionRole)
|
||||||
self.log_button.clicked.connect(self.view_log)
|
self.log_button.clicked.connect(self.view_log)
|
||||||
self.log_button.setIcon(QIcon(I('debug.png')))
|
self.log_button.setIcon(QIcon(I('debug.png')))
|
||||||
self.bb.rejected.connect(self.reject)
|
self.bb.rejected.connect(self.reject)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user