* src/ReadGedcom.py: handle FTM style of child/parent relationship
translation * src/gedcomimport.py: svn: r4385
This commit is contained in:
parent
dc3fb33c1e
commit
2603fb3c21
@ -89,6 +89,7 @@ rel_types = (RelLib.Person.CHILD_REL_BIRTH,
|
||||
|
||||
pedi_type = {
|
||||
'birth' : RelLib.Person.CHILD_REL_BIRTH,
|
||||
'natural': RelLib.Person.CHILD_REL_BIRTH,
|
||||
'adopted': RelLib.Person.CHILD_REL_ADOPT,
|
||||
'foster' : RelLib.Person.CHILD_REL_FOST,
|
||||
}
|
||||
@ -210,7 +211,8 @@ def import2(database, filename, cb, codeset, use_trans):
|
||||
DisplayTrace.DisplayTrace()
|
||||
return
|
||||
|
||||
statusTop.get_widget("close").set_sensitive(1)
|
||||
statusTop.get_widget("close").set_sensitive(True)
|
||||
statusWindow.set_modal(False)
|
||||
if close:
|
||||
statusWindow.destroy()
|
||||
|
||||
@ -768,12 +770,10 @@ class GedcomParser:
|
||||
return (mrel,frel)
|
||||
# FTW
|
||||
elif matches[1] == "_FREL":
|
||||
if matches[2].lower() != "natural":
|
||||
frel = matches[2].capitalize()
|
||||
frel = pedi_type.get(matches[2].lower(),RelLib.Person.CHILD_REL_BIRTH)
|
||||
# FTW
|
||||
elif matches[1] == "_MREL":
|
||||
if matches[2].lower() != "natural":
|
||||
mrel = RelLib.Person.CHILD_REL_BIRTH
|
||||
mrel = pedi_type.get(matches[2].lower(),RelLib.Person.CHILD_REL_BIRTH)
|
||||
elif matches[1] == "ADOP":
|
||||
mrel = RelLib.Person.CHILD_REL_ADOPT
|
||||
frel = RelLib.Person.CHILD_REL_ADOPT
|
||||
|
@ -7,7 +7,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="title" translatable="yes"></property>
|
||||
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
||||
<property name="window_position">GTK_WIN_POS_NONE</property>
|
||||
<property name="window_position">GTK_WIN_POS_CENTER</property>
|
||||
<property name="modal">True</property>
|
||||
<property name="default_width">600</property>
|
||||
<property name="default_height">500</property>
|
||||
|
Loading…
x
Reference in New Issue
Block a user