diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2023-08-16 09:34:46 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2023-08-16 09:35:05 +0100 |
| commit | 7ecbeefda352ca6acade0e92d75cf01cf63e6f5b (patch) | |
| tree | 0ffcbe7163cfc80443f7c8af682542b3f3b642fa /app | |
| parent | de730e63dab9a3960867c64890d61b1aad062b4e (diff) | |
| download | webtrees-7ecbeefda352ca6acade0e92d75cf01cf63e6f5b.tar.gz webtrees-7ecbeefda352ca6acade0e92d75cf01cf63e6f5b.tar.bz2 webtrees-7ecbeefda352ca6acade0e92d75cf01cf63e6f5b.zip | |
Show unknown death date as elipsis in lifespan
Diffstat (limited to 'app')
| -rw-r--r-- | app/Individual.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Individual.php b/app/Individual.php index 2304a68efd..6960acf51a 100644 --- a/app/Individual.php +++ b/app/Individual.php @@ -478,6 +478,10 @@ class Individual extends GedcomRecord $birth_year = $this->getBirthDate()->minimumDate()->format('%Y'); $death_year = $this->getDeathDate()->maximumDate()->format('%Y'); + if ($death_year === '' && $this->isDead()) { + $death_year = I18N::translate('…'); + } + /* I18N: A range of years, e.g. “1870–”, “1870–1920”, “–1920” */ return I18N::translate( '%1$s–%2$s', |
