Accessibility for dialogs

svn: r1384
This commit is contained in:
Don Allingham 2003-03-23 03:50:59 +00:00
parent 5a38afb512
commit e2d89c8f90
10 changed files with 215 additions and 207 deletions

View File

@ -3,3 +3,5 @@ Makefile
*.pyo
gramps.strings
glade.c
.xvpics
*.gladep

View File

@ -224,7 +224,7 @@ class FamilyView:
_('Removing a spouse removes the relationship between '
'the spouse and the active person. It does not '
'remove the spouse from the database'),
_('Remove Spouse'),
_('_Remove Spouse'),
self.really_remove_spouse)
elif self.family and not self.family.getChildList():
self.really_remove_spouse()
@ -467,7 +467,7 @@ class FamilyView:
'child of the parents. The parents are not removed from the '
'database, and the relationship between the parents '
'is not removed.'),
_('Remove Parents'),
_('_Remove Parents'),
self.really_del_parents)
def really_del_parents(self):
@ -482,7 +482,7 @@ class FamilyView:
'child of the parents. The parents are not removed from the '
'database, and the relationship between the parents '
'is not removed.'),
_('Remove Parents'),
_('_Remove Parents'),
self.really_del_sp_parents)
def really_del_sp_parents(self):

View File

@ -260,7 +260,7 @@ class MediaView:
'If you delete this object, it will be removed '
'from the database and from all records that '
'reference it.'),
_('Delete Media Object?'),
_('_Delete Media Object?'),
ans.query_response)
else:
self.db.removeObject(mobj.getId())

View File

@ -200,7 +200,7 @@ class PlaceView:
'record in the database. Deleting it will remove it '
'from the database and remove it from all records '
'that reference it.'),
_('Delete Place'),
_('_Delete Place'),
ans.query_response)
else:
self.db.removePlace(place.getId())

View File

@ -183,6 +183,7 @@ class ReportDialog:
self.widgets = []
self.frame_names = []
self.frames = {}
self.format_menu = None
self.window = gtk.Dialog('GRAMPS')
self.window.set_has_separator(gtk.FALSE)
@ -226,8 +227,8 @@ class ReportDialog:
# Allow for post processing of the format frame, since the
# show_all task calls events that may reset values
menu = self.format_menu.get_menu()
self.doc_type_changed(menu.get_active())
if self.format_menu:
self.doc_type_changed(self.format_menu.get_menu().get_active())
self.setup_post_process()

View File

@ -129,7 +129,7 @@ class SourceView:
_('This source is currently being used. Deleting it '
'will remove it from the database and from all '
'records that reference it.'),
_('Delete Source'),
_('_Delete Source'),
ans.query_response)
else:
self.db.removeSource(source.getId())

View File

@ -2,7 +2,7 @@
<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
<glade-project>
<name>Src</name>
<program_name>src</program_name>
<name>gramps</name>
<program_name>gramps</program_name>
<pixmaps_directory>.</pixmaps_directory>
</glade-project>

View File

@ -570,7 +570,7 @@ class Gramps:
_('Creating a new database will close the existing database, '
'discarding any unsaved changes. You will then be prompted '
'to create a new database'),
_('Create New Database'),
_('_Create New Database'),
self.new_database_response)
def new_database_response(self):
@ -737,9 +737,9 @@ class Gramps:
'when GRAMPS was unexpected shutdown before the '
'data was saved. You may load this file to try to '
'recover any missing data.'),
_('Load autosave file'),
_('_Load autosave file'),
self.autosave_query,
_('Load saved database'),
_('Load _saved database'),
self.loadsaved_file)
else:
self.active_person = None
@ -909,7 +909,7 @@ class Gramps:
'recovered by closing the database without saving '
'changes. This change will become permanent '
'after you save the database.'),
_('Delete Person'),
_('_Delete Person'),
self.delete_person_response)
def delete_person_response(self):
@ -1055,7 +1055,7 @@ class Gramps:
_('Reverting to the last saved database '
'will cause all unsaved changes to be lost, and '
'the last saved database will be loaded.'),
_('Revert'),
_('_Revert'),
self.revert_query)
else:
WarningDialog(_('Could Not Revert to the Previous Database.'),
@ -1504,7 +1504,7 @@ class Gramps:
_('Once a Home Person is defined, pressing the '
'Home button on the toolbar will make the home '
'person the active person.'),
_('Set Home Person'),
_('_Set Home Person'),
self.set_person)
def set_person(self):

View File

@ -1,3 +1,4 @@
Makefile
*.pyc
*.pyo
*.gladep

File diff suppressed because it is too large Load Diff