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'}; }