Skip to content

Commit

Permalink
Make sure États-Unis displays correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Aug 26, 2023
1 parent c4427d2 commit 5b2c61d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ged2site
Original file line number Diff line number Diff line change
Expand Up @@ -10389,9 +10389,9 @@ sub place {
if($place eq 'USA') {
if($language eq 'French') {
if($params{'nopreposition'}) {
return ' États-Unis';
return " \N{U+00C9}tats-Unis";
}
return ' aux États-Unis';
return " aux \N{U+00C9}tats-Unis";
}
if($params{'nopreposition'}) {
return ' USA';
Expand Down Expand Up @@ -10513,7 +10513,9 @@ sub place {
$c = $lcm->code2country($code, $lang);
if($c ne 'United States') {
# utf8::decode($c);
$rc->set({ lang => $lang, string => "$1, $c" });
my $place = $1;
$c =~ s/É/\N{U+00C9}/g;
$rc->set({ lang => $lang, string => "$place, $c" });
}
}
} elsif($place !~ /,/ && ($language ne 'English')) {
Expand Down

0 comments on commit 5b2c61d

Please sign in to comment.