diff --git a/src/calibre/customize/__init__.py b/src/calibre/customize/__init__.py index f4cf5e878f..bbd9f7ef52 100644 --- a/src/calibre/customize/__init__.py +++ b/src/calibre/customize/__init__.py @@ -595,7 +595,7 @@ class InterfaceActionBase(Plugin): # {{{ supported_platforms = ['windows', 'osx', 'linux'] author = 'Kovid Goyal' - type = _('User Interface Action') + type = _('User interface action') can_be_disabled = False actual_plugin = None diff --git a/src/calibre/customize/builtins.py b/src/calibre/customize/builtins.py index cd5c735a31..5efd33bfb4 100644 --- a/src/calibre/customize/builtins.py +++ b/src/calibre/customize/builtins.py @@ -1187,7 +1187,7 @@ class Adding(PreferencesPlugin): icon = I('add_book.png') gui_name = _('Adding books') category = 'Import/Export' - gui_category = _('Import/Export') + gui_category = _('Import/export') category_order = 3 name_order = 1 config_widget = 'calibre.gui2.preferences.adding' @@ -1200,7 +1200,7 @@ class Saving(PreferencesPlugin): icon = I('save.png') gui_name = _('Saving books to disk') category = 'Import/Export' - gui_category = _('Import/Export') + gui_category = _('Import/export') category_order = 3 name_order = 2 config_widget = 'calibre.gui2.preferences.saving' @@ -1213,7 +1213,7 @@ class Sending(PreferencesPlugin): icon = I('sync.png') gui_name = _('Sending books to devices') category = 'Import/Export' - gui_category = _('Import/Export') + gui_category = _('Import/export') category_order = 3 name_order = 3 config_widget = 'calibre.gui2.preferences.sending' diff --git a/src/calibre/ebooks/conversion/plugins/snb_output.py b/src/calibre/ebooks/conversion/plugins/snb_output.py index 3ca336aa3b..bed5d61acf 100644 --- a/src/calibre/ebooks/conversion/plugins/snb_output.py +++ b/src/calibre/ebooks/conversion/plugins/snb_output.py @@ -124,7 +124,7 @@ class SNBOutput(OutputFormatPlugin): log.warn('This SNB file has no Table of Contents. ' 'Creating a default TOC') first = iter(oeb_book.spine).next() - oeb_book.toc.add(_('Start Page'), first.href) + oeb_book.toc.add(_('Start page'), first.href) else: first = iter(oeb_book.spine).next() if oeb_book.toc[0].href != first.href: diff --git a/src/calibre/ebooks/oeb/base.py b/src/calibre/ebooks/oeb/base.py index 453cee1e9f..7cedfce17d 100644 --- a/src/calibre/ebooks/oeb/base.py +++ b/src/calibre/ebooks/oeb/base.py @@ -1368,7 +1368,7 @@ class Guide(object): a fragment identifier. """ _TYPES_TITLES = [('cover', __('Cover')), - ('title-page', __('Title Page')), + ('title-page', __('Title page')), ('toc', __('Table of Contents')), ('index', __('Index')), ('glossary', __('Glossary')), @@ -1379,11 +1379,11 @@ class Guide(object): ('dedication', __('Dedication')), ('epigraph', __('Epigraph')), ('foreword', __('Foreword')), - ('loi', __('List of Illustrations')), - ('lot', __('List of Tables')), + ('loi', __('List of illustrations')), + ('lot', __('List of tables')), ('notes', __('Notes')), ('preface', __('Preface')), - ('text', __('Main Text'))] + ('text', __('Main text'))] TYPES = set(t for t, _ in _TYPES_TITLES) # noqa TITLES = dict(_TYPES_TITLES) ORDER = dict((t, i) for i, (t, _) in enumerate(_TYPES_TITLES)) # noqa diff --git a/src/calibre/ebooks/oeb/polish/check/links.py b/src/calibre/ebooks/oeb/polish/check/links.py index bb570183f7..02010c7ea9 100644 --- a/src/calibre/ebooks/oeb/polish/check/links.py +++ b/src/calibre/ebooks/oeb/polish/check/links.py @@ -349,7 +349,7 @@ def check_links(container): elif purl.path and purl.path.startswith('/') and purl.scheme in {'', 'file'}: a(LocalLink(_('The link %s points to a file outside the book') % fl(href), name, lnum, col)) elif purl.path and purl.scheme in {'', 'file'} and ':' in urlunquote(purl.path): - a(InvalidCharInLink(_('The link %s contains a : character, this will cause errors on windows computers') % fl(href), name, lnum, col)) + a(InvalidCharInLink(_('The link %s contains a : character, this will cause errors on Windows computers') % fl(href), name, lnum, col)) spine_docs = {name for name, linear in container.spine_names} spine_styles = {tname for name in spine_docs for tname in links_map[name] if container.mime_map.get(tname, None) in OEB_STYLES} diff --git a/src/calibre/gui2/device_drivers/mtp_folder_browser.py b/src/calibre/gui2/device_drivers/mtp_folder_browser.py index 9492d6411c..b054977e82 100644 --- a/src/calibre/gui2/device_drivers/mtp_folder_browser.py +++ b/src/calibre/gui2/device_drivers/mtp_folder_browser.py @@ -135,9 +135,9 @@ class IgnoredFolders(QDialog): QDialogButtonBox.Cancel) self.bb.accepted.connect(self.accept) self.bb.rejected.connect(self.reject) - self.sab = self.bb.addButton(_('Select &All'), self.bb.ActionRole) + self.sab = self.bb.addButton(_('Select &all'), self.bb.ActionRole) self.sab.clicked.connect(self.select_all) - self.snb = self.bb.addButton(_('Select &None'), self.bb.ActionRole) + self.snb = self.bb.addButton(_('Select &none'), self.bb.ActionRole) self.snb.clicked.connect(self.select_none) l.addWidget(self.bb) self.setWindowTitle(_('Choose folders to scan')) @@ -243,7 +243,7 @@ def ignored_folders(): dev.shutdown() return d.ignored_folders + if __name__ == '__main__': print (browse()) # print ('Ignored:', ignored_folders()) - diff --git a/src/calibre/gui2/dialogs/plugin_updater.py b/src/calibre/gui2/dialogs/plugin_updater.py index 464c1ed66a..6d293b06c1 100644 --- a/src/calibre/gui2/dialogs/plugin_updater.py +++ b/src/calibre/gui2/dialogs/plugin_updater.py @@ -551,7 +551,7 @@ class PluginUpdaterDialog(SizePersistedDialog): sep1.setSeparator(True) self.plugin_view.addAction(sep1) - self.toggle_enabled_action = QAction(_('Enable/&Disable plugin'), self) + self.toggle_enabled_action = QAction(_('Enable/&disable plugin'), self) self.toggle_enabled_action.setToolTip(_('Enable or disable this plugin')) self.toggle_enabled_action.triggered.connect(self._toggle_enabled_clicked) self.toggle_enabled_action.setEnabled(False) diff --git a/src/calibre/gui2/lrf_renderer/main.ui b/src/calibre/gui2/lrf_renderer/main.ui index 4143b4f509..c37eff4451 100644 --- a/src/calibre/gui2/lrf_renderer/main.ui +++ b/src/calibre/gui2/lrf_renderer/main.ui @@ -146,7 +146,7 @@ :/images/next.png:/images/next.png - Next Page + Next page diff --git a/src/calibre/gui2/preferences/search.py b/src/calibre/gui2/preferences/search.py index 4da1ec7570..d09f0d36e0 100644 --- a/src/calibre/gui2/preferences/search.py +++ b/src/calibre/gui2/preferences/search.py @@ -139,7 +139,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form): idx = self.gst_names.currentIndex() name = icu_lower(unicode(self.gst_names.currentText())) if not name: - return error_dialog(self.gui, _('Grouped Search Terms'), + return error_dialog(self.gui, _('Grouped search terms'), _('The search term cannot be blank'), show=True) if idx != 0: @@ -149,17 +149,17 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form): if name != orig_name: if name in self.db.field_metadata.get_search_terms() and \ name not in self.orig_gst_keys: - return error_dialog(self.gui, _('Grouped Search Terms'), + return error_dialog(self.gui, _('Grouped search terms'), _('That name is already used for a column or grouped search term'), show=True) if name in [icu_lower(p) for p in self.db.prefs.get('user_categories', {})]: - return error_dialog(self.gui, _('Grouped Search Terms'), + return error_dialog(self.gui, _('Grouped search terms'), _('That name is already used for user category'), show=True) val = [v.strip() for v in unicode(self.gst_value.text()).split(',') if v.strip()] if not val: - return error_dialog(self.gui, _('Grouped Search Terms'), + return error_dialog(self.gui, _('Grouped search terms'), _('The value box cannot be empty'), show=True) if orig_name and name != orig_name: @@ -172,7 +172,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form): def gst_delete_clicked(self): if self.gst_names.currentIndex() == 0: - return error_dialog(self.gui, _('Grouped Search Terms'), + return error_dialog(self.gui, _('Grouped search terms'), _('The empty grouped search term cannot be deleted'), show=True) name = unicode(self.gst_names.currentText()) if name in self.gst: