String changes

This commit is contained in:
Kovid Goyal 2020-09-27 12:00:30 +05:30
parent a1d1b216f9
commit 912cd9813b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 3 deletions

View File

@ -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*@*'

View File

@ -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)