From 129a18d2c3affbc1881abf73c2154db207c9639d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 4 Dec 2020 05:42:41 +0530 Subject: [PATCH] String changes --- manual/develop.rst | 2 +- src/calibre/gui2/viewer/main.py | 2 +- src/pyj/read_book/overlay.pyj | 6 +++--- src/pyj/read_book/shortcuts.pyj | 6 +++--- src/pyj/read_book/ui.pyj | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/manual/develop.rst b/manual/develop.rst index b6cadc2a5b..2e7f5f25b0 100644 --- a/manual/develop.rst +++ b/manual/develop.rst @@ -292,7 +292,7 @@ terminal. For example, you can start the GUI from the terminal as:: calibre-debug -g -Similarly, you can start the e-book-viewer as:: +Similarly, you can start the E-book viewer as:: calibre-debug -w /path/to/file/to/be/viewed diff --git a/src/calibre/gui2/viewer/main.py b/src/calibre/gui2/viewer/main.py index 19edb4292b..1bf1142bdd 100644 --- a/src/calibre/gui2/viewer/main.py +++ b/src/calibre/gui2/viewer/main.py @@ -102,7 +102,7 @@ def send_message_to_viewer_instance(args, open_at): try: send_message_in_process(msg, address=viewer_socket_address()) except Exception as err: - error_dialog(None, _('Connect to viewer failed'), _( + error_dialog(None, _('Connect to E-book viewer failed'), _( 'Unable to connect to existing E-book viewer window, try restarting the viewer.'), det_msg=str(err), show=True) raise SystemExit(1) print('Opened book in existing viewer instance') diff --git a/src/pyj/read_book/overlay.pyj b/src/pyj/read_book/overlay.pyj index 6e82350692..913abe6b93 100644 --- a/src/pyj/read_book/overlay.pyj +++ b/src/pyj/read_book/overlay.pyj @@ -297,7 +297,7 @@ class MainOverlay: # {{{ E.ul( ac(_('Font size'), _('Change text size'), self.overlay.show_font_size_chooser, 'Aa', True), - ac(_('Preferences'), _('Configure the book viewer'), self.overlay.show_prefs, 'cogs'), + ac(_('Preferences'), _('Configure the E-book viewer'), self.overlay.show_prefs, 'cogs'), ), class_=MAIN_OVERLAY_ACTIONS_CLASS @@ -359,14 +359,14 @@ class MainOverlay: # {{{ actions_div.appendChild(E.ul( ac(_('Inspector'), _('Show the content inspector'), def(): self.overlay.hide(), ui_operations.toggle_inspector();, 'bug'), - ac(_('Reset interface'), _('Reset viewer panels, toolbars and scrollbars to defaults'), + ac(_('Reset interface'), _('Reset E-book viewer panels, toolbars and scrollbars to defaults'), def(): self.overlay.hide() ui_operations.reset_interface() sd = get_session_data() sd.set('skipped_dialogs', session_defaults.skipped_dialogs) , 'window-restore'), - ac(_('Quit'), _('Close the viewer'), + ac(_('Quit'), _('Close the E-book viewer'), def(): self.overlay.hide(), ui_operations.quit();, 'remove'), )) else: diff --git a/src/pyj/read_book/shortcuts.pyj b/src/pyj/read_book/shortcuts.pyj index 26f88fa8cb..ce40c04af4 100644 --- a/src/pyj/read_book/shortcuts.pyj +++ b/src/pyj/read_book/shortcuts.pyj @@ -311,13 +311,13 @@ def shortcuts_definition(): 'show_chrome': desc( v"['Escape', 'ContextMenu']", 'ui', - _('Show the viewer controls'), + _('Show the E-book viewer controls'), ), 'preferences': desc( v"['Ctrl+,', 'Ctrl+Escape', 'Meta+Escape', 'Meta+,']", 'ui', - _('Show viewer preferences'), + _('Show E-book viewer preferences'), ), 'goto_location': desc( @@ -378,7 +378,7 @@ def add_standalone_viewer_shortcuts(): sc['quit'] = desc( quit_shortcut, 'ui', - _('Quit the viewer'), + _('Quit the E-book viewer'), ) sc['print'] = desc( diff --git a/src/pyj/read_book/ui.pyj b/src/pyj/read_book/ui.pyj index 514d38fb05..962ba398c8 100644 --- a/src/pyj/read_book/ui.pyj +++ b/src/pyj/read_book/ui.pyj @@ -398,7 +398,7 @@ class ReadUI: x += progress_track[name] pbar.setAttribute('value', x + '') if x is total: - msg = _('Downloaded {}, saving to disk, this may take a few seconds...').format(human_readable(total)) + msg = _('Downloaded {}, saving to disk. This may take a few seconds...').format(human_readable(total)) else: msg = _('Downloaded {0}, {1} left').format(human_readable(x), human_readable(total - x)) progress.lastChild.textContent = msg @@ -515,7 +515,7 @@ class ReadUI: x += progress_track[name] pbar.setAttribute('value', x + '') if x is total: - msg = _('Downloaded {}, saving to disk, this may take a few seconds...').format(human_readable(total)) + msg = _('Downloaded {}, saving to disk. This may take a few seconds...').format(human_readable(total)) else: msg = _('Downloaded {0}, {1} left').format(human_readable(x), human_readable(total - x)) progress.lastChild.textContent = msg