mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
String changes
This commit is contained in:
parent
508f957b05
commit
129a18d2c3
@ -292,7 +292,7 @@ terminal. For example, you can start the GUI from the terminal as::
|
|||||||
|
|
||||||
calibre-debug -g
|
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
|
calibre-debug -w /path/to/file/to/be/viewed
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ def send_message_to_viewer_instance(args, open_at):
|
|||||||
try:
|
try:
|
||||||
send_message_in_process(msg, address=viewer_socket_address())
|
send_message_in_process(msg, address=viewer_socket_address())
|
||||||
except Exception as err:
|
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)
|
'Unable to connect to existing E-book viewer window, try restarting the viewer.'), det_msg=str(err), show=True)
|
||||||
raise SystemExit(1)
|
raise SystemExit(1)
|
||||||
print('Opened book in existing viewer instance')
|
print('Opened book in existing viewer instance')
|
||||||
|
@ -297,7 +297,7 @@ class MainOverlay: # {{{
|
|||||||
|
|
||||||
E.ul(
|
E.ul(
|
||||||
ac(_('Font size'), _('Change text size'), self.overlay.show_font_size_chooser, 'Aa', True),
|
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
|
class_=MAIN_OVERLAY_ACTIONS_CLASS
|
||||||
@ -359,14 +359,14 @@ class MainOverlay: # {{{
|
|||||||
actions_div.appendChild(E.ul(
|
actions_div.appendChild(E.ul(
|
||||||
ac(_('Inspector'), _('Show the content inspector'),
|
ac(_('Inspector'), _('Show the content inspector'),
|
||||||
def(): self.overlay.hide(), ui_operations.toggle_inspector();, 'bug'),
|
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():
|
def():
|
||||||
self.overlay.hide()
|
self.overlay.hide()
|
||||||
ui_operations.reset_interface()
|
ui_operations.reset_interface()
|
||||||
sd = get_session_data()
|
sd = get_session_data()
|
||||||
sd.set('skipped_dialogs', session_defaults.skipped_dialogs)
|
sd.set('skipped_dialogs', session_defaults.skipped_dialogs)
|
||||||
, 'window-restore'),
|
, 'window-restore'),
|
||||||
ac(_('Quit'), _('Close the viewer'),
|
ac(_('Quit'), _('Close the E-book viewer'),
|
||||||
def(): self.overlay.hide(), ui_operations.quit();, 'remove'),
|
def(): self.overlay.hide(), ui_operations.quit();, 'remove'),
|
||||||
))
|
))
|
||||||
else:
|
else:
|
||||||
|
@ -311,13 +311,13 @@ def shortcuts_definition():
|
|||||||
'show_chrome': desc(
|
'show_chrome': desc(
|
||||||
v"['Escape', 'ContextMenu']",
|
v"['Escape', 'ContextMenu']",
|
||||||
'ui',
|
'ui',
|
||||||
_('Show the viewer controls'),
|
_('Show the E-book viewer controls'),
|
||||||
),
|
),
|
||||||
|
|
||||||
'preferences': desc(
|
'preferences': desc(
|
||||||
v"['Ctrl+,', 'Ctrl+Escape', 'Meta+Escape', 'Meta+,']",
|
v"['Ctrl+,', 'Ctrl+Escape', 'Meta+Escape', 'Meta+,']",
|
||||||
'ui',
|
'ui',
|
||||||
_('Show viewer preferences'),
|
_('Show E-book viewer preferences'),
|
||||||
),
|
),
|
||||||
|
|
||||||
'goto_location': desc(
|
'goto_location': desc(
|
||||||
@ -378,7 +378,7 @@ def add_standalone_viewer_shortcuts():
|
|||||||
sc['quit'] = desc(
|
sc['quit'] = desc(
|
||||||
quit_shortcut,
|
quit_shortcut,
|
||||||
'ui',
|
'ui',
|
||||||
_('Quit the viewer'),
|
_('Quit the E-book viewer'),
|
||||||
)
|
)
|
||||||
|
|
||||||
sc['print'] = desc(
|
sc['print'] = desc(
|
||||||
|
@ -398,7 +398,7 @@ class ReadUI:
|
|||||||
x += progress_track[name]
|
x += progress_track[name]
|
||||||
pbar.setAttribute('value', x + '')
|
pbar.setAttribute('value', x + '')
|
||||||
if x is total:
|
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:
|
else:
|
||||||
msg = _('Downloaded {0}, {1} left').format(human_readable(x), human_readable(total - x))
|
msg = _('Downloaded {0}, {1} left').format(human_readable(x), human_readable(total - x))
|
||||||
progress.lastChild.textContent = msg
|
progress.lastChild.textContent = msg
|
||||||
@ -515,7 +515,7 @@ class ReadUI:
|
|||||||
x += progress_track[name]
|
x += progress_track[name]
|
||||||
pbar.setAttribute('value', x + '')
|
pbar.setAttribute('value', x + '')
|
||||||
if x is total:
|
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:
|
else:
|
||||||
msg = _('Downloaded {0}, {1} left').format(human_readable(x), human_readable(total - x))
|
msg = _('Downloaded {0}, {1} left').format(human_readable(x), human_readable(total - x))
|
||||||
progress.lastChild.textContent = msg
|
progress.lastChild.textContent = msg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user