Fix translation problems
svn: r1270
This commit is contained in:
parent
277f62b87f
commit
3b212ae93c
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# Gramps - a GTK+/GNOME based genealogy program
|
||||||
#
|
#
|
||||||
# Copyright (C) 2002 Bruce J. DeGrasse
|
# Copyright (C) 2000 Bruce J. DeGrasse
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@ -280,7 +280,7 @@ class DetAncestorReport(Report):
|
|||||||
else:
|
else:
|
||||||
self.doc.write_text(_(" was born in the year %s.") % date.getYear())
|
self.doc.write_text(_(" was born in the year %s.") % date.getYear())
|
||||||
elif place != "":
|
elif place != "":
|
||||||
self.doc.write_text(_(" in %s.") % place)
|
self.doc.write_text(_(" was born in %s.") % place)
|
||||||
else:
|
else:
|
||||||
self.doc.write_text(_("."))
|
self.doc.write_text(_("."))
|
||||||
|
|
||||||
@ -405,25 +405,25 @@ class DetAncestorReport(Report):
|
|||||||
if person.getGender() == RelLib.Person.male:
|
if person.getGender() == RelLib.Person.male:
|
||||||
if father != "":
|
if father != "":
|
||||||
if mother != "":
|
if mother != "":
|
||||||
self.doc.write_text(_(" %s was the son of %s and %s." % \
|
self.doc.write_text(_(" %s was the son of %s and %s.") % \
|
||||||
(firstName, father, mother)))
|
(firstName, father, mother))
|
||||||
else:
|
else:
|
||||||
self.doc.write_text(_(" %s was the son of %s." % \
|
self.doc.write_text(_(" %s was the son of %s.") % \
|
||||||
(firstName, father)))
|
(firstName, father))
|
||||||
else:
|
else:
|
||||||
self.doc.write_text(_(" %s was the son of %s." % \
|
self.doc.write_text(_(" %s was the son of %s.") % \
|
||||||
(firstName, mother)))
|
(firstName, mother))
|
||||||
else:
|
else:
|
||||||
if father != "":
|
if father != "":
|
||||||
if mother != "":
|
if mother != "":
|
||||||
self.doc.write_text(_(" %s was the daughter of %s and %s." % \
|
self.doc.write_text(_(" %s was the daughter of %s and %s.") % \
|
||||||
(firstName, father, mother)))
|
(firstName, father, mother))
|
||||||
else:
|
else:
|
||||||
self.doc.write_text(_(" %s was the daughter of %s." % \
|
self.doc.write_text(_(" %s was the daughter of %s.") % \
|
||||||
(firstName, father)))
|
(firstName, father))
|
||||||
else:
|
else:
|
||||||
self.doc.write_text(_(" %s was the daughter of %s." % \
|
self.doc.write_text(_(" %s was the daughter of %s.") % \
|
||||||
(firstName, mother)))
|
(firstName, mother))
|
||||||
|
|
||||||
|
|
||||||
def write_marriage(self, person, rptOptions):
|
def write_marriage(self, person, rptOptions):
|
||||||
@ -1045,7 +1045,7 @@ class reportOptions:
|
|||||||
self.t= ""
|
self.t= ""
|
||||||
if birth.getYearValid() and death.getYearValid():
|
if birth.getYearValid() and death.getYearValid():
|
||||||
self.age= death.getYear() - birth.getYear()
|
self.age= death.getYear() - birth.getYear()
|
||||||
self.units= "year"
|
self.units= 3 # year
|
||||||
if birth.getMonthValid() and death.getMonthValid():
|
if birth.getMonthValid() and death.getMonthValid():
|
||||||
if birth.getMonth() > death.getMonth():
|
if birth.getMonth() > death.getMonth():
|
||||||
self.age= self.age -1
|
self.age= self.age -1
|
||||||
@ -1056,10 +1056,22 @@ class reportOptions:
|
|||||||
self.age= death.getMonth() - birth.getMonth() # calc age in months
|
self.age= death.getMonth() - birth.getMonth() # calc age in months
|
||||||
if birth.getDay() > death.getDay():
|
if birth.getDay() > death.getDay():
|
||||||
self.age= self.age - 1
|
self.age= self.age - 1
|
||||||
self.units= "month"
|
self.units= 2 # month
|
||||||
if self.age == 0:
|
if self.age == 0:
|
||||||
self.age= death.getDay() + 31 - birth.getDay() # calc age in days
|
self.age= death.getDay() + 31 - birth.getDay() # calc age in days
|
||||||
self.units= "day"
|
self.units= 1 # day
|
||||||
self.t= _(" at the age of %d %s") % (self.age, self.units)
|
if self.age > 1:
|
||||||
if self.age > 1: self.t= self.t + "s"
|
if self.units == 1:
|
||||||
|
self.t= _(" at the age of %d days") % self.age
|
||||||
|
elif self.units == 2:
|
||||||
|
self.t= _(" at the age of %d months") % self.age
|
||||||
|
else:
|
||||||
|
self.t= _(" at the age of %d years") % self.age
|
||||||
|
else:
|
||||||
|
if self.units == 1:
|
||||||
|
self.t= _(" at the age of %d day") % self.age
|
||||||
|
elif self.units == 2:
|
||||||
|
self.t= _(" at the age of %d month") % self.age
|
||||||
|
else:
|
||||||
|
self.t= _(" at the age of %d year") % self.age
|
||||||
return self.t
|
return self.t
|
||||||
|
|||||||
@ -182,7 +182,7 @@ class DetDescendantReport(Report):
|
|||||||
self.doc.write_text(_("- %s Born: %s Died: %s") % \
|
self.doc.write_text(_("- %s Born: %s Died: %s") % \
|
||||||
(name, birth.getPlaceName(), death.getDate())) # 6
|
(name, birth.getPlaceName(), death.getDate())) # 6
|
||||||
elif death.getPlaceName() != "":
|
elif death.getPlaceName() != "":
|
||||||
self.doc.write_text(_("- %s Born: %s %s Died: %s") % \
|
self.doc.write_text(_("- %s Born: %s Died: %s") % \
|
||||||
(name, birth.getPlaceName(), death.getPlaceName())) # 5
|
(name, birth.getPlaceName(), death.getPlaceName())) # 5
|
||||||
else: self.doc.write_text(_("- %s Born: %s") % \
|
else: self.doc.write_text(_("- %s Born: %s") % \
|
||||||
(name, birth.getPlaceName())) # 4
|
(name, birth.getPlaceName())) # 4
|
||||||
@ -294,7 +294,7 @@ class DetDescendantReport(Report):
|
|||||||
else:
|
else:
|
||||||
self.doc.write_text(_(" was born in the year %s.") % date.getYear())
|
self.doc.write_text(_(" was born in the year %s.") % date.getYear())
|
||||||
elif place != "":
|
elif place != "":
|
||||||
self.doc.write_text(_(" in %s.") % place)
|
self.doc.write_text(_(" was born in %s.") % place)
|
||||||
else:
|
else:
|
||||||
self.doc.write_text(_("."))
|
self.doc.write_text(_("."))
|
||||||
|
|
||||||
@ -419,25 +419,25 @@ class DetDescendantReport(Report):
|
|||||||
if person.getGender() == RelLib.Person.male:
|
if person.getGender() == RelLib.Person.male:
|
||||||
if father != "":
|
if father != "":
|
||||||
if mother != "":
|
if mother != "":
|
||||||
self.doc.write_text(_(" %s was the son of %s and %s." % \
|
self.doc.write_text(_(" %s was the son of %s and %s.") % \
|
||||||
(firstName, father, mother)))
|
(firstName, father, mother))
|
||||||
else:
|
else:
|
||||||
self.doc.write_text(_(" %s was the son of %s." % \
|
self.doc.write_text(_(" %s was the son of %s.") % \
|
||||||
(firstName, father)))
|
(firstName, father))
|
||||||
else:
|
else:
|
||||||
self.doc.write_text(_(" %s was the son of %s." % \
|
self.doc.write_text(_(" %s was the son of %s.") % \
|
||||||
(firstName, mother)))
|
(firstName, mother))
|
||||||
else:
|
else:
|
||||||
if father != "":
|
if father != "":
|
||||||
if mother != "":
|
if mother != "":
|
||||||
self.doc.write_text(_(" %s was the daughter of %s and %s." % \
|
self.doc.write_text(_(" %s was the daughter of %s and %s.") % \
|
||||||
(firstName, father, mother)))
|
(firstName, father, mother))
|
||||||
else:
|
else:
|
||||||
self.doc.write_text(_(" %s was the daughter of %s." % \
|
self.doc.write_text(_(" %s was the daughter of %s.") % \
|
||||||
(firstName, father)))
|
(firstName, father))
|
||||||
else:
|
else:
|
||||||
self.doc.write_text(_(" %s was the daughter of %s." % \
|
self.doc.write_text(_(" %s was the daughter of %s.") % \
|
||||||
(firstName, mother)))
|
(firstName, mother))
|
||||||
|
|
||||||
|
|
||||||
def write_marriage(self, person, rptOptions):
|
def write_marriage(self, person, rptOptions):
|
||||||
@ -938,7 +938,7 @@ class reportOptions:
|
|||||||
self.t= ""
|
self.t= ""
|
||||||
if birth.getYearValid() and death.getYearValid():
|
if birth.getYearValid() and death.getYearValid():
|
||||||
self.age= death.getYear() - birth.getYear()
|
self.age= death.getYear() - birth.getYear()
|
||||||
self.units= "year"
|
self.units= 3 # year
|
||||||
if birth.getMonthValid() and death.getMonthValid():
|
if birth.getMonthValid() and death.getMonthValid():
|
||||||
if birth.getMonth() > death.getMonth():
|
if birth.getMonth() > death.getMonth():
|
||||||
self.age= self.age -1
|
self.age= self.age -1
|
||||||
@ -949,10 +949,22 @@ class reportOptions:
|
|||||||
self.age= death.getMonth() - birth.getMonth() # calc age in months
|
self.age= death.getMonth() - birth.getMonth() # calc age in months
|
||||||
if birth.getDay() > death.getDay():
|
if birth.getDay() > death.getDay():
|
||||||
self.age= self.age - 1
|
self.age= self.age - 1
|
||||||
self.units= "month"
|
self.units= 2 # month
|
||||||
if self.age == 0:
|
if self.age == 0:
|
||||||
self.age= death.getDay() + 31 - birth.getDay() # calc age in days
|
self.age= death.getDay() + 31 - birth.getDay() # calc age in days
|
||||||
self.units= "day"
|
self.units= 1 # day
|
||||||
self.t= _(" at the age of %d %s") % (self.age, self.units)
|
if self.age > 1:
|
||||||
if self.age > 1: self.t= self.t + "s"
|
if self.units == 1:
|
||||||
|
self.t= _(" at the age of %d days") % self.age
|
||||||
|
elif self.units == 2:
|
||||||
|
self.t= _(" at the age of %d months") % self.age
|
||||||
|
else:
|
||||||
|
self.t= _(" at the age of %d years") % self.age
|
||||||
|
else:
|
||||||
|
if self.units == 1:
|
||||||
|
self.t= _(" at the age of %d day") % self.age
|
||||||
|
elif self.units == 2:
|
||||||
|
self.t= _(" at the age of %d month") % self.age
|
||||||
|
else:
|
||||||
|
self.t= _(" at the age of %d year") % self.age
|
||||||
return self.t
|
return self.t
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user