From e8a3258dcb6db8d95aa28bf056c96eab074cb052 Mon Sep 17 00:00:00 2001
From: Kovid Goyal '+_('''A list of &folders on the device to
- which to send ebooks. The first one that exists will be used:'''))
+ which to send e-books. The first one that exists will be used:'''))
m.setWordWrap(True)
m.setBuddy(t)
l.addWidget(m, 0, 0, 1, 2)
@@ -281,7 +281,7 @@ class FormatRules(QGroupBox):
self.l = l = QVBoxLayout()
self.setLayout(l)
self.la = la = QLabel(' '+_(
- '''You can create rules that control where ebooks of a specific
+ '''You can create rules that control where e-books of a specific
format are sent to on the device. These will take precedence over
the folders specified above.'''))
la.setWordWrap(True)
diff --git a/src/calibre/gui2/dialogs/add_empty_book.py b/src/calibre/gui2/dialogs/add_empty_book.py
index c920d9dd7d..dbf66191e1 100644
--- a/src/calibre/gui2/dialogs/add_empty_book.py
+++ b/src/calibre/gui2/dialogs/add_empty_book.py
@@ -77,7 +77,7 @@ class AddEmptyBookDialog(QDialog):
self.tclear_button.clicked.connect(self.title_edit.clear)
self._layout.addWidget(self.tclear_button, 7, 1, 1, 1)
- self.format_label = QLabel(_('Also create an empty ebook in format:'))
+ self.format_label = QLabel(_('Also create an empty e-book in format:'))
self._layout.addWidget(self.format_label, 8, 0, 1, 2)
c = self.format_value = QComboBox(self)
from calibre.ebooks.oeb.polish.create import valid_empty_formats
@@ -97,7 +97,7 @@ class AddEmptyBookDialog(QDialog):
self.copy_formats = cf = QCheckBox(_('Also copy book &formats when duplicating a book'), self)
cf.setToolTip(_(
- 'Also copy all ebook files into the newly created duplicate'
+ 'Also copy all e-book files into the newly created duplicate'
' books.'))
cf.setChecked(gprefs.get('create_empty_copy_dup_formats', False))
self._layout.addWidget(cf, 10, 0, 1, -1)
@@ -171,6 +171,7 @@ class AddEmptyBookDialog(QDialog):
def selected_title(self):
return self.title_edit.text().strip()
+
if __name__ == '__main__':
from calibre.library import db
db = db()
diff --git a/src/calibre/gui2/dialogs/metadata_bulk.ui b/src/calibre/gui2/dialogs/metadata_bulk.ui
index 4ff008c347..52f33fd7dd 100644
--- a/src/calibre/gui2/dialogs/metadata_bulk.ui
+++ b/src/calibre/gui2/dialogs/metadata_bulk.ui
@@ -637,7 +637,7 @@ title and author are swapped before the title case is set
Last Page Read: %(loc)d (%(pr)d%%)") % dict(
+ _("%(time)s
Last page read: %(loc)d (%(pr)d%%)") % dict(
time=strftime(u'%x', timestamp.timetuple()),
loc=last_read_location,
pr=percent_read)))
else:
spanTag.insert(0,NavigableString(
- _("%(time)s
Last Page Read: Location %(loc)d (%(pr)d%%)") % dict(
+ _("%(time)s
Last page read: Location %(loc)d (%(pr)d%%)") % dict(
time=strftime(u'%x', timestamp.timetuple()),
loc=last_read_location,
pr=percent_read)))
diff --git a/src/calibre/gui2/add.py b/src/calibre/gui2/add.py
index d74452be6a..0953d5139e 100644
--- a/src/calibre/gui2/add.py
+++ b/src/calibre/gui2/add.py
@@ -210,7 +210,7 @@ class Adder(QObject):
return
if not self.file_groups:
error_dialog(self.pd, _('Could not add'), _(
- 'No ebook files were found in %s') % self.source, show=True)
+ 'No e-book files were found in %s') % self.source, show=True)
self.break_cycles()
return
self.pd.max = len(self.file_groups)
diff --git a/src/calibre/gui2/convert/regex_builder.py b/src/calibre/gui2/convert/regex_builder.py
index 74d6996ce3..eac54b9825 100644
--- a/src/calibre/gui2/convert/regex_builder.py
+++ b/src/calibre/gui2/convert/regex_builder.py
@@ -216,7 +216,7 @@ class RegexEdit(QWidget, Ui_Edit):
def builder(self):
if self.db is None:
self.doc_cache = _('Click the "Open" button below to open a '
- 'ebook to use for testing.')
+ 'e-book to use for testing.')
bld = RegexBuilder(self.db, self.book_id, self.edit.text(), self.doc_cache, self)
if bld.cancelled:
return
diff --git a/src/calibre/gui2/device_drivers/mtp_config.py b/src/calibre/gui2/device_drivers/mtp_config.py
index 90d420adf3..ef0522b252 100644
--- a/src/calibre/gui2/device_drivers/mtp_config.py
+++ b/src/calibre/gui2/device_drivers/mtp_config.py
@@ -130,7 +130,7 @@ class SendToConfig(QWidget): # {{{
self.l = l = QGridLayout(self)
self.setLayout(l)
self.m = m = QLabel('<a href="https://www.beam-ebooks.de/ebook/{identifiers'
':select(beam)}">Beam book</a>
'
- 'will generate a link to the book on the Beam ebooks site.') + '
%s
' % result.description) elif col == 2: if result.drm_free_only: - return ('' + _('This store only distributes ebooks without DRM.') + '
') + return ('' + _('This store only distributes e-books without DRM.') + '
') else: - return ('' + _('This store distributes ebooks with DRM. It may have some titles without DRM, but you will need to check on a per title basis.') + '
') # noqa + return ('' + _('This store distributes e-books with DRM. It may have some titles without DRM, but you will need to check on a per title basis.') + '
') # noqa elif col == 3: return ('' + _('This store is headquartered in %s. This is a good indication of what market the store caters to. However, this does not necessarily mean that the store is limited to that market only.') % result.headquarters + '
') # noqa elif col == 4: if result.affiliate: return ('' + _('Buying from this store supports the calibre developer: %s.') % result.author + '
') elif col == 5: - return ('' + _('This store distributes ebooks in the following formats: %s') % ', '.join(result.formats) + '
') + return ('' + _('This store distributes e-books in the following formats: %s') % ', '.join(result.formats) + '
') return None def setData(self, index, data, role): diff --git a/src/calibre/gui2/store/web_control.py b/src/calibre/gui2/store/web_control.py index 210c353f48..b1e1fe0e10 100644 --- a/src/calibre/gui2/store/web_control.py +++ b/src/calibre/gui2/store/web_control.py @@ -79,18 +79,18 @@ class NPWebView(QWebView): if ext not in BOOK_EXTENSIONS: if ext == 'acsm': from calibre.gui2.dialogs.confirm_delete import confirm - if not confirm('' + _('This ebook is a DRMed EPUB file. ' + if not confirm('
' + _('This e-book is a DRMed EPUB file. ' 'You will be prompted to save this file to your ' 'computer. Once it is saved, open it with ' '' 'Adobe Digital Editions (ADE).
ADE, in turn ' - 'will download the actual ebook, which will be a ' + 'will download the actual e-book, which will be a ' '.epub file. You can add this book to calibre ' 'using "Add Books" and selecting the file from ' 'the ADE library folder.'), 'acsm_download', self): return - name = choose_save_file(self, 'web-store-download-unknown', _('File is not a supported ebook type. Save to disk?'), initial_filename=filename) + name = choose_save_file(self, 'web-store-download-unknown', _('File is not a supported e-book type. Save to disk?'), initial_filename=filename) if name: self.gui.download_ebook(url, cf, name, name, False, create_browser=self.create_browser) else: diff --git a/src/calibre/gui2/tools.py b/src/calibre/gui2/tools.py index cd8b2349c9..0c56399ed3 100644 --- a/src/calibre/gui2/tools.py +++ b/src/calibre/gui2/tools.py @@ -101,7 +101,7 @@ def convert_single_ebook(parent, db, book_ids, auto_conversion=False, # {{{ if len(bad) == 1 and not bad[0][1]: title = db.title(bad[0][0], True) warning_dialog(parent, _('Could not convert'), '
'+ - _('Could not convert %s as it has no ebook files. If you ' + _('Could not convert %s as it has no e-book files. If you ' 'think it should have files, but calibre is not finding ' 'them, that is most likely because you moved the book\'s ' 'files around outside of calibre. You will need to find those files ' @@ -114,7 +114,7 @@ def convert_single_ebook(parent, db, book_ids, auto_conversion=False, # {{{ msg = _('No supported formats (Available formats: %s)')%( ', '.join(available_formats)) else: - msg = _('This book has no actual ebook files') + msg = _('This book has no actual e-book files') res.append('%s - %s'%(title, msg)) msg = '%s' % '\n'.join(res) diff --git a/src/calibre/gui2/tweak_book/boss.py b/src/calibre/gui2/tweak_book/boss.py index d1722dae3b..05040b9d47 100644 --- a/src/calibre/gui2/tweak_book/boss.py +++ b/src/calibre/gui2/tweak_book/boss.py @@ -661,7 +661,7 @@ class Boss(QObject): _('The name you have chosen {0} contains special characters, internally' ' it will look like: {1}Try to use only the English alphabet [a-z], numbers [0-9],' ' hyphens and underscores for file names. Other characters can cause problems for ' - ' different ebook viewers. Are you sure you want to proceed?').format( + ' different e-book viewers. Are you sure you want to proceed?').format( '
%s'%newname, '
%s' % urlnormalize(newname)), 'confirm-urlunsafe-change', parent=self.gui, title=_('Are you sure?'), config_set=tprefs): return diff --git a/src/calibre/gui2/tweak_book/preview.py b/src/calibre/gui2/tweak_book/preview.py index f607ffe58a..18ed430b46 100644 --- a/src/calibre/gui2/tweak_book/preview.py +++ b/src/calibre/gui2/tweak_book/preview.py @@ -386,8 +386,8 @@ class WebView(QWebView): The preview will update automatically as you make changes.
Note that this is a quick preview - only, it is not intended to simulate an actual ebook reader. Some - aspects of your ebook will not work, such as page breaks and page margins. + only, it is not intended to simulate an actual e-book reader. Some + aspects of your e-book will not work, such as page breaks and page margins. ''')) def inspect(self): diff --git a/src/calibre/gui2/ui.py b/src/calibre/gui2/ui.py index 6e7df1502e..981fb8a613 100644 --- a/src/calibre/gui2/ui.py +++ b/src/calibre/gui2/ui.py @@ -773,7 +773,7 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{ title = job.description.split(':')[-1].partition('(')[-1][:-1] msg = _('
Failed to convert: %s')%title msg += '
'+_('''
- Many older ebook reader devices are incapable of displaying
+ Many older e-book reader devices are incapable of displaying
EPUB files that have internal components over a certain size.
Therefore, when converting to EPUB, calibre automatically tries
to split up the EPUB into smaller sized pieces. For some
@@ -783,7 +783,7 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
maximum split size under EPUB Output in the conversion dialog,
or by turning on Heuristic Processing, also in the conversion
dialog. Note that if you make the maximum split size too large,
- your ebook reader may have trouble with the EPUB.
+ your e-book reader may have trouble with the EPUB.
''')
if not minz:
d = error_dialog(self, _('Conversion Failed'), msg,
diff --git a/src/calibre/gui2/viewer/config.py b/src/calibre/gui2/viewer/config.py
index a76796e28f..2f9cb2932f 100644
--- a/src/calibre/gui2/viewer/config.py
+++ b/src/calibre/gui2/viewer/config.py
@@ -25,7 +25,7 @@ from calibre.gui2.viewer.config_ui import Ui_Dialog
def config(defaults=None):
- desc = _('Options to customize the ebook viewer')
+ desc = _('Options to customize the e-book viewer')
if defaults is None:
c = Config('viewer', desc)
else:
@@ -53,7 +53,7 @@ def config(defaults=None):
c.add_opt('remember_current_page', default=True,
help=_('Save the current position in the document, when quitting'))
c.add_opt('copy_bookmarks_to_file', default=True,
- help=_('Copy bookmarks to the ebook file for easy sharing, if possible'))
+ help=_('Copy bookmarks to the e-book file for easy sharing, if possible'))
c.add_opt('wheel_flips_pages', default=False,
help=_('Have the mouse wheel turn pages'))
c.add_opt('wheel_scroll_fraction', default=100,
diff --git a/src/calibre/gui2/viewer/config.ui b/src/calibre/gui2/viewer/config.ui
index 8d7c6496e7..70ea633dec 100644
--- a/src/calibre/gui2/viewer/config.ui
+++ b/src/calibre/gui2/viewer/config.ui
@@ -842,10 +842,10 @@ You must enter the search URL for the search engine, with the placeholder