Skip to content

Commit

Permalink
Fix uninitialized variable and i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Aug 23, 2024
1 parent 84d555e commit 39cf6b5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -3058,7 +3058,7 @@ sub print_person
$phrase->append(" il y a $aod " . (($aod == 1) ? 'an' : 'ans') .
($opts{'t'} ? ' demain' : " aujourd'hui"));
} elsif($language eq 'German') {
$phrase->append("vor $aod " . (($aob == 1) ? 'Jahr' : 'Jahre') .
$phrase->append("vor $aod " . (($aod == 1) ? 'Jahr' : 'Jahre') .
($opts{'t'} ? ' morgen' : ' heute'));
} else {
$phrase->append("died $aod " . (($aod == 1) ? 'year' : 'years') . ' ago ' .
Expand Down Expand Up @@ -5346,7 +5346,7 @@ sub print_person
} elsif(($same_road_as_mother || $same_road_as_father) && !$printed_sibling) {
if($age >= 30) {
$residencestring .= ' on the same road as ' .
($person->pronoun() eq 'She' ? 'her' : 'his');
($person->pronoun() eq 'She' ? 'her' : 'his');
$printed_sibling = 1;
$first = 0;

Expand Down Expand Up @@ -7213,7 +7213,7 @@ sub print_person
$phrase->append("\n\t");
}
$phrase->append(given_names($child) .
' was born ' .
i18n(' was born ') .
year({ person => $child, date => $dob }));
if($opts{'w'} && ($birth_dt || $death_dt) &&
($dob !~ /^\d{3,4}$/) && ($dob =~ /^\d/) &&
Expand Down Expand Up @@ -13844,6 +13844,8 @@ sub DESTROY {

1;

package main;

# Must all be in lower case
__DATA__
@@ English
Expand Down

0 comments on commit 39cf6b5

Please sign in to comment.