Fixed updating of old translations which don't contain voice: entries.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5842 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-02-07 22:33:32 +00:00
parent 830842ad9f
commit 43cc13bd30

View file

@ -106,11 +106,17 @@ while(<NEW>) {
$set{'voice'} = $all{$set{'id'}, 'voice'};
}
}
if($set{'voice'} =~ /^(\"\")? *$/
and $all{$set{'id'}, 'voice'} !~ /^(\"\")? *$/) {
print "### Voice not found in previous translation. Set to english.\n";
$set{'voice'} = $all{$set{'id'}, 'voice'};
}
print "voice: ".$set{'voice'}."\n";
print "new: ".$set{'new'}."\n";
$ids{$set{'id'}}=0;
undef %set;
}
}
}