Fix #1012069 (Impossible to make right translation)

This commit is contained in:
Kovid Goyal 2012-06-12 19:37:04 +05:30
parent 6f68cfeea8
commit 1a2a042ed5
2 changed files with 279 additions and 258 deletions

View File

@ -25,11 +25,11 @@ class StoreAction(InterfaceAction):
self.qaction.triggered.connect(self.do_search)
self.store_menu = self.qaction.menu()
cm = partial(self.create_menu_action, self.store_menu)
for x, t in [('author', _('author')), ('title', _('title')),
('book', _('book'))]:
for x, t in [('author', _('this author')), ('title', _('this title')),
('book', _('this book'))]:
func = getattr(self, 'search_%s'%('author_title' if x == 'book'
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)
self.store_menu.addSeparator()
self.store_list_menu = self.store_menu.addMenu(_('Stores'))

File diff suppressed because it is too large Load Diff