mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-07 22:35:56 +01:00
...
This commit is contained in:
commit
9efcd418eb
3 changed files with 6 additions and 6 deletions
|
|
@ -43,7 +43,7 @@ def show_similar_books(self, typ, *args):
|
|||
# Get the parameters for this search
|
||||
col = db.prefs['similar_' + typ + '_search_key']
|
||||
match = db.prefs['similar_' + typ + '_match_kind']
|
||||
if match == _('Match all'):
|
||||
if match == 'match_all':
|
||||
join = ' and '
|
||||
else:
|
||||
join = ' or '
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ def genesis(self, gui):
|
|||
self.fill_gst_box(select=None)
|
||||
|
||||
self.category_fields = fl
|
||||
ml = [_('Match any'), _('Match all')]
|
||||
ml = [(_('Match any'), 'match_any'), (_('Match all'), 'match_all')]
|
||||
r('similar_authors_match_kind', db.prefs, choices=ml)
|
||||
r('similar_tags_match_kind', db.prefs, choices=ml)
|
||||
r('similar_series_match_kind', db.prefs, choices=ml)
|
||||
|
|
|
|||
|
|
@ -237,13 +237,13 @@ def initialize_dynamic(self):
|
|||
defs['column_color_rules'] = []
|
||||
defs['grouped_search_make_user_categories'] = []
|
||||
defs['similar_authors_search_key'] = 'authors'
|
||||
defs['similar_authors_match_kind'] = _('Match any')
|
||||
defs['similar_authors_match_kind'] = 'match_any'
|
||||
defs['similar_publisher_search_key'] = 'publisher'
|
||||
defs['similar_publisher_match_kind'] = _('Match any')
|
||||
defs['similar_publisher_match_kind'] = 'match_any'
|
||||
defs['similar_tags_search_key'] = 'tags'
|
||||
defs['similar_tags_match_kind'] = _('Match all')
|
||||
defs['similar_tags_match_kind'] = 'match_all'
|
||||
defs['similar_series_search_key'] = 'series'
|
||||
defs['similar_series_match_kind'] = _('Match any')
|
||||
defs['similar_series_match_kind'] = 'match_any'
|
||||
|
||||
# Migrate the bool tristate tweak
|
||||
defs['bools_are_tristate'] = \
|
||||
|
|
|
|||
Loading…
Reference in a new issue