webtrees icon indicating copy to clipboard operation
webtrees copied to clipboard

Historic events display of Individual age

Open ddrury opened this issue 4 years ago • 3 comments

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) dump

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)

ddrury avatar Jul 26 '20 10:07 ddrury

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)"

ric2016 avatar Aug 03 '20 16:08 ric2016

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.

ric2016 avatar Jun 19 '22 08:06 ric2016

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.

fisharebest avatar Jun 28 '22 16:06 fisharebest