diff --git a/tools/updatelang b/tools/updatelang index 601ec3d297..48f447d074 100755 --- a/tools/updatelang +++ b/tools/updatelang @@ -307,7 +307,7 @@ foreach my $id (@langorder) { } } foreach my $tgt (keys(%ep)) { - if (!defined($lp{$tgt})) { + if (!defined($lp{$tgt}) || ($lp{$tgt} eq 'none')) { # If it doesn't exist in the language, copy it from English if ($ep{$tgt} ne 'none' && $ep{$tgt} ne '' ) { $lang{$id}{'notes'} .= "### The section for '$id:$tgt' is missing! Copying from english!\n"; @@ -356,7 +356,7 @@ foreach my $id (@langorder) { } } foreach my $tgt (keys(%ep)) { - if (!defined($lp{$tgt})) { + if (!defined($lp{$tgt}) || ($lp{$tgt} eq 'none')) { # If it doesn't exist in the language, copy it from English if ($ep{$tgt} ne 'none' && $ep{$tgt} ne '' ) { $lang{$id}{'notes'} .= "### The section for '$id:$tgt' is missing! Copying from english!\n";