4934: Menu items on SimpleTable and ScratchPad ignore translation strings for object class

svn: r17793
This commit is contained in:
Jérôme Rapinat 2011-06-15 11:56:15 +00:00
parent ee14f249f3
commit b8c0aaf572
2 changed files with 2 additions and 2 deletions

View File

@ -1332,7 +1332,7 @@ class MultiTreeView(gtk.TreeView):
popup.append(menu_item) popup.append(menu_item)
menu_item.show() menu_item.show()
# --------------------------- # ---------------------------
menu_item = gtk.MenuItem(_("the object|Make %s Active") % trans_objclass(objclass)) menu_item = gtk.MenuItem(_("the object|Make %s active") % trans_objclass(objclass))
menu_item.connect("activate", menu_item.connect("activate",
lambda widget: self.uistate.set_active(handle, objclass)) lambda widget: self.uistate.set_active(handle, objclass))
popup.append(menu_item) popup.append(menu_item)

View File

@ -140,7 +140,7 @@ class SimpleTable(object):
(index is not None and self.__link[index])): (index is not None and self.__link[index])):
objclass, handle = self.__link[index] objclass, handle = self.__link[index]
if objclass == 'Person': if objclass == 'Person':
menu_item = gtk.MenuItem(_("the object|Make %s Active") % trans_objclass('Person')) menu_item = gtk.MenuItem(_("the object|Make %s active") % trans_objclass('Person'))
menu_item.connect("activate", menu_item.connect("activate",
lambda widget: self.on_table_click(treeview)) lambda widget: self.on_table_click(treeview))
popup.append(menu_item) popup.append(menu_item)