summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-06-24 13:21:27 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-06-24 13:21:27 -0400
commitc2c8fcb561fef6346f880e3c76a723e9b2d86c7b (patch)
tree7f54b5870c35683558cdc0ebad7d15fc985176f7
parentf22a8c1c9b317f0085db589a5dc81448ff6997ad (diff)
downloadrockbox-c2c8fcb561fef6346f880e3c76a723e9b2d86c7b.tar.gz
rockbox-c2c8fcb561fef6346f880e3c76a723e9b2d86c7b.zip
updatelang: ignore "same as english" flag when determining suggested voice string
Change-Id: I78d416679c64b837fff29d51e15e1dbd78f9fc0b
-rwxr-xr-xtools/updatelang3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/updatelang b/tools/updatelang
index b2d8c9028f..a05011e645 100755
--- a/tools/updatelang
+++ b/tools/updatelang
@@ -466,7 +466,8 @@ foreach my $id (@langorder) {
466 } elsif ($lp{$tgt} ne 'none' && $lp{$tgt} ne '' && not_ignorelist($id) && !$lang{$id}{'new'} && !$ignoredups) { 466 } elsif ($lp{$tgt} ne 'none' && $lp{$tgt} ne '' && not_ignorelist($id) && !$lang{$id}{'new'} && !$ignoredups) {
467# print "#!! '$id:$tgt' voice identical ('$lp{$tgt}')\n"; 467# print "#!! '$id:$tgt' voice identical ('$lp{$tgt}')\n";
468 if ($lang{$id}{'dest'}{$tgt} ne '' && 468 if ($lang{$id}{'dest'}{$tgt} ne '' &&
469 $lang{$id}{'dest'}{$tgt} ne $english{$id}{'dest'}{$tgt}) { 469 $lang{$id}{'dest'}{$tgt} ne $english{$id}{'dest'}{$tgt} &&
470 $lang{$id}{'dest'}{$tgt} ne "~$english{$id}{dest}{$tgt}") {
470 $lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is identical to english, copying translated <dest>\n"; 471 $lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is identical to english, copying translated <dest>\n";
471 $lang{$id}{'voice'}{$tgt} = $lang{$id}{'dest'}{$tgt}; 472 $lang{$id}{'voice'}{$tgt} = $lang{$id}{'dest'}{$tgt};
472 } else { 473 } else {