webtrees
webtrees copied to clipboard
Would like to add the age next year range
here
after a searching
found the lifespan() function in Individual.php line 466
found the Age bit also
never done PHP before
so my understanding is
return I18N::translate(
'%1$s–%2$s',
'<span title="' . $birth_place . ' ' . $birth_date . '">' . $birth_year . '</span>',
'<span title="' . $death_place . ' ' . $death_date . '">' . $death_year . '</span>'
);
return the data I'm looking for SO can I just
return I18N::translate(
'%1$s–%2$s %3$s',
'<span title="' . $birth_place . ' ' . $birth_date . '">' . $birth_year . '</span>',
'<span title="' . $death_place . ' ' . $death_date . '">' . $death_year . '</span>',
'<span title="">' . $Age . '</span>'
);
I think that the Logic
but don't know how add the logic of if not dead show age as of now
have I miss the boat got it all wrong
but don't know how add the logic of if not dead show age as of now
You asked the same question on the forum, and I answered there.
Greg, close this issue (the owner does not react).