webtrees
webtrees copied to clipboard
Historic events display of Individual age
The age shown on an historic event is calculated from the "TO" date of the event. This can result in an age being shown that is after the death of the individual. (See attached)
On the whole I think it would be better to use the "FROM" date, however that shifts the problem to age before birth so in that instance I wonder if the age could be calculated as max(age, 0)
We should maybe just use "(xx years after death)" in that case, as for other events occuring after the death of the individual.
Also, for from/to dates, maybe in general add the calculated age to both from and to, at least if it is different?
So, in this case we'd have
"from 16 October 1964 (aged 69 years) to 19 June 1970 (2 years after death)"
Are there any plans to address this issue? I'll handle it in Vesta otherwise. This should be part of a larger effort in order to also fix e.g. #3358.
I plan to move the date translations to the langauge files, and replace the translations with logic.
Dispite having 1000 translations for months with different declensions, we still don't handle every language correctly.
Age formatting should probably be the same. IIRC, there was an issue regarding ages in Turkish that cannot be handled using the current translation logic.