Skip to content

Commit

Permalink
Remove unneeded variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Feb 4, 2024
1 parent 1eede0d commit cd12fbe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -9249,9 +9249,8 @@ sub place {
# die "TODO: add language $language";
# }
# FIXME: should be table driven
my $to = $lang;
$rc->en($place);
if(my $t = $places->translate({ place => $1, from => 'en', to => $to })) {
if(my $t = $places->translate({ place => $1, from => 'en', to => $lang })) {
$place = "$t$2, $3";
$rc->set(lang => $lang, string => $place);
}
Expand Down

0 comments on commit cd12fbe

Please sign in to comment.