* src/FamilyView.py (load_family): Enable translation for family

relation.
* src/const.py.in: Add new functions: display_event(), save_event(),
display_attr(), and save_attr() which work for either personal or
family events/attributes. Correct silly typo.
* src/WriteXML.py (dump_my_event): Call const.save_event() before
saving; (write_family_id): Call const.save_frel() before saving;
(write_attribute_list): Call const.save_attr() before saving.
* src/Marriage.py (redraw_event_list): Call const.display_fevent()
before saving; (on_add_clicked): change const.save_fevent() to
const.display_fevent(); (on_event_update_clicked): Likewise.
* src/EventEdit.py (EventEditor.__init__): Call self.trans() before
displaying event name.


svn: r1964
This commit is contained in:
Alex Roitman
2003-08-07 03:54:10 +00:00
parent 15b9685005
commit 8e6195eaa9
6 changed files with 71 additions and 9 deletions

View File

@ -130,7 +130,7 @@ class EventEditor:
AutoComp.AutoEntry(self.place_field,self.pmap.keys())
if event != None:
self.name_field.set_text(event.getName())
self.name_field.set_text(self.trans(event.getName()))
if (def_placename):
self.place_field.set_text(def_placename)
else: