From 33fa065bb5067adeda9df9037960a1fa89dafbac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Tue, 14 Jun 2011 13:59:13 +0000 Subject: [PATCH] 4934: context for translators svn: r17776 --- src/ScratchPad.py | 6 +++--- src/Simple/_SimpleTable.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ScratchPad.py b/src/ScratchPad.py index ef8700083..98dad0a73 100644 --- a/src/ScratchPad.py +++ b/src/ScratchPad.py @@ -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)) diff --git a/src/Simple/_SimpleTable.py b/src/Simple/_SimpleTable.py index 4a93c3599..63d703c64 100644 --- a/src/Simple/_SimpleTable.py +++ b/src/Simple/_SimpleTable.py @@ -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)