diff --git a/src/calibre/db/search.py b/src/calibre/db/search.py index 1fd4977edc..3cf1b044d0 100644 --- a/src/calibre/db/search.py +++ b/src/calibre/db/search.py @@ -639,7 +639,7 @@ class Parser(SearchQueryParser): # {{{ if DEBUG: import traceback traceback.print_exc() - raise ParseException(_('search template: missing or invalid separator. Valid separtors are: {}').format('#@#:[tdnb]:')) + raise ParseException(_('search template: missing or invalid separator. Valid separators are: {}').format('#@#:[tdnb]:')) matchkind, query = _matchkind(query, case_sensitive=case_sensitive) matches = set() error_string = '*@*TEMPLATE_ERROR*@*' diff --git a/src/calibre/gui2/dialogs/search.py b/src/calibre/gui2/dialogs/search.py index 2de97b7a48..2bd5090f04 100644 --- a/src/calibre/gui2/dialogs/search.py +++ b/src/calibre/gui2/dialogs/search.py @@ -249,7 +249,7 @@ def create_template_tab(self): _("You can use the search test specifications described " "in the calibre documentation. For example, with Number " "comparisons you can the relational operators like '>=' etc. " - "With Text comparisons you can use exact, comtains " + "With Text comparisons you can use exact, contains " "or regular expression matches. With Date you can use " "today, yesterday, etc. Set/not set takes 'true' for set " "and 'false' for not set.") @@ -262,7 +262,7 @@ def create_template_tab(self): ('t', _('Text')), ('d', _('Date')), ('n', _('Number')), - ('b', _('Set/Not Set'))]: + ('b', _('Set/Not set'))]: le.addItem(desc, op) le.setToolTip(_('How the template result will be compared to the value')) l.addRow(_('C&omparison type:'), le)