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:
parent
830842ad9f
commit
43cc13bd30
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue