From fca12a71cb527b8cdf7518643194d162116d8150 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 16 May 2021 20:14:35 +0530 Subject: [PATCH] String changes --- src/calibre/devices/mtp/base.py | 4 +--- src/calibre/devices/prst1/driver.py | 2 +- src/calibre/ebooks/conversion/plugins/recipe_input.py | 2 +- src/calibre/gui2/actions/delete.py | 2 +- src/calibre/gui2/preferences/look_feel.py | 2 +- src/calibre/gui2/tweak_book/preview.py | 4 ++-- src/calibre/gui2/ui.py | 4 ++-- src/pyj/book_list/book_details.pyj | 2 +- 8 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/calibre/devices/mtp/base.py b/src/calibre/devices/mtp/base.py index eaf199671d..0c6d5c5540 100644 --- a/src/calibre/devices/mtp/base.py +++ b/src/calibre/devices/mtp/base.py @@ -28,7 +28,7 @@ def synchronous(func): class MTPDeviceBase(DevicePlugin): name = 'MTP Device Interface' - gui_name = _('MTP Device') + gui_name = _('MTP device') icon = I('devices/tablet.png') description = _('Communicate with MTP devices') author = 'Kovid Goyal' @@ -63,5 +63,3 @@ class MTPDeviceBase(DevicePlugin): def is_customizable(self): return True - - diff --git a/src/calibre/devices/prst1/driver.py b/src/calibre/devices/prst1/driver.py index b9dfc65406..2df0d9d722 100644 --- a/src/calibre/devices/prst1/driver.py +++ b/src/calibre/devices/prst1/driver.py @@ -94,7 +94,7 @@ class PRST1(USBMS): _('Set this option if you want the author on the Sony to ' 'appear the same way the T1 sets it. This means it will ' 'only show the first author for books with multiple authors. ' - 'Leave this disabled if you use Metadata Plugboards.') + 'Leave this disabled if you use Metadata plugboards.') ] EXTRA_CUSTOMIZATION_DEFAULT = [ ', '.join(['series', 'tags']), diff --git a/src/calibre/ebooks/conversion/plugins/recipe_input.py b/src/calibre/ebooks/conversion/plugins/recipe_input.py index ca3ba5b1b0..43cca8b130 100644 --- a/src/calibre/ebooks/conversion/plugins/recipe_input.py +++ b/src/calibre/ebooks/conversion/plugins/recipe_input.py @@ -22,7 +22,7 @@ class RecipeInput(InputFormatPlugin): name = 'Recipe Input' author = 'Kovid Goyal' - description = _('Download periodical content from the internet') + description = _('Download periodical content from the Internet') file_types = {'recipe', 'downloaded_recipe'} commit_name = 'recipe_input' diff --git a/src/calibre/gui2/actions/delete.py b/src/calibre/gui2/actions/delete.py index edcbc485ef..1fba700bd7 100644 --- a/src/calibre/gui2/actions/delete.py +++ b/src/calibre/gui2/actions/delete.py @@ -38,7 +38,7 @@ class MultiDeleter(QObject): # {{{ _('You are trying to delete %d books. ' 'Sending so many files to the Recycle' ' Bin can be slow. Should calibre skip the' - ' Recycle Bin? If you click Yes the files' + ' recycle bin? If you click Yes the files' ' will be permanently deleted.')%len(ids), add_abort_button=True ): diff --git a/src/calibre/gui2/preferences/look_feel.py b/src/calibre/gui2/preferences/look_feel.py index ea3ff03572..eda0338364 100644 --- a/src/calibre/gui2/preferences/look_feel.py +++ b/src/calibre/gui2/preferences/look_feel.py @@ -571,7 +571,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form): b.setSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed) l.addWidget(b, 1, 1) b.clicked.connect(self.change_cover_grid_texture) - self.cover_grid_default_appearance_button = b = QPushButton(_('Restore &default appearance'), self) + self.cover_grid_default_appearance_button = b = QPushButton(_('Restore default &appearance'), self) b.setSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed) l.addWidget(b, 2, 1) b.clicked.connect(self.restore_cover_grid_appearance) diff --git a/src/calibre/gui2/tweak_book/preview.py b/src/calibre/gui2/tweak_book/preview.py index 1ac8760c06..d126a670f6 100644 --- a/src/calibre/gui2/tweak_book/preview.py +++ b/src/calibre/gui2/tweak_book/preview.py @@ -726,9 +726,9 @@ class Preview(QWidget): self.refresh() def split_toggled(self, checked): - actions['split-in-preview'].setToolTip(textwrap.fill(_( + actions['split-in-preview'].setToolTip('

' + (_( 'Abort file split') if checked else _( - 'Split this file at a specified location.\n\nAfter clicking this button, click' + 'Split this file at a specified location.

After clicking this button, click' ' inside the preview panel above at the location you want the file to be split.'))) if checked: self.split_start_requested.emit() diff --git a/src/calibre/gui2/ui.py b/src/calibre/gui2/ui.py index a12f56c690..3353a02e72 100644 --- a/src/calibre/gui2/ui.py +++ b/src/calibre/gui2/ui.py @@ -1091,8 +1091,8 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{ from calibre.db.delete_service import has_jobs if has_jobs(): - msg = _('Some deleted books are still being moved to the Recycle ' - 'Bin, if you quit now, they will be left behind. Are you ' + msg = _('Some deleted books are still being moved to the recycle ' + 'bin, if you quit now, they will be left behind. Are you ' 'sure you want to quit?') if not question_dialog(self, _('Active jobs'), msg): return False diff --git a/src/pyj/book_list/book_details.pyj b/src/pyj/book_list/book_details.pyj index ce5a4c1fdc..dbd62a5407 100644 --- a/src/pyj/book_list/book_details.pyj +++ b/src/pyj/book_list/book_details.pyj @@ -507,7 +507,7 @@ def render_book(container_id, book_id): def prev_next_button(is_prev): return E.div( style=button_style, - title=_('Previous book') if is_prev else _('Next book'), + title=_('Previous book [Ctrl+Left]') if is_prev else _('Next book [Ctrl+Right]'), class_='next-book-button', svgicon('chevron-left' if is_prev else 'chevron-right'), onclick=next_book.bind(None, book_id, (-1 if is_prev else 1))