summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-06-20 22:06:06 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-06-20 22:08:30 -0400
commitbd2f5760ab38f26f88ecfdf816e976e85fcbd8e0 (patch)
tree4317a6128a2c12ded2308277b3bb646fe4dfed2d
parent80cd79992540f33479f272cd4024d97e554b4220 (diff)
downloadrockbox-bd2f5760ab38f26f88ecfdf816e976e85fcbd8e0.tar.gz
rockbox-bd2f5760ab38f26f88ecfdf816e976e85fcbd8e0.zip
updatelang: More special VOICE_LANG_NAME handling.
If someone submits an incomplete translation without a VOICE_LANG_NAME, it will add the phrase but with a blank string. In subsequent runs, the blank string will be treated as an error.. and copied from English. Make it so that if it is blank, it stays blank. Change-Id: Ib4a6645a5a52c9d0ff6dcfd0702c2a507bf8d756
-rwxr-xr-xtools/updatelang2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/updatelang b/tools/updatelang
index febfadbfe0..b2d8c9028f 100755
--- a/tools/updatelang
+++ b/tools/updatelang
@@ -446,6 +446,8 @@ foreach my $id (@langorder) {
446 $lang{$id}{'dest'}{$tgt} ne $english{$id}{'dest'}{$tgt}) { 446 $lang{$id}{'dest'}{$tgt} ne $english{$id}{'dest'}{$tgt}) {
447 $lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is blank! Copying from translated <dest>!\n"; 447 $lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is blank! Copying from translated <dest>!\n";
448 $lang{$id}{'voice'}{$tgt} = $lang{$id}{'dest'}{$tgt}; 448 $lang{$id}{'voice'}{$tgt} = $lang{$id}{'dest'}{$tgt};
449 } elsif ($id eq 'VOICE_LANG_NAME') {
450 $lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is blank! Please fill out!\n";
449 } else { 451 } else {
450 $lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is blank! Copying from english!\n"; 452 $lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is blank! Copying from english!\n";
451 453