New template file, fixes to glade window headers

svn: r743
This commit is contained in:
Don Allingham 2002-02-02 21:43:43 +00:00
parent 548d8903f5
commit b60e7ef132
7 changed files with 1566 additions and 1498 deletions

View File

@ -1,3 +1,11 @@
Version 0.7.2
* Python Imaging Library no longer required for several report
formats.
* Ability to rerun Startup dialog when necessary
* More information in the Startup dialog
* Fewer intermediate files when handling images for reports
* Reports are now plugins, stored in the DocGen library
Version 0.7.1 Version 0.7.1
* A database must now be open at all times. Prevents the problem of * A database must now be open at all times. Prevents the problem of
not having a place to put files. not having a place to put files.

View File

@ -43,7 +43,7 @@
<class>GnomeDruidPageStart</class> <class>GnomeDruidPageStart</class>
<name>druidpagestart1</name> <name>druidpagestart1</name>
<title>Getting Started</title> <title>Getting Started</title>
<text>Welcome to Gramps, the Genealogical Research <text>Welcome to GRAMPS, the Genealogical Research
and Analysis Management Programming System. and Analysis Management Programming System.
Since this is the first time you have run the program, Since this is the first time you have run the program,

View File

@ -87,7 +87,7 @@ startup = 1
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
progName = "gramps" progName = "gramps"
version = "0.7.2pre" version = "0.7.2pre-snap20020202"
copyright = "© 2001 Donald N. Allingham" copyright = "© 2001 Donald N. Allingham"
authors = ["Donald N. Allingham", "David Hampton"] authors = ["Donald N. Allingham", "David Hampton"]
comments = _("Gramps (Genealogical Research and Analysis Management Programming System) is a personal genealogy program.") comments = _("Gramps (Genealogical Research and Analysis Management Programming System) is a personal genealogy program.")

View File

@ -226,12 +226,12 @@ def on_about_activate(obj):
const.authors,const.comments,const.logo).show() const.authors,const.comments,const.logo).show()
def on_contents_activate(obj): def on_contents_activate(obj):
"""Display the Gramps manual""" """Display the GRAMPS manual"""
import gnome.help import gnome.help
gnome.help.display("gramps-manual","index.html") gnome.help.display("gramps-manual","index.html")
def on_writing_extensions_activate(obj): def on_writing_extensions_activate(obj):
"""Display the Extending Gramps manual""" """Display the Extending GRAMPS manual"""
import gnome.help import gnome.help
gnome.help.display("extending-gramps","index.html") gnome.help.display("extending-gramps","index.html")
@ -643,7 +643,11 @@ def save_file(filename,comment):
vc = VersionControl.RcsVersionControl(path) vc = VersionControl.RcsVersionControl(path)
vc.checkin(filename,comment,not Config.uncompress) vc.checkin(filename,comment,not Config.uncompress)
topWindow.set_title("Gramps - " + database.getSavePath()) filename = database.getSavePath()
if filename[-1] == '/':
filename = filename[:-1]
name = os.path.basename(filename)
topWindow.set_title("%s - %s" % (name,_("GRAMPS")))
statusbar.set_status("") statusbar.set_status("")
statusbar.set_progress(0) statusbar.set_progress(0)
if os.path.exists(autosave): if os.path.exists(autosave):

View File

