summaryrefslogtreecommitdiffstats
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-bd2f5760ab.tar.gz
rockbox-bd2f5760ab.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) {
$lang{$id}{'dest'}{$tgt} ne $english{$id}{'dest'}{$tgt}) {
$lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is blank! Copying from translated <dest>!\n";
$lang{$id}{'voice'}{$tgt} = $lang{$id}{'dest'}{$tgt};
+ } elsif ($id eq 'VOICE_LANG_NAME') {
+ $lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is blank! Please fill out!\n";
} else {
$lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is blank! Copying from english!\n";