From 58211b2f79f582d10137c1f09a79fbde610561c5 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Mon, 12 Nov 2007 19:43:41 +0000 Subject: [PATCH] * src/DataViews/_PersonView.py: translation: Edit object, not menu with action|_Edit * src/PageView.py: translation: Edit object, not menu with action|_Edit issue #1370 2007-11-12 Benny Malengier svn: r9339 --- ChangeLog | 5 +++++ src/DataViews/_PersonView.py | 3 ++- src/PageView.py | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d8d25f5b1..e5cce5a4e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-12 Benny Malengier + * src/DataViews/_PersonView.py: translation: Edit object, not menu with action|_Edit + * src/PageView.py: translation: Edit object, not menu with action|_Edit + issue #1370 + 2007-11-12 Benny Malengier * src/ViewManager.py: use import image diff --git a/src/DataViews/_PersonView.py b/src/DataViews/_PersonView.py index e39dd8141..4dd65962c 100644 --- a/src/DataViews/_PersonView.py +++ b/src/DataViews/_PersonView.py @@ -61,6 +61,7 @@ import Errors import Config import const import gen.utils +from TransUtils import sgettext as _s from Editors import EditPerson from Filters import SearchBar @@ -148,7 +149,7 @@ class PersonView(PageView.PersonNavView): self.all_action.add_actions([ ('OpenAllNodes', None, _("Expand all nodes"), None, None, self.open_all_nodes), - ('Edit', gtk.STOCK_EDIT, _("_Edit"), "Return", + ('Edit', gtk.STOCK_EDIT, _s("action|_Edit"), "Return", _("Edit the selected person"), self.edit), ('CloseAllNodes', None, _("Collapse all nodes"), None, None, self.close_all_nodes), diff --git a/src/PageView.py b/src/PageView.py index 668fb1136..38837b812 100644 --- a/src/PageView.py +++ b/src/PageView.py @@ -51,6 +51,7 @@ import Bookmarks import Errors from Filters import SearchBar import Utils +from TransUtils import sgettext as _s import const NAVIGATION_NONE = -1 @@ -930,7 +931,7 @@ class ListView(BookMarkView): self._add_action_group(self.edit_action) - self._add_action('Edit', gtk.STOCK_EDIT, _("_Edit"), + self._add_action('Edit', gtk.STOCK_EDIT, _s("action|_Edit"), accel="Return", tip=self.EDIT_MSG, callback=self.edit)