mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1012069 (Impossible to make right translation)
This commit is contained in:
parent
6f68cfeea8
commit
1a2a042ed5
@ -25,11 +25,11 @@ class StoreAction(InterfaceAction):
|
|||||||
self.qaction.triggered.connect(self.do_search)
|
self.qaction.triggered.connect(self.do_search)
|
||||||
self.store_menu = self.qaction.menu()
|
self.store_menu = self.qaction.menu()
|
||||||
cm = partial(self.create_menu_action, self.store_menu)
|
cm = partial(self.create_menu_action, self.store_menu)
|
||||||
for x, t in [('author', _('author')), ('title', _('title')),
|
for x, t in [('author', _('this author')), ('title', _('this title')),
|
||||||
('book', _('book'))]:
|
('book', _('this book'))]:
|
||||||
func = getattr(self, 'search_%s'%('author_title' if x == 'book'
|
func = getattr(self, 'search_%s'%('author_title' if x == 'book'
|
||||||
else x))
|
else x))
|
||||||
ac = cm(x, _('Search for this %s')%t, triggered=func)
|
ac = cm(x, _('Search for %s')%t, triggered=func)
|
||||||
setattr(self, 'action_search_by_'+x, ac)
|
setattr(self, 'action_search_by_'+x, ac)
|
||||||
self.store_menu.addSeparator()
|
self.store_menu.addSeparator()
|
||||||
self.store_list_menu = self.store_menu.addMenu(_('Stores'))
|
self.store_list_menu = self.store_menu.addMenu(_('Stores'))
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user