mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
commit
9efcd418eb
@ -43,7 +43,7 @@ class SimilarBooksAction(InterfaceAction):
|
|||||||
# Get the parameters for this search
|
# Get the parameters for this search
|
||||||
col = db.prefs['similar_' + typ + '_search_key']
|
col = db.prefs['similar_' + typ + '_search_key']
|
||||||
match = db.prefs['similar_' + typ + '_match_kind']
|
match = db.prefs['similar_' + typ + '_match_kind']
|
||||||
if match == _('Match all'):
|
if match == 'match_all':
|
||||||
join = ' and '
|
join = ' and '
|
||||||
else:
|
else:
|
||||||
join = ' or '
|
join = ' or '
|
||||||
|
@ -72,7 +72,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
|||||||
self.fill_gst_box(select=None)
|
self.fill_gst_box(select=None)
|
||||||
|
|
||||||
self.category_fields = fl
|
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_authors_match_kind', db.prefs, choices=ml)
|
||||||
r('similar_tags_match_kind', db.prefs, choices=ml)
|
r('similar_tags_match_kind', db.prefs, choices=ml)
|
||||||
r('similar_series_match_kind', db.prefs, choices=ml)
|
r('similar_series_match_kind', db.prefs, choices=ml)
|
||||||
|
@ -237,13 +237,13 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
|||||||
defs['column_color_rules'] = []
|
defs['column_color_rules'] = []
|
||||||
defs['grouped_search_make_user_categories'] = []
|
defs['grouped_search_make_user_categories'] = []
|
||||||
defs['similar_authors_search_key'] = 'authors'
|
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_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_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_search_key'] = 'series'
|
||||||
defs['similar_series_match_kind'] = _('Match any')
|
defs['similar_series_match_kind'] = 'match_any'
|
||||||
|
|
||||||
# Migrate the bool tristate tweak
|
# Migrate the bool tristate tweak
|
||||||
defs['bools_are_tristate'] = \
|
defs['bools_are_tristate'] = \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user