diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-06-24 13:21:27 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-06-24 13:21:27 -0400 |
commit | c2c8fcb561fef6346f880e3c76a723e9b2d86c7b (patch) | |
tree | 7f54b5870c35683558cdc0ebad7d15fc985176f7 | |
parent | f22a8c1c9b317f0085db589a5dc81448ff6997ad (diff) | |
download | rockbox-c2c8fcb561.tar.gz rockbox-c2c8fcb561.zip |
updatelang: ignore "same as english" flag when determining suggested voice string
Change-Id: I78d416679c64b837fff29d51e15e1dbd78f9fc0b
-rwxr-xr-x | tools/updatelang | 3 |
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) { } 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 { |