@ -57,156 +57,222 @@ def filter(person,index,list,map):
def get_cousin(f,s,level,removed): def get_cousin(f,s,level,removed):
if level == 1: if level == 1:
if removed == 0: if removed == 0:
return _("%s is the first cousin of %s.") %(f,s) return _("%(p1)s is the first cousin of %(p2)s.") % {
'p1' : f, 'p2' : s}
elif removed == 1: elif removed == 1:
return _("%s is the first cousin once removed of %s.") %(f,s) return _("%(p1)s is the first cousin once removed of %(p2)s.") % {
'p1' : f, 'p2' : s}
elif removed == 2: elif removed == 2:
return _("%s is the first cousin twice removed of %s.") %(f,s) return _("%(p1)s is the first cousin twice removed of %(p2)s.") % {
'p1' : f,'p2' : s}
else: else:
return _("%s is the first cousin %d times removed of %s.") % (f,s,removed) return _("%(p1)s is the first cousin %(removed)d times removed of %(p2)s.") % {
'p1' :f, 'p2' :s, 'removed' : removed}
elif level == 2: elif level == 2:
if removed == 0: if removed == 0:
return _("%s is the second cousin of %s.") %(f,s) return _("%(p1)s is the second cousin of %(p2)s.") % {
'p1' : f, 'p2' : s }
elif removed == 1: elif removed == 1:
return _("%s is the second cousin once removed of %s.") %(f,s) return _("%(p1)s is the second cousin once removed of %(p2)s.") % {
'p1' : f, 'p2' : s }
elif removed == 2: elif removed == 2:
return _("%s is the second cousin twice removed of %s.") %(f,s) return _("%(p1)s is the second cousin twice removed of %(p2)s.") % {
'p1' : f, 'p2' : s }
else: else:
return _("%s is the second cousin %d times removed of %s.") % (f,s,removed) return _("%(p1)s is the second cousin %(removed)d times removed of %(p2)s.") % {
'p1' : f, 'p2' : s, 'removed' : removed }
elif level == 3: elif level == 3:
if removed == 0: if removed == 0:
return _("%s is the third cousin of %s.") %(f,s) return _("%(p1)s is the third cousin of %(p2)s.") % {
'p1' : f, 'p2' : s }
elif removed == 1: elif removed == 1:
return _("%s is the third cousin once removed of %s.") %(f,s) return _("%(p1)s is the third cousin once removed of %(p2)s.") % {
'p1' : f, 'p2' : s }
elif removed == 2: elif removed == 2:
return _("%s is the third cousin twice removed of %s.") %(f,s) return _("%(p1)s is the third cousin twice removed of %(p2)s.") % {
'p1' : f, 'p2' : s }
else: else:
return _("%s is the third cousin %d times removed of %s.") % (f,s,removed) return _("%(p1)s is the third cousin %(removed)d times removed of %(p1)s.") % {
'p1' : f, 'p2' : s, 'removed' : removed }
else: else:
if removed == 0: if removed == 0:
return _("%s is the %dth cousin of %s.") %(f,level,s) return _("%(p1)s is the %(level)dth cousin of %(p2)s.") % {
'p1': f, 'level': level, 'p2' : s }
elif removed == 1: elif removed == 1:
return _("%s is the %dth cousin once removed of %s.") %(f,level,s) return _("%(p1)s is the %(level)dth cousin once removed of %(p2)s.") % {
'p1': f, 'level': level, 'p2' : s }
elif removed == 2: elif removed == 2:
return _("%s is the %dth cousin twice removed of %s.") %(f,level,s) return _("%(p1)s is the %(level)dth cousin twice removed of %(p2)s.") % {
'p1': f, 'level': level, 'p2' : s }
else: else:
return _("%s is the %dth cousin %d times removed of %s.") % (f,level,s,removed) return _("%(p1)s is the %(level)dth cousin %(removed)d times removed of %(p2)s.") % {
'p1': f, 'level': level, 'removed' : removed, 'p2' : s }
def get_father(f,s,level): def get_father(f,s,level):
if level == 1: if level == 1:
return _("%s is the father of %s.") % (s,f) return _("%(p1)s is the father of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 2: elif level == 2:
return _("%s is the grandfather of %s.") % (s,f) return _("%(p1)s is the grandfather of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 3: elif level == 3:
return _("%s is the great grandfather of %s.") % (s,f) return _("%(p1)s is the great grandfather of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 4: elif level == 4:
return _("%s is the second great grandfather of %s.") % (s,f) return _("%(p1)s is the second great grandfather of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 5: elif level == 5:
return _("%s is the third great grandfather of %s.") % (s,f) return _("%(p1)s is the third great grandfather of %(p2)s.") % {
'p1': s, 'p2': f }
else: else:
return _("%s is the %dth great grandfather of %s.") % (s,level-2,f) return _("%(p1)s is the %(level)dth great grandfather of %(p2)s.") % {
'p1': s, 'level' : level-2, 'p2': f }
def get_son(f,s,level): def get_son(f,s,level):
if level == 1: if level == 1:
return _("%s is the son of %s.") % (s,f) return _("%(p1)s is the son of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 2: elif level == 2:
return _("%s is the grandson of %s.") % (s,f) return _("%(p1)s is the grandson of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 3: elif level == 3:
return _("%s is the great grandson of %s.") % (s,f) return _("%(p1)s is the great grandson of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 4: elif level == 4:
return _("%s is the second great grandson of %s.") % (s,f) return _("%(p1)s is the second great grandson of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 5: elif level == 5:
return _("%s is the third great grandson of %s.") % (s,f) return _("%(p1)s is the third great grandson of %(p2)s.") % {
'p1': s, 'p2': f }
else: else:
return _("%s is the %dth great grandson of %s.") % (s,level-2,f) return _("%(p1)s is the %(level)dth great grandson of %(p2)s.") % {
'p1': s, 'level' : level-2, 'p2': f }
def get_mother(f,s,level): def get_mother(f,s,level):
if level == 1: if level == 1:
return _("%s is the mother of %s.") % (s,f) return _("%(p1)s is the mother of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 2: elif level == 2:
return _("%s is the grandmother of %s.") % (s,f) return _("%(p1)s is the grandmother of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 3: elif level == 3:
return _("%s is the great grandmother of %s.") % (s,f) return _("%(p1)s is the great grandmother of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 4: elif level == 4:
return _("%s is the second great grandmother of %s.") % (s,f) return _("%(p1)s is the second great grandmother of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 5: elif level == 5:
return _("%s is the third great grandmother of %s.") % (s,f) return _("%(p1)s is the third great grandmother of %(p2)s.") % {
'p1': s, 'p2': f }
else: else:
return _("%s is the %dth great grandmother of %s.") % (s,level-2,f) return _("%(p1)s is the %(level)dth great grandmother of %(p2)s.") % {
'p1': s, 'level' : level-2, 'p2': f }
def get_daughter(f,s,level): def get_daughter(f,s,level):
if level == 1: if level == 1:
return _("%s is the daughter of %s.") % (s,f) return _("%(p1)s is the daughter of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 2: elif level == 2:
return _("%s is the granddaughter of %s.") % (s,f) return _("%(p1)s is the granddaughter of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 3: elif level == 3:
return _("%s is the great granddaughter of %s.") % (s,f) return _("%(p1)s is the great granddaughter of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 4: elif level == 4:
return _("%s is the second great granddaughter of %s.") % (s,f) return _("%(p1)s is the second great granddaughter of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 5: elif level == 5:
return _("%s is the third great granddaughter of %s.") % (s,f) return _("%(p1)s is the third great granddaughter of %(p2)s.") % {
'p1': s, 'p2': f }
else: else:
return _("%s is the %dth great granddaughter of %s.") % (s,level-2,f) return _("%(p1)s is the %(level)dth great granddaughter of %(p2)s.") % {
'p1': s, 'level' : level-2, 'p2': f }
def get_aunt(f,s,level): def get_aunt(f,s,level):
if level == 1: if level == 1:
return _("%s is the sister of %s.") % (s,f) return _("%(p1)s is the sister of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 2: elif level == 2:
return _("%s is the aunt of %s.") % (s,f) return _("%(p1)s is the aunt of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 3: elif level == 3:
return _("%s is the grandaunt of %s.") % (s,f) return _("%(p1)s is the grandaunt of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 4: elif level == 4:
return _("%s is the great grandaunt of %s.") % (s,f) return _("%(p1)s is the great grandaunt of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 5: elif level == 5:
return _("%s is the second great grandaunt of %s.") % (s,f) return _("%(p1)s is the second great grandaunt of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 6: elif level == 6:
return _("%s is the third great grandaunt of %s.") % (s,f) return _("%(p1)s is the third great grandaunt of %(p2)s.") % {
'p1': s, 'p2': f }
else: else:
return _("%s is the %dth great grandaunt of %s.") % (s,level-3,f) return _("%(p1)s is the %(level)dth great grandaunt of %(p2)s.") % {
'p1': s, 'level' : level-3, 'p2': f }
def get_uncle(f,s,level): def get_uncle(f,s,level):
if level == 1: if level == 1:
return _("%s is the brother of %s.") % (s,f) return _("%(p1)s is the brother of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 2: elif level == 2:
return _("%s is the uncle of %s.") % (s,f) return _("%(p1)s is the uncle of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 3: elif level == 3:
return _("%s is the granduncle of %s.") % (s,f) return _("%(p1)s is the granduncle of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 4: elif level == 4:
return _("%s is the great granduncle of %s.") % (s,f) return _("%(p1)s is the great granduncle of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 5: elif level == 5:
return _("%s is the second great granduncle of %s.") % (s,f) return _("%(p1)s is the second great granduncle of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 6: elif level == 6:
return _("%s is the third great granduncle of %s.") % (s,f) return _("%(p1)s is the third great granduncle of %(p2)s.") % {
'p1': s, 'p2': f }
else: else:
return _("%s is the %dth great granduncle of %s.") % (s,level-3,f) return _("%(p1)s is the %(level)dth great granduncle of %(p2)s.") % {
'p1': s, 'level' : level-3, 'p2': f }
def get_nephew(f,s,level): def get_nephew(f,s,level):
if level == 1: if level == 1:
return _("%s is the nephew of %s.") % (s,f) return _("%(p1)s is the nephew of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 2: elif level == 2:
return _("%s is the grandnephew of %s.") % (s,f) return _("%(p1)s is the grandnephew of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 3: elif level == 3:
return _("%s is the great grandnephew of %s.") % (s,f) return _("%(p1)s is the great grandnephew of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 4: elif level == 4:
return _("%s is the second great grandnephew of %s.") % (s,f) return _("%(p1)s is the second great grandnephew of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 5: elif level == 5:
return _("%s is the third great grandnephew of %s.") % (s,f) return _("%(p1)s is the third great grandnephew of %(p2)s.") % {
'p1': s, 'p2': f }
else: else:
return _("%s is the %dth great grandnephew of %s.") % (s,level-2,f) return _("%(p1)s is the %(level)dth great grandnephew of %(p2)s.") % {
'p1': s, 'level' : level-2, 'p2': f }
def get_niece(f,s,level): def get_niece(f,s,level):
if level == 1: if level == 1:
return _("%s is the niece of %s.") % (s,f) return _("%(p1)s is the niece of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 2: elif level == 2:
return _("%s is the grandniece of %s.") % (s,f) return _("%(p1)s is the grandniece of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 3: elif level == 3:
return _("%s is the great grandniece of %s.") % (s,f) return _("%(p1)s is the great grandniece of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 4: elif level == 4:
return _("%s is the second great grandniece of %s.") % (s,f) return _("%(p1)s is the second great grandniece of %(p2)s.") % {
'p1': s, 'p2': f }
elif level == 5: elif level == 5:
return _("%s is the third great grandniece of %s.") % (s,f) return _("%(p1)s is the third great grandniece of %(p2)s.") % {
'p1': s, 'p2': f }
else: else:
return _("%s is the %dth great grandniece of %s.") % (s,level-2,f) return _("%(p1)s is the %(level)dth great grandniece of %(p2)s.") % {
'p1': s, 'level' : level-2, 'p2': f }
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -295,15 +361,21 @@ class RelCalc:
firstRel = secondMap[person] firstRel = secondMap[person]
name = person.getPrimaryName().getRegularName() name = person.getPrimaryName().getRegularName()
commontext = " " + _("Their common ancestor is %s.") % name commontext = " " + _("Their common ancestor is %s.") % name
elif length > 1: elif length == 2:
p1 = common[0]
p2 = common[1]
secondRel = firstMap[p1]
firstRel = secondMap[p1]
commontext = " " + _("Their common ancestors are %s and %s") % \
(p1.getPrimaryName().getRegularName(),\
p2.getPrimaryName().getRegularName())
elif length > 2:
index = 0 index = 0
commontext = " Their common ancestors are " commontext = " " + _("Their common ancestors are : ")
for person in common: for person in common:
secondRel = firstMap[person] secondRel = firstMap[person]
firstRel = secondMap[person] firstRel = secondMap[person]
if length == index + 1: if index != 0:
commontext = commontext + " and "
elif index != 0:
commontext = commontext + ", " commontext = commontext + ", "
commontext = commontext + person.getPrimaryName().getRegularName() commontext = commontext + person.getPrimaryName().getRegularName()
index = index + 1 index = index + 1
@ -315,7 +387,7 @@ class RelCalc:
text = msg % (firstName,secondName) text = msg % (firstName,secondName)
elif firstRel == 0: elif firstRel == 0:
if secondRel == 0: if secondRel == 0:
text = "%s and %s are the same person." % (firstName,secondName) text = _("%s and %s are the same person.") % (firstName,secondName)
elif other_person.getGender() == RelLib.Person.male: elif other_person.getGender() == RelLib.Person.male:
text = get_father(firstName,secondName,secondRel) text = get_father(firstName,secondName,secondRel)
else: else:

File diff suppressed because it is too large Load Diff

View File

@ -328,7 +328,7 @@
<name>dbdir</name> <name>dbdir</name>
<history_id>dbdir</history_id> <history_id>dbdir</history_id>
<max_saved>10</max_saved> <max_saved>10</max_saved>
<title>Gramps - Select default database directory</title> <title>Select default database directory- GRAMPS</title>
<directory>True</directory> <directory>True</directory>
<modal>False</modal> <modal>False</modal>
<child> <child>
@ -2330,7 +2330,7 @@
<name>repdir</name> <name>repdir</name>
<history_id>repdir</history_id> <history_id>repdir</history_id>
<max_saved>10</max_saved> <max_saved>10</max_saved>
<title>Gramps - Select default report directory</title> <title>Select default report directory - GRAMPS</title>
<directory>True</directory> <directory>True</directory>
<modal>False</modal> <modal>False</modal>
<child> <child>
@ -2372,7 +2372,7 @@
<name>htmldir</name> <name>htmldir</name>
<history_id>webdir</history_id> <history_id>webdir</history_id>
<max_saved>10</max_saved> <max_saved>10</max_saved>
<title>Gramps - Select default report directory</title> <title>Select default report directory - GRAMPS</title>
<directory>True</directory> <directory>True</directory>
<modal>False</modal> <modal>False</modal>
<child> <child>