mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
String changes
This commit is contained in:
parent
3a400dcc15
commit
f5c9841c83
@ -220,7 +220,7 @@ def details_context_menu_event(view, ev, book_info): # {{{
|
||||
data = el.attribute('data-item')
|
||||
author = el.toPlainText() if unicode(el.attribute('calibre-data')) == u'authors' else None
|
||||
if url and not url.startswith('search:'):
|
||||
for a, t in [('copy', _('&Copy Link')),
|
||||
for a, t in [('copy', _('&Copy link')),
|
||||
]:
|
||||
ac = getattr(book_info, '%s_link_action'%a)
|
||||
ac.current_url = url
|
||||
|
@ -531,7 +531,7 @@ class SavedSearchBoxMixin(object): # {{{
|
||||
self.saved_search.copy_search_button_clicked)
|
||||
# self.saved_searches_changed()
|
||||
self.saved_search.initialize(self.search, colorize=True,
|
||||
help_text=_('Saved Searches'))
|
||||
help_text=_('Saved searches'))
|
||||
self.saved_search.tool_tip_text=_('Choose saved search or enter name for new saved search')
|
||||
self.saved_search.setToolTip(self.saved_search.tool_tip_text)
|
||||
self.saved_search.setStatusTip(self.saved_search.tool_tip_text)
|
||||
|
@ -134,7 +134,7 @@ class CreateVirtualLibrary(QDialog): # {{{
|
||||
'<a href="publisher.{2}">{2}</a>, '
|
||||
'<a href="series.{3}">{3}</a>, '
|
||||
'<a href="search.{4}">{4}</a>.').format(_('Authors'), _('Tags'),
|
||||
_('Publishers'), _('Series'), _('Saved Searches')))
|
||||
_('Publishers'), _('Series'), _('Saved searches')))
|
||||
sl.setWordWrap(True)
|
||||
sl.setTextInteractionFlags(Qt.LinksAccessibleByMouse)
|
||||
sl.linkActivated.connect(self.link_activated)
|
||||
|
@ -1203,7 +1203,7 @@ class SavedSearches(QWidget):
|
||||
|
||||
def import_searches(self):
|
||||
path = choose_files(self, 'import_saved_searches', _('Choose file'), filters=[
|
||||
(_('Saved Searches'), ['json'])], all_files=False, select_only_single_file=True)
|
||||
(_('Saved searches'), ['json'])], all_files=False, select_only_single_file=True)
|
||||
if path:
|
||||
with open(path[0], 'rb') as f:
|
||||
obj = json.loads(f.read())
|
||||
@ -1245,7 +1245,7 @@ class SavedSearches(QWidget):
|
||||
'No searches selected'), show=True)
|
||||
[s.__setitem__('mode', s.get('mode', 'regex')) for s in searches]
|
||||
path = choose_save_file(self, 'export-saved-searches', _('Choose file'), filters=[
|
||||
(_('Saved Searches'), ['json'])], all_files=False)
|
||||
(_('Saved searches'), ['json'])], all_files=False)
|
||||
if path:
|
||||
if not path.lower().endswith('.json'):
|
||||
path += '.json'
|
||||
|
Loading…
x
Reference in New Issue
Block a user