diff --git a/ChangeLog b/ChangeLog index 784edc393..ce83eaf58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,18 @@ expand and collapse all node menu entries 2006-05-01 Alex Roitman + * src/DataViews/_PedigreeView.py (define_actions): Translate labels. + * src/DataViews/_SourceView.py (define_actions): Translate labels. + * src/DataViews/_PlaceView.py (define_actions): Translate labels. + * src/DataViews/_MediaView.py (define_actions): Translate labels. + * src/DataViews/_RepositoryView.py (define_actions): Translate labels. + * src/DataViews/_MapView.py (define_actions): Translate labels. + * src/DataViews/_EventView.py (define_actions): Translate labels. + * src/DataViews/_PersonView.py (define_actions) Translate labels. + * src/PageView.py (BookMarkView.define_actions, + PersonNavView.define_actions, ListView.define_actions): Translate + labels. + * src/plugins/rel_sk.py: Typo. * src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Skip broken witness. * src/GrampsDb/_GrampsDbBase.py (find_backlink_handles): Correctly diff --git a/src/DataViews/_EventView.py b/src/DataViews/_EventView.py index c5a754fab..75456a567 100644 --- a/src/DataViews/_EventView.py +++ b/src/DataViews/_EventView.py @@ -1,6 +1,6 @@ # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2001-2005 Donald N. Allingham +# Copyright (C) 2001-2006 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -132,7 +132,7 @@ class EventView(PageView.ListView): def define_actions(self): PageView.ListView.define_actions(self) self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES, - '_Column Editor', callback=self.column_editor) + _('_Column Editor'), callback=self.column_editor) def column_editor(self,obj): import ColumnOrder diff --git a/src/DataViews/_FamilyList.py b/src/DataViews/_FamilyList.py index bd97f4aa1..a282696cf 100644 --- a/src/DataViews/_FamilyList.py +++ b/src/DataViews/_FamilyList.py @@ -1,6 +1,6 @@ # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2001-2005 Donald N. Allingham +# Copyright (C) 2001-2006 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/DataViews/_MapView.py b/src/DataViews/_MapView.py index 64e705a9e..24844e36c 100644 --- a/src/DataViews/_MapView.py +++ b/src/DataViews/_MapView.py @@ -572,13 +572,13 @@ class MapView(PageView.PageView): def define_actions(self): self.add_action('ZoomIn',gtk.STOCK_ZOOM_IN, - "Zoom _In",callback=self.zoom_in_cb) + _("Zoom _In"),callback=self.zoom_in_cb) self.add_action('ZoomOut',gtk.STOCK_ZOOM_OUT, - "Zoom _Out",callback=self.zoom_out_cb) + _("Zoom _Out"),callback=self.zoom_out_cb) self.add_action('ZoomNormal',gtk.STOCK_ZOOM_100, - "_Normal Size", callback=self.zoom_100_cb) + _("_Normal Size"), callback=self.zoom_100_cb) self.add_action('ZoomFit',gtk.STOCK_ZOOM_FIT, - "Best _Fit",callback=self.zoom_fit_cb) + _("Best _Fit"),callback=self.zoom_fit_cb) def get_stock(self): """ diff --git a/src/DataViews/_MediaView.py b/src/DataViews/_MediaView.py index 2d6101e7e..0d8d6f6a9 100644 --- a/src/DataViews/_MediaView.py +++ b/src/DataViews/_MediaView.py @@ -1,6 +1,6 @@ # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2001-2005 Donald N. Allingham +# Copyright (C) 2001-2006 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -84,7 +84,7 @@ class MediaView(PageView.ListView): def define_actions(self): PageView.ListView.define_actions(self) self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES, - '_Column Editor', callback=self.column_editor) + _('_Column Editor'), callback=self.column_editor) def column_editor(self,obj): diff --git a/src/DataViews/_PedigreeView.py b/src/DataViews/_PedigreeView.py index 66eb27db8..fbc5211a7 100644 --- a/src/DataViews/_PedigreeView.py +++ b/src/DataViews/_PedigreeView.py @@ -524,7 +524,8 @@ class PedigreeView(PageView.PersonNavView): """ PageView.PersonNavView.define_actions(self) - self.add_action('HomePerson',gtk.STOCK_HOME, "_Home", callback=self.home) + self.add_action('HomePerson',gtk.STOCK_HOME,_("_Home"), + callback=self.home) def build_tree(self): """ diff --git a/src/DataViews/_PersonView.py b/src/DataViews/_PersonView.py index 4615869fe..3d0ffc351 100644 --- a/src/DataViews/_PersonView.py +++ b/src/DataViews/_PersonView.py @@ -2,7 +2,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2000-2003 Donald N. Allingham +# Copyright (C) 2000-2006 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -114,23 +114,23 @@ class PersonView(PageView.PersonNavView): PageView.PersonNavView.define_actions(self) - self.add_action('Add', gtk.STOCK_ADD, "_Add", + self.add_action('Add', gtk.STOCK_ADD, _("_Add"), callback=self.add) - self.add_action('Edit', gtk.STOCK_EDIT, "_Edit", + self.add_action('Edit', gtk.STOCK_EDIT, _("_Edit"), callback=self.edit) - self.add_action('Remove', gtk.STOCK_REMOVE, "_Remove", + self.add_action('Remove', gtk.STOCK_REMOVE, _("_Remove"), callback=self.remove) - self.add_action('OpenAllNodes', None, "Expand all nodes", + self.add_action('OpenAllNodes', None, _("Expand all nodes"), callback=self.open_all_nodes) - self.add_action('CloseAllNodes', None, "Close all nodes", + self.add_action('CloseAllNodes', None, _("Close all nodes"), callback=self.close_all_nodes) - self.add_action('Jump', None, "_Jump", + self.add_action('Jump', None, _("_Jump"), accel="j",callback=self.jumpto) - self.add_toggle_action('Filter', None, '_Filter', None, None, + self.add_toggle_action('Filter', None, _('_Filter'), None, None, self.filter_toggle) self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES, - '_Column Editor', callback=self.column_editor) + _('_Column Editor'), callback=self.column_editor) def column_editor(self,obj): import ColumnOrder diff --git a/src/DataViews/_PlaceView.py b/src/DataViews/_PlaceView.py index de4296665..6c84acd21 100644 --- a/src/DataViews/_PlaceView.py +++ b/src/DataViews/_PlaceView.py @@ -1,6 +1,6 @@ # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2001-2005 Donald N. Allingham +# Copyright (C) 2001-2006 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -91,7 +91,7 @@ class PlaceView(PageView.ListView): def define_actions(self): PageView.ListView.define_actions(self) self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES, - '_Column Editor', callback=self.column_editor) + _('_Column Editor'), callback=self.column_editor) def column_editor(self,obj): import ColumnOrder diff --git a/src/DataViews/_RepositoryView.py b/src/DataViews/_RepositoryView.py index cc81221d9..1995cd0f2 100644 --- a/src/DataViews/_RepositoryView.py +++ b/src/DataViews/_RepositoryView.py @@ -1,6 +1,6 @@ # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2001-2005 Donald N. Allingham +# Copyright (C) 2001-2006 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -97,7 +97,7 @@ class RepositoryView(PageView.ListView): def define_actions(self): PageView.ListView.define_actions(self) self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES, - '_Column Editor', callback=self.column_editor) + _('_Column Editor'), callback=self.column_editor) def column_editor(self,obj): import ColumnOrder diff --git a/src/DataViews/_SourceView.py b/src/DataViews/_SourceView.py index 0b067e4af..36c25ba95 100644 --- a/src/DataViews/_SourceView.py +++ b/src/DataViews/_SourceView.py @@ -1,6 +1,6 @@ # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2001-2005 Donald N. Allingham +# Copyright (C) 2001-2006 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -89,7 +89,7 @@ class SourceView(PageView.ListView): def define_actions(self): PageView.ListView.define_actions(self) self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES, - '_Column Editor', callback=self.column_editor) + _('_Column Editor'), callback=self.column_editor) def column_editor(self,obj): import ColumnOrder diff --git a/src/PageView.py b/src/PageView.py index bf3dd81f6..6f75b555f 100644 --- a/src/PageView.py +++ b/src/PageView.py @@ -1,7 +1,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2001-2005 Donald N. Allingham +# Copyright (C) 2001-2006 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -239,9 +239,9 @@ class BookMarkView(PageView): def define_actions(self): self.book_action = gtk.ActionGroup(self.title + '/Bookmark') self.book_action.add_actions([ - ('AddBook', gtk.STOCK_INDEX, '_Add bookmark', 'd', None, + ('AddBook',gtk.STOCK_INDEX,_('_Add bookmark'),'d',None, self.add_bookmark), - ('EditBook', None, '_Edit bookmarks', 'b', None, + ('EditBook',None,_('_Edit bookmarks'),'b',None, self.edit_bookmarks), ]) @@ -270,18 +270,20 @@ class PersonNavView(BookMarkView): self.fwd_action = gtk.ActionGroup(self.title + '/Forward') self.fwd_action.add_actions([ - ('Forward',gtk.STOCK_GO_FORWARD,"_Forward", None, None, self.fwd_clicked) + ('Forward',gtk.STOCK_GO_FORWARD,)("_Forward"), + None, None, self.fwd_clicked) ]) # add the Backward action group to handle the Forward button self.back_action = gtk.ActionGroup(self.title + '/Backward') self.back_action.add_actions([ - ('Back',gtk.STOCK_GO_BACK,"_Back", None, None, self.back_clicked) + ('Back',gtk.STOCK_GO_BACK,_("_Back"), + None, None, self.back_clicked) ]) - self.add_action('HomePerson', gtk.STOCK_HOME, "_Home", + self.add_action('HomePerson', gtk.STOCK_HOME, _("_Home"), callback=self.home) - self.add_action('SetActive', gtk.STOCK_HOME, "Set _Home Person", + self.add_action('SetActive', gtk.STOCK_HOME, _("Set _Home Person"), callback=self.set_default_person) self.add_action_group(self.back_action) @@ -647,10 +649,11 @@ class ListView(BookMarkView): BookMarkView.define_actions(self) - self.add_action('Add', gtk.STOCK_ADD, "_Add", callback=self.add) - self.add_action('Edit', gtk.STOCK_EDIT, "_Edit", callback=self.edit) - self.add_action('Remove',gtk.STOCK_REMOVE,"_Remove",callback=self.remove) - self.add_toggle_action('Filter', None, '_Filter', + self.add_action('Add', gtk.STOCK_ADD, _("_Add"), callback=self.add) + self.add_action('Edit', gtk.STOCK_EDIT,_("_Edit"), callback=self.edit) + self.add_action('Remove',gtk.STOCK_REMOVE,_("_Remove"), + callback=self.remove) + self.add_toggle_action('Filter', None, _('_Filter'), callback=self.filter_toggle) def button_press(self,obj,event):