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.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