diff options
-rwxr-xr-x | tools/updatelang | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/updatelang b/tools/updatelang index bde1dedaea..2c2b1e1d3b 100755 --- a/tools/updatelang +++ b/tools/updatelang | |||
@@ -366,9 +366,17 @@ foreach my $id (@langorder) { | |||
366 | } elsif ($lp{$tgt} ne $ep{$tgt}) { | 366 | } elsif ($lp{$tgt} ne $ep{$tgt}) { |
367 | if ($lp{$tgt} eq '' && $ep{$tgt} ne '') { | 367 | if ($lp{$tgt} eq '' && $ep{$tgt} ne '') { |
368 | # If the lang voice string is blank, complain, and copy from English | 368 | # If the lang voice string is blank, complain, and copy from English |
369 | $lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is blank! Copying from english!\n"; | ||
370 | # print "#!! '$id:$tgt' voice is blank ('$lp{$tgt}' vs '$ep{$tgt}')\n"; | 369 | # print "#!! '$id:$tgt' voice is blank ('$lp{$tgt}' vs '$ep{$tgt}')\n"; |
371 | $lang{$id}{'voice'}{$tgt} = $english{$id}{'voice'}{$tgt}; | 370 | if ($lang{$id}{'dest'}{$tgt} ne '' && |
371 | $lang{$id}{'dest'}{$tgt} ne $english{$id}{'dest'}{$tgt}) { | ||
372 | $lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is blank! Copying from translated <dest>!\n"; | ||
373 | $lang{$id}{'voice'}{$tgt} = $lang{$id}{'dest'}{$tgt}; | ||
374 | |||
375 | } else { | ||
376 | $lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is blank! Copying from english!\n"; | ||
377 | |||
378 | $lang{$id}{'voice'}{$tgt} = $english{$id}{'voice'}{$tgt}; | ||
379 | } | ||
372 | } elsif ($lp{$tgt} ne '' && $ep{$tgt} eq '') { | 380 | } elsif ($lp{$tgt} ne '' && $ep{$tgt} eq '') { |
373 | if ($id ne 'VOICE_NUMERIC_TENS_SWAP_SEPARATOR') { | 381 | if ($id ne 'VOICE_NUMERIC_TENS_SWAP_SEPARATOR') { |
374 | # If it's not blank, clear it and complain! | 382 | # If it's not blank, clear it and complain! |