* 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:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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):
|
||||
"""
|
||||
|
@@ -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):
|
||||
|
@@ -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):
|
||||
"""
|
||||
|
@@ -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="<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.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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user