Skip to content

Commit

Permalink
Fix language when someone is still alive and has one surviving child
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Oct 14, 2024
1 parent d4602fe commit 7b45199
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dynamic-site/templates/en/web/Ged2site/Display/surnames.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
[% FOREACH surname IN surnames %]
[% IF surname.surname.substr(0,1) != initial %]
[% IF initial %]
</ul>
</div>
[% END %]
[% IF surname.surname == 'UNKNOWN' %]
Expand All @@ -78,7 +79,7 @@
<br>
<button class="collapsible">[% initial %]</button>
<div class="content">
<p>
<ul id="nav">
[% END %]
<li>
<a href="?page=surnames&amp;surname=[%- surname.surname | uri -%]">[% surname.surname %]</a>
Expand Down
8 changes: 6 additions & 2 deletions ged2site
Original file line number Diff line number Diff line change
Expand Up @@ -6565,8 +6565,12 @@ sub print_person
my $s = ', ';
if(scalar(@residencestringarray) < 3) {
$s .= lcfirst($pronoun);
if(is_alive($person) && !$first->date()) {
$s .= i18n(' has lived');
if(is_alive($person)) {
if($first->date()) {
$s .= i18n(' was living');
} else {
$s .= i18n(' has lived');
}
} else {
$s .= ' lived';
}
Expand Down

0 comments on commit 7b45199

Please sign in to comment.