From 8cf5f1b4015da4305ba5a529649592d57a57655e Mon Sep 17 00:00:00 2001 From: Yuri Chornoivan Date: Fri, 27 Jan 2017 09:27:27 +0200 Subject: [PATCH] Fix minor typos --- calibre-plugin/config.py | 10 +++++----- calibre-plugin/dialogs.py | 2 +- calibre-plugin/fff_plugin.py | 2 +- included_dependencies/html5lib/html5parser.py | 2 +- .../html5lib/serializer/htmlserializer.py | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/calibre-plugin/config.py b/calibre-plugin/config.py index e10f6aa7..1f4bdc69 100644 --- a/calibre-plugin/config.py +++ b/calibre-plugin/config.py @@ -748,7 +748,7 @@ class PersonalIniTab(QWidget): horz = QHBoxLayout() vert.addLayout(horz) - pass_label = _("If checked, when updating/overwriting an existing book, FanFicFare will have the Calibre Columns available to use in replace_metadata, title_page, etc.
Click the button below to see the Calibre Column namess.")%no_trans + pass_label = _("If checked, when updating/overwriting an existing book, FanFicFare will have the Calibre Columns available to use in replace_metadata, title_page, etc.
Click the button below to see the Calibre Column names.")%no_trans self.cal_cols_pass_in = QCheckBox(_('Pass Calibre Columns into FanFicFare on Update/Overwrite')%no_trans,self) self.cal_cols_pass_in.setToolTip(pass_label) self.cal_cols_pass_in.setChecked(prefs['cal_cols_pass_in']) @@ -1009,14 +1009,14 @@ class CalibreCoverTab(QWidget): self.gcnewonly = QCheckBox(_("Generate Covers Only for New Books")%no_trans,self) self.gcnewonly.setToolTip(_("Default is to generate a cover any time the calibre metadata is" - " updated.
Used for both Calibre and Plugin generated covers.")) + " updated.
Used for both Calibre and Plugin generated covers.")) self.gcnewonly.setChecked(prefs['gcnewonly']) self.l.addWidget(self.gcnewonly) self.gencov_elements.append(self.gcnewonly) self.gc_polish_cover = QCheckBox(_("Inject/update the cover inside EPUB"),self) self.gc_polish_cover.setToolTip(_("Calibre's Polish feature will be used to inject or update the generated" - " cover into the EPUB ebook file.
Used for both Calibre and Plugin generated covers.")) + " cover into the EPUB ebook file.
Used for both Calibre and Plugin generated covers.")) self.gc_polish_cover.setChecked(prefs['gc_polish_cover']) self.l.addWidget(self.gc_polish_cover) self.gencov_elements.append(self.gc_polish_cover) @@ -1080,7 +1080,7 @@ class CalibreCoverTab(QWidget): self.allow_gc_from_ini = QCheckBox(_('Allow %(gcset)s from %(pini)s to override')%no_trans,self) self.allow_gc_from_ini.setToolTip(_("The %(pini)s parameter %(gcset)s allows you to choose a %(gc)s setting based on metadata" - " rather than site, but it's much more complex.
%(gcset)s is ignored when this is off.")%no_trans) + " rather than site, but it's much more complex.
%(gcset)s is ignored when this is off.")%no_trans) self.allow_gc_from_ini.setChecked(prefs['allow_gc_from_ini']) self.l.addWidget(self.allow_gc_from_ini) @@ -1374,7 +1374,7 @@ class CustomColumnsTab(QWidget): horz.addWidget(self.errorcol) self.save_all_errors = QCheckBox(_('Save All Errors'),self) - self.save_all_errors.setToolTip(_('If unchecked, these errors will not be saved:%s')%( + self.save_all_errors.setToolTip(_('If unchecked, these errors will not be saved: %s')%( '\n'+ '\n'.join((_("Not Overwriting, web site is not newer."), _("Already contains %d chapters.").replace('%d','X'))))) diff --git a/calibre-plugin/dialogs.py b/calibre-plugin/dialogs.py index 9bcd4bb2..33603f56 100644 --- a/calibre-plugin/dialogs.py +++ b/calibre-plugin/dialogs.py @@ -1414,7 +1414,7 @@ class IniTextDialog(SizePersistedDialog): cursor.setPosition(start) # Next we move the Cursor by over the match and pass the KeepAnchor parameter - # which will make the cursor select the the match's text + # which will make the cursor select the match's text cursor.movePosition(cursor.Right,cursor.KeepAnchor,end - start) # And finally we set this new cursor as the parent's diff --git a/calibre-plugin/fff_plugin.py b/calibre-plugin/fff_plugin.py index 3f301826..b4a3b458 100644 --- a/calibre-plugin/fff_plugin.py +++ b/calibre-plugin/fff_plugin.py @@ -1256,7 +1256,7 @@ class FanFicFarePlugin(InterfaceAction): raise NotGoingToDownload(_("Skipping duplicate story."),"list_remove.png") if len(identicalbooks) > 1: - raise NotGoingToDownload(_("More than one identical book by Identifer URL or title/author(s)--can't tell which book to update/overwrite."),"minusminus.png") + raise NotGoingToDownload(_("More than one identical book by Identifier URL or title/author(s)--can't tell which book to update/overwrite."),"minusminus.png") ## changed: add new book when CALIBREONLY if none found. if collision in (CALIBREONLY, CALIBREONLYSAVECOL) and not identicalbooks: diff --git a/included_dependencies/html5lib/html5parser.py b/included_dependencies/html5lib/html5parser.py index 12aa6a35..63250338 100644 --- a/included_dependencies/html5lib/html5parser.py +++ b/included_dependencies/html5lib/html5parser.py @@ -2564,7 +2564,7 @@ def getPhases(debug): self.tree.openElements.pop() if (not self.parser.innerHTML and self.tree.openElements[-1].name != "frameset"): - # If we're not in innerHTML mode and the the current node is not a + # If we're not in innerHTML mode and the current node is not a # "frameset" element (anymore) then switch. self.parser.phase = self.parser.phases["afterFrameset"] diff --git a/included_dependencies/html5lib/serializer/htmlserializer.py b/included_dependencies/html5lib/serializer/htmlserializer.py index be4d6344..e45f8a7e 100644 --- a/included_dependencies/html5lib/serializer/htmlserializer.py +++ b/included_dependencies/html5lib/serializer/htmlserializer.py @@ -205,7 +205,7 @@ class HTMLSerializer(object): if token["systemId"]: if token["systemId"].find('"') >= 0: if token["systemId"].find("'") >= 0: - self.serializeError("System identifer contains both single and double quote characters") + self.serializeError("System identifier contains both single and double quote characters") quote_char = "'" else: quote_char = '"'