From bd2f5760ab38f26f88ecfdf816e976e85fcbd8e0 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 20 Jun 2024 22:06:06 -0400 Subject: 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 --- tools/updatelang | 2 ++ 1 file changed, 2 insertions(+) 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 section for '$id:$tgt' is blank! Copying from translated !\n"; $lang{$id}{'voice'}{$tgt} = $lang{$id}{'dest'}{$tgt}; + } elsif ($id eq 'VOICE_LANG_NAME') { + $lang{$id}{'notes'} .= "### The section for '$id:$tgt' is blank! Please fill out!\n"; } else { $lang{$id}{'notes'} .= "### The section for '$id:$tgt' is blank! Copying from english!\n"; -- cgit v1.2.3