* configure.in: Set version to 0.9.4 (since the release is 0.CVS...).
Otherwise it becomes older-version that the latest release. * src/EditPerson.py: Change const.save_fevent() calls to const.save_event(). * src/EventEdit.py: Display event name with const.display_event() (was backwards). * src/GrampsParser.py: Call const.save_event() and const.attr() when parsing XML. This should take care of prior data with standard events and attributes recorded in $LANG. * src/FamilyView.py (nameof): Translate parent's relation to a child. svn: r1986
This commit is contained in:
parent
43764dbddf
commit
cb359e8d47
@ -1,3 +1,15 @@
|
|||||||
|
2003-08-10 Alex Roitman <shura@alex.neuro.umn.edu>
|
||||||
|
* configure.in: Set version to 0.9.4 (since the release is 0.CVS...).
|
||||||
|
Otherwise it becomes older-version that the latest release.
|
||||||
|
* src/EditPerson.py: Change const.save_fevent() calls to
|
||||||
|
const.save_event().
|
||||||
|
* src/EventEdit.py: Display event name with const.display_event()
|
||||||
|
(was backwards).
|
||||||
|
* src/GrampsParser.py: Call const.save_event() and const.attr()
|
||||||
|
when parsing XML. This should take care of prior data with standard
|
||||||
|
events and attributes recorded in $LANG.
|
||||||
|
* src/FamilyView.py (nameof): Translate parent's relation to a child.
|
||||||
|
|
||||||
2003-08-11 Alexandre Duret-Lutz <adl@gnu.org>
|
2003-08-11 Alexandre Duret-Lutz <adl@gnu.org>
|
||||||
* configure.in: Modernize calls to AC_INIT, AM_INIT_AUTOMAKE and
|
* configure.in: Modernize calls to AC_INIT, AM_INIT_AUTOMAKE and
|
||||||
AC_OUTPUT. Require Autoconf >= 2.57 and Automake >= 1.6.3.
|
AC_OUTPUT. Require Autoconf >= 2.57 and Automake >= 1.6.3.
|
||||||
|
@ -798,7 +798,7 @@ class EditPerson:
|
|||||||
import EventEdit
|
import EventEdit
|
||||||
pname = self.person.getPrimaryName().getName()
|
pname = self.person.getPrimaryName().getName()
|
||||||
EventEdit.EventEditor(self,pname,const.personalEvents,
|
EventEdit.EventEditor(self,pname,const.personalEvents,
|
||||||
const.save_fevent,None,None,0,self.event_edit_callback)
|
const.save_event,None,None,0,self.event_edit_callback)
|
||||||
|
|
||||||
def on_edit_birth_clicked(self,obj):
|
def on_edit_birth_clicked(self,obj):
|
||||||
"""Brings up the EventEditor for the birth record, event
|
"""Brings up the EventEditor for the birth record, event
|
||||||
@ -817,7 +817,7 @@ class EditPerson:
|
|||||||
if p:
|
if p:
|
||||||
event.setPlace(p)
|
event.setPlace(p)
|
||||||
EventEdit.EventEditor(self,pname,const.personalEvents,
|
EventEdit.EventEditor(self,pname,const.personalEvents,
|
||||||
const.save_fevent,event,def_placename,1,
|
const.save_event,event,def_placename,1,
|
||||||
self.event_edit_callback)
|
self.event_edit_callback)
|
||||||
|
|
||||||
def on_edit_death_clicked(self,obj):
|
def on_edit_death_clicked(self,obj):
|
||||||
@ -837,7 +837,7 @@ class EditPerson:
|
|||||||
if p:
|
if p:
|
||||||
event.setPlace(p)
|
event.setPlace(p)
|
||||||
EventEdit.EventEditor(self,pname,const.personalEvents,
|
EventEdit.EventEditor(self,pname,const.personalEvents,
|
||||||
const.save_fevent,event,def_placename,1,
|
const.save_event,event,def_placename,1,
|
||||||
self.event_edit_callback)
|
self.event_edit_callback)
|
||||||
|
|
||||||
def on_aka_delete_clicked(self,obj):
|
def on_aka_delete_clicked(self,obj):
|
||||||
@ -1084,7 +1084,7 @@ class EditPerson:
|
|||||||
pname = self.person.getPrimaryName().getName()
|
pname = self.person.getPrimaryName().getName()
|
||||||
event = self.etree.get_object(iter)
|
event = self.etree.get_object(iter)
|
||||||
EventEdit.EventEditor(self,pname,const.personalEvents,
|
EventEdit.EventEditor(self,pname,const.personalEvents,
|
||||||
const.save_fevent,event,None,0,
|
const.save_event,event,None,0,
|
||||||
self.event_edit_callback)
|
self.event_edit_callback)
|
||||||
|
|
||||||
def on_event_select_row(self,obj):
|
def on_event_select_row(self,obj):
|
||||||
|
@ -130,7 +130,7 @@ class EventEditor:
|
|||||||
AutoComp.AutoEntry(self.place_field,self.pmap.keys())
|
AutoComp.AutoEntry(self.place_field,self.pmap.keys())
|
||||||
|
|
||||||
if event != None:
|
if event != None:
|
||||||
self.name_field.set_text(self.trans(event.getName()))
|
self.name_field.set_text(const.display_event(event.getName()))
|
||||||
if (def_placename):
|
if (def_placename):
|
||||||
self.place_field.set_text(def_placename)
|
self.place_field.set_text(def_placename)
|
||||||
else:
|
else:
|
||||||
|
@ -566,7 +566,7 @@ class FamilyView:
|
|||||||
def nameof(self,l,p,mode):
|
def nameof(self,l,p,mode):
|
||||||
if p:
|
if p:
|
||||||
n = GrampsCfg.nameof(p)
|
n = GrampsCfg.nameof(p)
|
||||||
return _("%s: %s\n\tRelationship: %s") % (l,n,mode)
|
return _("%s: %s\n\tRelationship: %s") % (l,n,_(mode))
|
||||||
else:
|
else:
|
||||||
return _("%s: unknown") % (l)
|
return _("%s: unknown") % (l)
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# Gramps - a GTK+/GNOME based genealogy program
|
||||||
#
|
#
|
||||||
# Copyright (C) 2000 Donald N. Allingham
|
# Copyright (C) 2000-2003 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
|
||||||
@ -18,6 +18,7 @@
|
|||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
|
import const
|
||||||
import RelLib
|
import RelLib
|
||||||
import Date
|
import Date
|
||||||
|
|
||||||
@ -279,7 +280,7 @@ class GrampsParser:
|
|||||||
|
|
||||||
def start_event(self,attrs):
|
def start_event(self,attrs):
|
||||||
self.event = RelLib.Event()
|
self.event = RelLib.Event()
|
||||||
self.event_type = attrs["type"]
|
self.event_type = const.save_event(attrs["type"])
|
||||||
if attrs.has_key("conf"):
|
if attrs.has_key("conf"):
|
||||||
self.event.conf = int(attrs["conf"])
|
self.event.conf = int(attrs["conf"])
|
||||||
else:
|
else:
|
||||||
@ -296,7 +297,7 @@ class GrampsParser:
|
|||||||
if attrs.has_key("priv"):
|
if attrs.has_key("priv"):
|
||||||
self.attribute.private = int(attrs["priv"])
|
self.attribute.private = int(attrs["priv"])
|
||||||
if attrs.has_key('type'):
|
if attrs.has_key('type'):
|
||||||
self.attribute.setType(attrs["type"])
|
self.attribute.setType(const.save_attr(attrs["type"]))
|
||||||
if attrs.has_key('value'):
|
if attrs.has_key('value'):
|
||||||
self.attribute.setValue(attrs["value"])
|
self.attribute.setValue(attrs["value"])
|
||||||
if self.photo:
|
if self.photo:
|
||||||
@ -371,7 +372,7 @@ class GrampsParser:
|
|||||||
self.count = self.count + 1
|
self.count = self.count + 1
|
||||||
self.family = self.db.findFamilyNoMap(attrs["id"])
|
self.family = self.db.findFamilyNoMap(attrs["id"])
|
||||||
if attrs.has_key("type"):
|
if attrs.has_key("type"):
|
||||||
self.family.setRelationship(attrs["type"])
|
self.family.setRelationship(const.save_frel(attrs["type"]))
|
||||||
else:
|
else:
|
||||||
self.family.setRelationship("")
|
self.family.setRelationship("")
|
||||||
|
|
||||||
@ -923,7 +924,7 @@ class GrampsImportParser(GrampsParser):
|
|||||||
self.count = self.count + 1
|
self.count = self.count + 1
|
||||||
self.family = self.db.findFamilyNoConflicts(attrs["id"],self.fmap)
|
self.family = self.db.findFamilyNoConflicts(attrs["id"],self.fmap)
|
||||||
if attrs.has_key("type"):
|
if attrs.has_key("type"):
|
||||||
self.family.setRelationship(attrs["type"])
|
self.family.setRelationship(const.save_frel(attrs["type"]))
|
||||||
|
|
||||||
def start_sourceref(self,attrs):
|
def start_sourceref(self,attrs):
|
||||||
self.source_ref = RelLib.SourceRef()
|
self.source_ref = RelLib.SourceRef()
|
||||||
|
Loading…
Reference in New Issue
Block a user