5293: at least/at most for ages at death (DAR/DDR)
svn: r18290
This commit is contained in:
parent
2ed489a858
commit
0cd782cd5f
@ -55,10 +55,9 @@ _NAME_INDEX_EXCLUDE_NAME = 1
|
|||||||
|
|
||||||
# In string arrays, the first strings should not include age.
|
# In string arrays, the first strings should not include age.
|
||||||
# The following strings should include year, month and day units.
|
# The following strings should include year, month and day units.
|
||||||
|
# And support format with precision (see gen/lib/date.py).
|
||||||
_AGE_INDEX_NO_AGE = 0
|
_AGE_INDEX_NO_AGE = 0
|
||||||
_AGE_INDEX_YEARS = 1
|
_AGE_INDEX = 1
|
||||||
_AGE_INDEX_MONTHS = 2
|
|
||||||
_AGE_INDEX_DAYS = 3
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -184,377 +183,265 @@ born_no_date_with_place = [
|
|||||||
died_full_date_with_place = [
|
died_full_date_with_place = [
|
||||||
{ Person.UNKNOWN : [
|
{ Person.UNKNOWN : [
|
||||||
_("%(unknown_gender_name)s died on %(death_date)s in %(death_place)s."),
|
_("%(unknown_gender_name)s died on %(death_date)s in %(death_place)s."),
|
||||||
_("%(unknown_gender_name)s died on %(death_date)s in %(death_place)s at the age of %(age)d years."),
|
_("%(unknown_gender_name)s died on %(death_date)s in %(death_place)s at the age of %(age)s."),
|
||||||
_("%(unknown_gender_name)s died on %(death_date)s in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("%(unknown_gender_name)s died on %(death_date)s in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.MALE : [
|
Person.MALE : [
|
||||||
_("%(male_name)s died on %(death_date)s in %(death_place)s."),
|
_("%(male_name)s died on %(death_date)s in %(death_place)s."),
|
||||||
_("%(male_name)s died on %(death_date)s in %(death_place)s at the age of %(age)d years."),
|
_("%(male_name)s died on %(death_date)s in %(death_place)s at the age of %(age)s."),
|
||||||
_("%(male_name)s died on %(death_date)s in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("%(male_name)s died on %(death_date)s in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.FEMALE : [
|
Person.FEMALE : [
|
||||||
_("%(female_name)s died on %(death_date)s in %(death_place)s."),
|
_("%(female_name)s died on %(death_date)s in %(death_place)s."),
|
||||||
_("%(female_name)s died on %(death_date)s in %(death_place)s at the age of %(age)d years."),
|
_("%(female_name)s died on %(death_date)s in %(death_place)s at the age of %(age)s."),
|
||||||
_("%(female_name)s died on %(death_date)s in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("%(female_name)s died on %(death_date)s in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{ Person.UNKNOWN : [
|
{ Person.UNKNOWN : [
|
||||||
_("This person died on %(death_date)s in %(death_place)s."),
|
_("This person died on %(death_date)s in %(death_place)s."),
|
||||||
_("This person died on %(death_date)s in %(death_place)s at the age of %(age)d years."),
|
_("This person died on %(death_date)s in %(death_place)s at the age of %(age)s."),
|
||||||
_("This person died on %(death_date)s in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("This person died on %(death_date)s in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.MALE : [
|
Person.MALE : [
|
||||||
_("He died on %(death_date)s in %(death_place)s."),
|
_("He died on %(death_date)s in %(death_place)s."),
|
||||||
_("He died on %(death_date)s in %(death_place)s at the age of %(age)d years."),
|
_("He died on %(death_date)s in %(death_place)s at the age of %(age)s."),
|
||||||
_("He died on %(death_date)s in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("He died on %(death_date)s in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.FEMALE : [
|
Person.FEMALE : [
|
||||||
_("She died on %(death_date)s in %(death_place)s."),
|
_("She died on %(death_date)s in %(death_place)s."),
|
||||||
_("She died on %(death_date)s in %(death_place)s at the age of %(age)d years."),
|
_("She died on %(death_date)s in %(death_place)s at the age of %(age)s."),
|
||||||
_("She died on %(death_date)s in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("She died on %(death_date)s in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
_("Died %(death_date)s in %(death_place)s."),
|
_("Died %(death_date)s in %(death_place)s."),
|
||||||
_("Died %(death_date)s in %(death_place)s (age %(age)d years)."),
|
_("Died %(death_date)s in %(death_place)s (%(age)s)."),
|
||||||
_("Died %(death_date)s in %(death_place)s (age %(age)d months)."),
|
|
||||||
_("Died %(death_date)s in %(death_place)s (age %(age)d days)."),
|
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
|
|
||||||
died_modified_date_with_place = [
|
died_modified_date_with_place = [
|
||||||
{ Person.UNKNOWN : [
|
{ Person.UNKNOWN : [
|
||||||
_("%(unknown_gender_name)s died %(death_date)s in %(death_place)s."),
|
_("%(unknown_gender_name)s died %(death_date)s in %(death_place)s."),
|
||||||
_("%(unknown_gender_name)s died %(death_date)s in %(death_place)s at the age of %(age)d years."),
|
_("%(unknown_gender_name)s died %(death_date)s in %(death_place)s at the age of %(age)s."),
|
||||||
_("%(unknown_gender_name)s died %(death_date)s in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("%(unknown_gender_name)s died %(death_date)s in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.MALE : [
|
Person.MALE : [
|
||||||
_("%(male_name)s died %(death_date)s in %(death_place)s."),
|
_("%(male_name)s died %(death_date)s in %(death_place)s."),
|
||||||
_("%(male_name)s died %(death_date)s in %(death_place)s at the age of %(age)d years."),
|
_("%(male_name)s died %(death_date)s in %(death_place)s at the age of %(age)s."),
|
||||||
_("%(male_name)s died %(death_date)s in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("%(male_name)s died %(death_date)s in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.FEMALE : [
|
Person.FEMALE : [
|
||||||
_("%(female_name)s died %(death_date)s in %(death_place)s."),
|
_("%(female_name)s died %(death_date)s in %(death_place)s."),
|
||||||
_("%(female_name)s died %(death_date)s in %(death_place)s at the age of %(age)d years."),
|
_("%(female_name)s died %(death_date)s in %(death_place)s at the age of %(age)s."),
|
||||||
_("%(female_name)s died %(death_date)s in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("%(female_name)s died %(death_date)s in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{ Person.UNKNOWN : [
|
{ Person.UNKNOWN : [
|
||||||
_("This person died %(death_date)s in %(death_place)s."),
|
_("This person died %(death_date)s in %(death_place)s."),
|
||||||
_("This person died %(death_date)s in %(death_place)s at the age of %(age)d years."),
|
_("This person died %(death_date)s in %(death_place)s at the age of %(age)s."),
|
||||||
_("This person died %(death_date)s in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("This person died %(death_date)s in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.MALE : [
|
Person.MALE : [
|
||||||
_("He died %(death_date)s in %(death_place)s."),
|
_("He died %(death_date)s in %(death_place)s."),
|
||||||
_("He died %(death_date)s in %(death_place)s at the age of %(age)d years."),
|
_("He died %(death_date)s in %(death_place)s at the age of %(age)s."),
|
||||||
_("He died %(death_date)s in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("He died %(death_date)s in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.FEMALE : [
|
Person.FEMALE : [
|
||||||
_("She died %(death_date)s in %(death_place)s."),
|
_("She died %(death_date)s in %(death_place)s."),
|
||||||
_("She died %(death_date)s in %(death_place)s at the age of %(age)d years."),
|
_("She died %(death_date)s in %(death_place)s at the age of %(age)s."),
|
||||||
_("She died %(death_date)s in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("She died %(death_date)s in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
_("Died %(death_date)s in %(death_place)s."),
|
_("Died %(death_date)s in %(death_place)s."),
|
||||||
_("Died %(death_date)s in %(death_place)s (age %(age)d years)."),
|
_("Died %(death_date)s in %(death_place)s (%(age)s)."),
|
||||||
_("Died %(death_date)s in %(death_place)s (age %(age)d months)."),
|
|
||||||
_("Died %(death_date)s in %(death_place)s (age %(age)d days)."),
|
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
|
|
||||||
died_full_date_no_place = [
|
died_full_date_no_place = [
|
||||||
{ Person.UNKNOWN : [
|
{ Person.UNKNOWN : [
|
||||||
_("%(unknown_gender_name)s died on %(death_date)s."),
|
_("%(unknown_gender_name)s died on %(death_date)s."),
|
||||||
_("%(unknown_gender_name)s died on %(death_date)s at the age of %(age)d years."),
|
_("%(unknown_gender_name)s died on %(death_date)s at the age of %(age)s."),
|
||||||
_("%(unknown_gender_name)s died on %(death_date)s at the age of %(age)d months."),
|
|
||||||
_("%(unknown_gender_name)s died on %(death_date)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.MALE : [
|
Person.MALE : [
|
||||||
_("%(male_name)s died on %(death_date)s."),
|
_("%(male_name)s died on %(death_date)s."),
|
||||||
_("%(male_name)s died on %(death_date)s at the age of %(age)d years."),
|
_("%(male_name)s died on %(death_date)s at the age of %(age)s."),
|
||||||
_("%(male_name)s died on %(death_date)s at the age of %(age)d months."),
|
|
||||||
_("%(male_name)s died on %(death_date)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.FEMALE : [
|
Person.FEMALE : [
|
||||||
_("%(female_name)s died on %(death_date)s."),
|
_("%(female_name)s died on %(death_date)s."),
|
||||||
_("%(female_name)s died on %(death_date)s at the age of %(age)d years."),
|
_("%(female_name)s died on %(death_date)s at the age of %(age)s."),
|
||||||
_("%(female_name)s died on %(death_date)s at the age of %(age)d months."),
|
|
||||||
_("%(female_name)s died on %(death_date)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{ Person.UNKNOWN : [
|
{ Person.UNKNOWN : [
|
||||||
_("This person died on %(death_date)s."),
|
_("This person died on %(death_date)s."),
|
||||||
_("This person died on %(death_date)s at the age of %(age)d years."),
|
_("This person died on %(death_date)s at the age of %(age)s."),
|
||||||
_("This person died on %(death_date)s at the age of %(age)d months."),
|
|
||||||
_("This person died on %(death_date)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.MALE : [
|
Person.MALE : [
|
||||||
_("He died on %(death_date)s."),
|
_("He died on %(death_date)s."),
|
||||||
_("He died on %(death_date)s at the age of %(age)d years."),
|
_("He died on %(death_date)s at the age of %(age)s."),
|
||||||
_("He died on %(death_date)s at the age of %(age)d months."),
|
|
||||||
_("He died on %(death_date)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.FEMALE : [
|
Person.FEMALE : [
|
||||||
_("She died on %(death_date)s."),
|
_("She died on %(death_date)s."),
|
||||||
_("She died on %(death_date)s at the age of %(age)d years."),
|
_("She died on %(death_date)s at the age of %(age)s."),
|
||||||
_("She died on %(death_date)s at the age of %(age)d months."),
|
|
||||||
_("She died on %(death_date)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
_("Died %(death_date)s."),
|
_("Died %(death_date)s."),
|
||||||
_("Died %(death_date)s (age %(age)d years)."),
|
_("Died %(death_date)s (%(age)s)."),
|
||||||
_("Died %(death_date)s (age %(age)d months)."),
|
|
||||||
_("Died %(death_date)s (age %(age)d days)."),
|
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
|
|
||||||
died_modified_date_no_place = [
|
died_modified_date_no_place = [
|
||||||
{ Person.UNKNOWN : [
|
{ Person.UNKNOWN : [
|
||||||
_("%(unknown_gender_name)s died %(death_date)s."),
|
_("%(unknown_gender_name)s died %(death_date)s."),
|
||||||
_("%(unknown_gender_name)s died %(death_date)s at the age of %(age)d years."),
|
_("%(unknown_gender_name)s died %(death_date)s at the age of %(age)s."),
|
||||||
_("%(unknown_gender_name)s died %(death_date)s at the age of %(age)d months."),
|
|
||||||
_("%(unknown_gender_name)s died %(death_date)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.MALE : [
|
Person.MALE : [
|
||||||
_("%(male_name)s died %(death_date)s."),
|
_("%(male_name)s died %(death_date)s."),
|
||||||
_("%(male_name)s died %(death_date)s at the age of %(age)d years."),
|
_("%(male_name)s died %(death_date)s at the age of %(age)s."),
|
||||||
_("%(male_name)s died %(death_date)s at the age of %(age)d months."),
|
|
||||||
_("%(male_name)s died %(death_date)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.FEMALE : [
|
Person.FEMALE : [
|
||||||
_("%(female_name)s died %(death_date)s."),
|
_("%(female_name)s died %(death_date)s."),
|
||||||
_("%(female_name)s died %(death_date)s at the age of %(age)d years."),
|
_("%(female_name)s died %(death_date)s at the age of %(age)s."),
|
||||||
_("%(female_name)s died %(death_date)s at the age of %(age)d months."),
|
|
||||||
_("%(female_name)s died %(death_date)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{ Person.UNKNOWN : [
|
{ Person.UNKNOWN : [
|
||||||
_("This person died %(death_date)s."),
|
_("This person died %(death_date)s."),
|
||||||
_("This person died %(death_date)s at the age of %(age)d years."),
|
_("This person died %(death_date)s at the age of %(age)s."),
|
||||||
_("This person died %(death_date)s at the age of %(age)d months."),
|
|
||||||
_("This person died %(death_date)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.MALE : [
|
Person.MALE : [
|
||||||
_("He died %(death_date)s."),
|
_("He died %(death_date)s."),
|
||||||
_("He died %(death_date)s at the age of %(age)d years."),
|
_("He died %(death_date)s at the age of %(age)s."),
|
||||||
_("He died %(death_date)s at the age of %(age)d months."),
|
|
||||||
_("He died %(death_date)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.FEMALE : [
|
Person.FEMALE : [
|
||||||
_("She died %(death_date)s."),
|
_("She died %(death_date)s."),
|
||||||
_("She died %(death_date)s at the age of %(age)d years."),
|
_("She died %(death_date)s at the age of %(age)s."),
|
||||||
_("She died %(death_date)s at the age of %(age)d months."),
|
|
||||||
_("She died %(death_date)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
_("Died %(death_date)s."),
|
_("Died %(death_date)s."),
|
||||||
_("Died %(death_date)s (age %(age)d years)."),
|
_("Died %(death_date)s (%(age)s)."),
|
||||||
_("Died %(death_date)s (age %(age)d months)."),
|
|
||||||
_("Died %(death_date)s (age %(age)d days)."),
|
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
|
|
||||||
died_partial_date_with_place = [
|
died_partial_date_with_place = [
|
||||||
{ Person.UNKNOWN : [
|
{ Person.UNKNOWN : [
|
||||||
_("%(unknown_gender_name)s died in %(month_year)s in %(death_place)s."),
|
_("%(unknown_gender_name)s died in %(month_year)s in %(death_place)s."),
|
||||||
_("%(unknown_gender_name)s died in %(month_year)s in %(death_place)s at the age of %(age)d years."),
|
_("%(unknown_gender_name)s died in %(month_year)s in %(death_place)s at the age of %(age)s."),
|
||||||
_("%(unknown_gender_name)s died in %(month_year)s in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("%(unknown_gender_name)s died in %(month_year)s in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.MALE : [
|
Person.MALE : [
|
||||||
_("%(male_name)s died in %(month_year)s in %(death_place)s."),
|
_("%(male_name)s died in %(month_year)s in %(death_place)s."),
|
||||||
_("%(male_name)s died in %(month_year)s in %(death_place)s at the age of %(age)d years."),
|
_("%(male_name)s died in %(month_year)s in %(death_place)s at the age of %(age)s."),
|
||||||
_("%(male_name)s died in %(month_year)s in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("%(male_name)s died in %(month_year)s in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.FEMALE : [
|
Person.FEMALE : [
|
||||||
_("%(female_name)s died in %(month_year)s in %(death_place)s."),
|
_("%(female_name)s died in %(month_year)s in %(death_place)s."),
|
||||||
_("%(female_name)s died in %(month_year)s in %(death_place)s at the age of %(age)d years."),
|
_("%(female_name)s died in %(month_year)s in %(death_place)s at the age of %(age)s."),
|
||||||
_("%(female_name)s died in %(month_year)s in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("%(female_name)s died in %(month_year)s in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{ Person.UNKNOWN : [
|
{ Person.UNKNOWN : [
|
||||||
_("This person died in %(month_year)s in %(death_place)s."),
|
_("This person died in %(month_year)s in %(death_place)s."),
|
||||||
_("This person died in %(month_year)s in %(death_place)s at the age of %(age)d years."),
|
_("This person died in %(month_year)s in %(death_place)s at the age of %(age)s."),
|
||||||
_("This person died in %(month_year)s in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("This person died in %(month_year)s in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.MALE : [
|
Person.MALE : [
|
||||||
_("He died in %(month_year)s in %(death_place)s."),
|
_("He died in %(month_year)s in %(death_place)s."),
|
||||||
_("He died in %(month_year)s in %(death_place)s at the age of %(age)d years."),
|
_("He died in %(month_year)s in %(death_place)s at the age of %(age)s."),
|
||||||
_("He died in %(month_year)s in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("He died in %(month_year)s in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.FEMALE : [
|
Person.FEMALE : [
|
||||||
_("She died in %(month_year)s in %(death_place)s."),
|
_("She died in %(month_year)s in %(death_place)s."),
|
||||||
_("She died in %(month_year)s in %(death_place)s at the age of %(age)d years."),
|
_("She died in %(month_year)s in %(death_place)s at the age of %(age)s."),
|
||||||
_("She died in %(month_year)s in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("She died in %(month_year)s in %(death_place)s at the age of %(age)d days."),
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
_("Died %(month_year)s in %(death_place)s."),
|
_("Died %(month_year)s in %(death_place)s."),
|
||||||
_("Died %(month_year)s in %(death_place)s (age %(age)d years)."),
|
_("Died %(month_year)s in %(death_place)s (%(age)s)."),
|
||||||
_("Died %(month_year)s in %(death_place)s (age %(age)d months)."),
|
|
||||||
_("Died %(month_year)s in %(death_place)s (age %(age)d days)."),
|
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
|
|
||||||
died_partial_date_no_place = [
|
died_partial_date_no_place = [
|
||||||
{ Person.UNKNOWN : [
|
{ Person.UNKNOWN : [
|
||||||
_("%(unknown_gender_name)s died in %(month_year)s."),
|
_("%(unknown_gender_name)s died in %(month_year)s."),
|
||||||
_("%(unknown_gender_name)s died in %(month_year)s at the age of %(age)d years."),
|
_("%(unknown_gender_name)s died in %(month_year)s at the age of %(age)s."),
|
||||||
_("%(unknown_gender_name)s died in %(month_year)s at the age of %(age)d months."),
|
|
||||||
_("%(unknown_gender_name)s died in %(month_year)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.MALE : [
|
Person.MALE : [
|
||||||
_("%(male_name)s died in %(month_year)s."),
|
_("%(male_name)s died in %(month_year)s."),
|
||||||
_("%(male_name)s died in %(month_year)s at the age of %(age)d years."),
|
_("%(male_name)s died in %(month_year)s at the age of %(age)s."),
|
||||||
_("%(male_name)s died in %(month_year)s at the age of %(age)d months."),
|
|
||||||
_("%(male_name)s died in %(month_year)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.FEMALE : [
|
Person.FEMALE : [
|
||||||
_("%(female_name)s died in %(month_year)s."),
|
_("%(female_name)s died in %(month_year)s."),
|
||||||
_("%(female_name)s died in %(month_year)s at the age of %(age)d years."),
|
_("%(female_name)s died in %(month_year)s at the age of %(age)s."),
|
||||||
_("%(female_name)s died in %(month_year)s at the age of %(age)d months."),
|
|
||||||
_("%(female_name)s died in %(month_year)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{ Person.UNKNOWN : [
|
{ Person.UNKNOWN : [
|
||||||
_("This person died in %(month_year)s."),
|
_("This person died in %(month_year)s."),
|
||||||
_("This person died in %(month_year)s at the age of %(age)d years."),
|
_("This person died in %(month_year)s at the age of %(age)s."),
|
||||||
_("This person died in %(month_year)s at the age of %(age)d months."),
|
|
||||||
_("This person died in %(month_year)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.MALE : [
|
Person.MALE : [
|
||||||
_("He died in %(month_year)s."),
|
_("He died in %(month_year)s."),
|
||||||
_("He died in %(month_year)s at the age of %(age)d years."),
|
_("He died in %(month_year)s at the age of %(age)s."),
|
||||||
_("He died in %(month_year)s at the age of %(age)d months."),
|
|
||||||
_("He died in %(month_year)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.FEMALE : [
|
Person.FEMALE : [
|
||||||
_("She died in %(month_year)s."),
|
_("She died in %(month_year)s."),
|
||||||
_("She died in %(month_year)s at the age of %(age)d years."),
|
_("She died in %(month_year)s at the age of %(age)s."),
|
||||||
_("She died in %(month_year)s at the age of %(age)d months."),
|
|
||||||
_("She died in %(month_year)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
_("Died %(month_year)s."),
|
_("Died %(month_year)s."),
|
||||||
_("Died %(month_year)s (age %(age)d years)."),
|
_("Died %(month_year)s (%(age)s)."),
|
||||||
_("Died %(month_year)s (age %(age)d months)."),
|
|
||||||
_("Died %(month_year)s (age %(age)d days)."),
|
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
|
|
||||||
died_no_date_with_place = [
|
died_no_date_with_place = [
|
||||||
{ Person.UNKNOWN : [
|
{ Person.UNKNOWN : [
|
||||||
_("%(unknown_gender_name)s died in %(death_place)s."),
|
_("%(unknown_gender_name)s died in %(death_place)s."),
|
||||||
_("%(unknown_gender_name)s died in %(death_place)s at the age of %(age)d years."),
|
_("%(unknown_gender_name)s died in %(death_place)s at the age of %(age)s."),
|
||||||
_("%(unknown_gender_name)s died in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("%(unknown_gender_name)s died in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.MALE : [
|
Person.MALE : [
|
||||||
_("%(male_name)s died in %(death_place)s."),
|
_("%(male_name)s died in %(death_place)s."),
|
||||||
_("%(male_name)s died in %(death_place)s at the age of %(age)d years."),
|
_("%(male_name)s died in %(death_place)s at the age of %(age)s."),
|
||||||
_("%(male_name)s died in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("%(male_name)s died in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.FEMALE : [
|
Person.FEMALE : [
|
||||||
_("%(female_name)s died in %(death_place)s."),
|
_("%(female_name)s died in %(death_place)s."),
|
||||||
_("%(female_name)s died in %(death_place)s at the age of %(age)d years."),
|
_("%(female_name)s died in %(death_place)s at the age of %(age)s."),
|
||||||
_("%(female_name)s died in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("%(female_name)s died in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Person.UNKNOWN : [
|
Person.UNKNOWN : [
|
||||||
_("This person died in %(death_place)s."),
|
_("This person died in %(death_place)s."),
|
||||||
_("This person died in %(death_place)s at the age of %(age)d years."),
|
_("This person died in %(death_place)s at the age of %(age)s."),
|
||||||
_("This person died in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("This person died in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.MALE : [
|
Person.MALE : [
|
||||||
_("He died in %(death_place)s."),
|
_("He died in %(death_place)s."),
|
||||||
_("He died in %(death_place)s at the age of %(age)d years."),
|
_("He died in %(death_place)s at the age of %(age)s."),
|
||||||
_("He died in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("He died in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.FEMALE : [
|
Person.FEMALE : [
|
||||||
_("She died in %(death_place)s."),
|
_("She died in %(death_place)s."),
|
||||||
_("She died in %(death_place)s at the age of %(age)d years."),
|
_("She died in %(death_place)s at the age of %(age)s."),
|
||||||
_("She died in %(death_place)s at the age of %(age)d months."),
|
|
||||||
_("She died in %(death_place)s at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
_("Died in %(death_place)s."),
|
_("Died in %(death_place)s."),
|
||||||
_("Died in %(death_place)s (age %(age)d years)."),
|
_("Died in %(death_place)s (%(age)s)."),
|
||||||
_("Died in %(death_place)s (age %(age)d months)."),
|
|
||||||
_("Died in %(death_place)s (age %(age)d days)."),
|
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
|
|
||||||
died_no_date_no_place = [
|
died_no_date_no_place = [
|
||||||
{ Person.UNKNOWN : [
|
{ Person.UNKNOWN : [
|
||||||
"",
|
"",
|
||||||
_("%(unknown_gender_name)s died at the age of %(age)d years."),
|
_("%(unknown_gender_name)s died at the age of %(age)s."),
|
||||||
_("%(unknown_gender_name)s died at the age of %(age)d months."),
|
|
||||||
_("%(unknown_gender_name)s died at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.MALE : [
|
Person.MALE : [
|
||||||
"",
|
"",
|
||||||
_("%(male_name)s died at the age of %(age)d years."),
|
_("%(male_name)s died at the age of %(age)s."),
|
||||||
_("%(male_name)s died at the age of %(age)d months."),
|
|
||||||
_("%(male_name)s died at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.FEMALE : [
|
Person.FEMALE : [
|
||||||
"",
|
"",
|
||||||
_("%(female_name)s died at the age of %(age)d years."),
|
_("%(female_name)s died at the age of %(age)s."),
|
||||||
_("%(female_name)s died at the age of %(age)d months."),
|
|
||||||
_("%(female_name)s died at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{ Person.UNKNOWN : [
|
{ Person.UNKNOWN : [
|
||||||
"",
|
"",
|
||||||
_("This person died at the age of %(age)d years."),
|
_("This person died at the age of %(age)s."),
|
||||||
_("This person died at the age of %(age)d months."),
|
|
||||||
_("This person died at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.MALE : [
|
Person.MALE : [
|
||||||
"",
|
"",
|
||||||
_("He died at the age of %(age)d years."),
|
_("He died at the age of %(age)s."),
|
||||||
_("He died at the age of %(age)d months."),
|
|
||||||
_("He died at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
Person.FEMALE : [
|
Person.FEMALE : [
|
||||||
"",
|
"",
|
||||||
_("She died at the age of %(age)d years."),
|
_("She died at the age of %(age)s."),
|
||||||
_("She died at the age of %(age)d months."),
|
|
||||||
_("She died at the age of %(age)d days."),
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
"",
|
"",
|
||||||
_("Died (age %(age)d years)."),
|
_("Died (%(age)s)."),
|
||||||
_("Died (age %(age)d months)."),
|
|
||||||
_("Died (age %(age)d days)."),
|
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -1627,19 +1514,14 @@ class Narrator(object):
|
|||||||
Get a string narrating the death of the subject.
|
Get a string narrating the death of the subject.
|
||||||
Example sentences:
|
Example sentences:
|
||||||
Person died on Date
|
Person died on Date
|
||||||
Person died on Date at the age of N Years
|
Person died on Date at the age of 'age'
|
||||||
Person died on Date at the age of N Months
|
|
||||||
Person died on Date at the age of N Days
|
|
||||||
Person died on Date in Place
|
Person died on Date in Place
|
||||||
Person died on Date in Place at the age of N Years
|
Person died on Date in Place at the age of 'age'
|
||||||
Person died on Date in Place at the age of N Months
|
|
||||||
Person died on Date in Place at the age of N Days
|
|
||||||
Person died in Place
|
Person died in Place
|
||||||
Person died in Place at the age of N Years
|
Person died in Place at the age of 'age'
|
||||||
Person died in Place at the age of N Months
|
|
||||||
Person died in Place at the age of N Days
|
|
||||||
Person died
|
Person died
|
||||||
''
|
''
|
||||||
|
where 'age' string is an advanced age calculation.
|
||||||
|
|
||||||
:returns: A sentence about the subject's death.
|
:returns: A sentence about the subject's death.
|
||||||
:rtype: unicode
|
:rtype: unicode
|
||||||
@ -2098,7 +1980,7 @@ class Narrator(object):
|
|||||||
spouse_handle = ReportUtils.find_spouse(self.__person, family)
|
spouse_handle = ReportUtils.find_spouse(self.__person, family)
|
||||||
spouse = self.__db.get_person_from_handle(spouse_handle)
|
spouse = self.__db.get_person_from_handle(spouse_handle)
|
||||||
event = ReportUtils.find_marriage(self.__db, family)
|
event = ReportUtils.find_marriage(self.__db, family)
|
||||||
|
|
||||||
date = self.__empty_date
|
date = self.__empty_date
|
||||||
place = self.__empty_place
|
place = self.__empty_place
|
||||||
if spouse:
|
if spouse:
|
||||||
@ -2109,7 +1991,7 @@ class Narrator(object):
|
|||||||
else:
|
else:
|
||||||
# not all families have a spouse.
|
# not all families have a spouse.
|
||||||
spouse_name = _("Unknown")
|
spouse_name = _("Unknown")
|
||||||
|
|
||||||
if event:
|
if event:
|
||||||
if self.__use_fulldate :
|
if self.__use_fulldate :
|
||||||
mdate = self.__get_date(event.get_date_object())
|
mdate = self.__get_date(event.get_date_object())
|
||||||
@ -2131,7 +2013,7 @@ class Narrator(object):
|
|||||||
'partial_date' : date,
|
'partial_date' : date,
|
||||||
'place' : place,
|
'place' : place,
|
||||||
}
|
}
|
||||||
|
|
||||||
date_full = 0
|
date_full = 0
|
||||||
|
|
||||||
if event:
|
if event:
|
||||||
@ -2358,15 +2240,9 @@ class Narrator(object):
|
|||||||
if birth_year_valid and death_year_valid:
|
if birth_year_valid and death_year_valid:
|
||||||
span = death - birth
|
span = death - birth
|
||||||
if span and span.is_valid():
|
if span and span.is_valid():
|
||||||
if span[0] != 0:
|
if span:
|
||||||
age = span[0]
|
age = span
|
||||||
age_index = _AGE_INDEX_YEARS
|
age_index = _AGE_INDEX
|
||||||
elif span[1] != 0:
|
|
||||||
age = span[1]
|
|
||||||
age_index = _AGE_INDEX_MONTHS
|
|
||||||
elif span[2] != 0:
|
|
||||||
age = span[2]
|
|
||||||
age_index = _AGE_INDEX_DAYS
|
|
||||||
else:
|
else:
|
||||||
age = 0
|
age = 0
|
||||||
age_index = _AGE_INDEX_NO_AGE
|
age_index = _AGE_INDEX_NO_AGE
|
||||||
|
Loading…
Reference in New Issue
Block a user