Fix: Deprecated voice-only entries were treated as (deprecated) standard LANG_ entries. Now they are detected by the id matching VOICE_*.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5720 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
89f401a956
commit
19afad88f8
2 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ while(<ENG>) {
|
|||
|
||||
if($value =~ s/^\"(.*)\"\s*$/$1/g) {
|
||||
# Skip voice-only entries
|
||||
if(!$value && $set{'voice'} ne "\"\"") {
|
||||
if($set{'id'} =~ /^VOICE_/) {
|
||||
$idnum{$set{'id'}} = '_done_';
|
||||
next;
|
||||
}
|
||||
|
|
|
@ -85,7 +85,7 @@ while(<LANG>) {
|
|||
# print "VOICE: ".$set{'voice'}." VALUE: $value\n";
|
||||
# Note: if both entries are "", the string is deprecated,
|
||||
# but must be included to maintain compatibility
|
||||
if(($value eq "\"\"") && $set{'voice'} ne "\"\"") {
|
||||
if($set{'id'} =~ /^VOICE_/) {
|
||||
# voice-only
|
||||
push @vfile, $set{'id'};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue