From 19afad88f8bb973726af0c6a7850dbd992996a9f Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 31 Jan 2005 00:34:32 +0000 Subject: 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 --- tools/binlang | 2 +- tools/genlang | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/binlang b/tools/binlang index 7cfa562227..13c969e260 100755 --- a/tools/binlang +++ b/tools/binlang @@ -70,7 +70,7 @@ while() { if($value =~ s/^\"(.*)\"\s*$/$1/g) { # Skip voice-only entries - if(!$value && $set{'voice'} ne "\"\"") { + if($set{'id'} =~ /^VOICE_/) { $idnum{$set{'id'}} = '_done_'; next; } diff --git a/tools/genlang b/tools/genlang index 2677735d2e..21182b7f9f 100755 --- a/tools/genlang +++ b/tools/genlang @@ -85,7 +85,7 @@ while() { # 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'}; } -- cgit v1.2.3