updatelang: ignore "same as english" flag when determining suggested voice string

Change-Id: I78d416679c64b837fff29d51e15e1dbd78f9fc0b
This commit is contained in:
Solomon Peachy 2024-06-24 13:21:27 -04:00
parent f22a8c1c9b
commit c2c8fcb561

View file

@ -466,7 +466,8 @@ foreach my $id (@langorder) {
} elsif ($lp{$tgt} ne 'none' && $lp{$tgt} ne '' && not_ignorelist($id) && !$lang{$id}{'new'} && !$ignoredups) {
# print "#!! '$id:$tgt' voice identical ('$lp{$tgt}')\n";
if ($lang{$id}{'dest'}{$tgt} ne '' &&
$lang{$id}{'dest'}{$tgt} ne $english{$id}{'dest'}{$tgt}) {
$lang{$id}{'dest'}{$tgt} ne $english{$id}{'dest'}{$tgt} &&
$lang{$id}{'dest'}{$tgt} ne "~$english{$id}{dest}{$tgt}") {
$lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is identical to english, copying translated <dest>\n";
$lang{$id}{'voice'}{$tgt} = $lang{$id}{'dest'}{$tgt};
} else {