4934: context for translators
svn: r17776
This commit is contained in:
parent
49d9d8dc5b
commit
33fa065bb5
@ -1326,13 +1326,13 @@ class MultiTreeView(gtk.TreeView):
|
|||||||
objclass, handle = None, None
|
objclass, handle = None, None
|
||||||
if objclass in ['Person', 'Event', 'Media', 'Source',
|
if objclass in ['Person', 'Event', 'Media', 'Source',
|
||||||
'Repository', 'Family', 'Note', 'Place']:
|
'Repository', 'Family', 'Note', 'Place']:
|
||||||
menu_item = gtk.MenuItem(_("See %s details") % trans_objclass(objclass))
|
menu_item = gtk.MenuItem(_("the object|See %s details") % trans_objclass(objclass))
|
||||||
menu_item.connect("activate",
|
menu_item.connect("activate",
|
||||||
lambda widget: self.edit_obj(objclass, handle))
|
lambda widget: self.edit_obj(objclass, handle))
|
||||||
popup.append(menu_item)
|
popup.append(menu_item)
|
||||||
menu_item.show()
|
menu_item.show()
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
menu_item = gtk.MenuItem(_("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)
|
||||||
@ -1348,7 +1348,7 @@ class MultiTreeView(gtk.TreeView):
|
|||||||
obj = self.dbstate.db.get_table_metadata(objclass)["handle_func"](my_handle)
|
obj = self.dbstate.db.get_table_metadata(objclass)["handle_func"](my_handle)
|
||||||
if obj:
|
if obj:
|
||||||
gids.add(obj.gramps_id)
|
gids.add(obj.gramps_id)
|
||||||
menu_item = gtk.MenuItem(_("Create Filter from %s selected...") % trans_objclass(objclass))
|
menu_item = gtk.MenuItem(_("the object|Create Filter from %s selected...") % trans_objclass(objclass))
|
||||||
menu_item.connect("activate",
|
menu_item.connect("activate",
|
||||||
lambda widget: make_filter(self.dbstate, self.uistate,
|
lambda widget: make_filter(self.dbstate, self.uistate,
|
||||||
objclass, gids, title=self.title))
|
objclass, gids, title=self.title))
|
||||||
|
@ -25,7 +25,7 @@ Provide a simplified table creation interface
|
|||||||
|
|
||||||
import cgi
|
import cgi
|
||||||
import copy
|
import copy
|
||||||
from gen.ggettext import gettext as _
|
from gen.ggettext import sgettext as _
|
||||||
from TransUtils import trans_objclass
|
from TransUtils import trans_objclass
|
||||||
import cPickle as pickle
|
import cPickle as pickle
|
||||||
|
|
||||||
@ -130,7 +130,7 @@ class SimpleTable(object):
|
|||||||
if (index is not None and self.__link[index]):
|
if (index is not None and self.__link[index]):
|
||||||
# See details (edit, etc):
|
# See details (edit, etc):
|
||||||
objclass, handle = self.__link[index]
|
objclass, handle = self.__link[index]
|
||||||
menu_item = gtk.MenuItem(_("See %s details") % trans_objclass(objclass))
|
menu_item = gtk.MenuItem(_("the object|See %s details") % trans_objclass(objclass))
|
||||||
menu_item.connect("activate",
|
menu_item.connect("activate",
|
||||||
lambda widget: self.on_table_doubleclick(treeview))
|
lambda widget: self.on_table_doubleclick(treeview))
|
||||||
popup.append(menu_item)
|
popup.append(menu_item)
|
||||||
@ -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(_("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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user