* 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.



svn: r6513
This commit is contained in:
Alex Roitman 2006-05-02 05:50:46 +00:00
parent 62d2e97e15
commit 86762728be
11 changed files with 52 additions and 36 deletions

View File

@ -10,6 +10,18 @@
expand and collapse all node menu entries expand and collapse all node menu entries
2006-05-01 Alex Roitman <shura@gramps-project.org> 2006-05-01 Alex Roitman <shura@gramps-project.org>
* 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/plugins/rel_sk.py: Typo.
* src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Skip broken witness. * src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Skip broken witness.
* src/GrampsDb/_GrampsDbBase.py (find_backlink_handles): Correctly * src/GrampsDb/_GrampsDbBase.py (find_backlink_handles): Correctly

View File

@ -1,6 +1,6 @@
# Gramps - a GTK+/GNOME based genealogy program # 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 # 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 # 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): def define_actions(self):
PageView.ListView.define_actions(self) PageView.ListView.define_actions(self)
self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES, self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES,
'_Column Editor', callback=self.column_editor) _('_Column Editor'), callback=self.column_editor)
def column_editor(self,obj): def column_editor(self,obj):
import ColumnOrder import ColumnOrder

View File

@ -1,6 +1,6 @@
# Gramps - a GTK+/GNOME based genealogy program # 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 # 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 # it under the terms of the GNU General Public License as published by

View File

@ -572,13 +572,13 @@ class MapView(PageView.PageView):
def define_actions(self): def define_actions(self):
self.add_action('ZoomIn',gtk.STOCK_ZOOM_IN, 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, 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, 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, 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): def get_stock(self):
""" """

View File

@ -1,6 +1,6 @@
# Gramps - a GTK+/GNOME based genealogy program # 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 # 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 # 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): def define_actions(self):
PageView.ListView.define_actions(self) PageView.ListView.define_actions(self)
self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES, self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES,
'_Column Editor', callback=self.column_editor) _('_Column Editor'), callback=self.column_editor)
def column_editor(self,obj): def column_editor(self,obj):

View File

@ -524,7 +524,8 @@ class PedigreeView(PageView.PersonNavView):
""" """
PageView.PersonNavView.define_actions(self) 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): def build_tree(self):
""" """

View File

@ -2,7 +2,7 @@
# #
# Gramps - a GTK+/GNOME based genealogy program # 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 # 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 # 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) PageView.PersonNavView.define_actions(self)
self.add_action('Add', gtk.STOCK_ADD, "_Add", self.add_action('Add', gtk.STOCK_ADD, _("_Add"),
callback=self.add) callback=self.add)
self.add_action('Edit', gtk.STOCK_EDIT, "_Edit", self.add_action('Edit', gtk.STOCK_EDIT, _("_Edit"),
callback=self.edit) callback=self.edit)
self.add_action('Remove', gtk.STOCK_REMOVE, "_Remove", self.add_action('Remove', gtk.STOCK_REMOVE, _("_Remove"),
callback=self.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) 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) callback=self.close_all_nodes)
self.add_action('Jump', None, "_Jump", self.add_action('Jump', None, _("_Jump"),
accel="<control>j",callback=self.jumpto) accel="<control>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.filter_toggle)
self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES, self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES,
'_Column Editor', callback=self.column_editor) _('_Column Editor'), callback=self.column_editor)
def column_editor(self,obj): def column_editor(self,obj):
import ColumnOrder import ColumnOrder

View File

@ -1,6 +1,6 @@
# Gramps - a GTK+/GNOME based genealogy program # 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 # 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 # 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): def define_actions(self):
PageView.ListView.define_actions(self) PageView.ListView.define_actions(self)
self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES, self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES,
'_Column Editor', callback=self.column_editor) _('_Column Editor'), callback=self.column_editor)
def column_editor(self,obj): def column_editor(self,obj):
import ColumnOrder import ColumnOrder

View File

@ -1,6 +1,6 @@
# Gramps - a GTK+/GNOME based genealogy program # 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 # 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 # 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): def define_actions(self):
PageView.ListView.define_actions(self) PageView.ListView.define_actions(self)
self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES, self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES,
'_Column Editor', callback=self.column_editor) _('_Column Editor'), callback=self.column_editor)
def column_editor(self,obj): def column_editor(self,obj):
import ColumnOrder import ColumnOrder

View File

@ -1,6 +1,6 @@
# Gramps - a GTK+/GNOME based genealogy program # 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 # 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 # 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): def define_actions(self):
PageView.ListView.define_actions(self) PageView.ListView.define_actions(self)
self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES, self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES,
'_Column Editor', callback=self.column_editor) _('_Column Editor'), callback=self.column_editor)
def column_editor(self,obj): def column_editor(self,obj):
import ColumnOrder import ColumnOrder

View File

@ -1,7 +1,7 @@
# #
# Gramps - a GTK+/GNOME based genealogy program # 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 # 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 # it under the terms of the GNU General Public License as published by
@ -239,9 +239,9 @@ class BookMarkView(PageView):
def define_actions(self): def define_actions(self):
self.book_action = gtk.ActionGroup(self.title + '/Bookmark') self.book_action = gtk.ActionGroup(self.title + '/Bookmark')
self.book_action.add_actions([ self.book_action.add_actions([
('AddBook', gtk.STOCK_INDEX, '_Add bookmark', '<control>d', None, ('AddBook',gtk.STOCK_INDEX,_('_Add bookmark'),'<control>d',None,
self.add_bookmark), self.add_bookmark),
('EditBook', None, '_Edit bookmarks', '<control>b', None, ('EditBook',None,_('_Edit bookmarks'),'<control>b',None,
self.edit_bookmarks), self.edit_bookmarks),
]) ])
@ -270,18 +270,20 @@ class PersonNavView(BookMarkView):
self.fwd_action = gtk.ActionGroup(self.title + '/Forward') self.fwd_action = gtk.ActionGroup(self.title + '/Forward')
self.fwd_action.add_actions([ 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 # add the Backward action group to handle the Forward button
self.back_action = gtk.ActionGroup(self.title + '/Backward') self.back_action = gtk.ActionGroup(self.title + '/Backward')
self.back_action.add_actions([ 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) 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) callback=self.set_default_person)
self.add_action_group(self.back_action) self.add_action_group(self.back_action)
@ -647,10 +649,11 @@ class ListView(BookMarkView):
BookMarkView.define_actions(self) BookMarkView.define_actions(self)
self.add_action('Add', gtk.STOCK_ADD, "_Add", callback=self.add) 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('Edit', gtk.STOCK_EDIT,_("_Edit"), callback=self.edit)
self.add_action('Remove',gtk.STOCK_REMOVE,"_Remove",callback=self.remove) self.add_action('Remove',gtk.STOCK_REMOVE,_("_Remove"),
self.add_toggle_action('Filter', None, '_Filter', callback=self.remove)
self.add_toggle_action('Filter', None, _('_Filter'),
callback=self.filter_toggle) callback=self.filter_toggle)
def button_press(self,obj,event): def button_press(self,obj,event):