4934: context for translators

svn: r17776
This commit is contained in:
Jérôme Rapinat 2011-06-14 13:59:13 +00:00
parent 49d9d8dc5b
commit 33fa065bb5
2 changed files with 6 additions and 6 deletions

View File

@ -1326,13 +1326,13 @@ class MultiTreeView(gtk.TreeView):
objclass, handle = None, None
if objclass in ['Person', 'Event', 'Media', 'Source',
'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",
lambda widget: self.edit_obj(objclass, handle))
popup.append(menu_item)
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",
lambda widget: self.uistate.set_active(handle, objclass))
popup.append(menu_item)
@ -1348,7 +1348,7 @@ class MultiTreeView(gtk.TreeView):
obj = self.dbstate.db.get_table_metadata(objclass)["handle_func"](my_handle)
if obj:
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",
lambda widget: make_filter(self.dbstate, self.uistate,
objclass, gids, title=self.title))

View File

@ -25,7 +25,7 @@ Provide a simplified table creation interface
import cgi
import copy
from gen.ggettext import gettext as _
from gen.ggettext import sgettext as _
from TransUtils import trans_objclass
import cPickle as pickle
@ -130,7 +130,7 @@ class SimpleTable(object):
if (index is not None and self.__link[index]):
# See details (edit, etc):
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",
lambda widget: self.on_table_doubleclick(treeview))
popup.append(menu_item)
@ -140,7 +140,7 @@ class SimpleTable(object):
(index is not None and self.__link[index])):
objclass, handle = self.__link[index]
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",
lambda widget: self.on_table_click(treeview))
popup.append(menu_item)