forked from len0rd/rockbox
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
This commit is contained in:
parent
80cd799925
commit
bd2f5760ab
1 changed files with 2 additions and 0 deletions
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue