diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-01-31 00:34:32 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-01-31 00:34:32 +0000 |
commit | 19afad88f8bb973726af0c6a7850dbd992996a9f (patch) | |
tree | 2d629e85073a893ad58cae9bb58803cb60e212c0 /tools | |
parent | 89f401a956aa61dfa5345bee07391d514c128be2 (diff) | |
download | rockbox-19afad88f8bb973726af0c6a7850dbd992996a9f.tar.gz rockbox-19afad88f8bb973726af0c6a7850dbd992996a9f.zip |
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
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/binlang | 2 | ||||
-rwxr-xr-x | tools/genlang | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/binlang b/tools/binlang index 7cfa562227..13c969e260 100755 --- a/tools/binlang +++ b/tools/binlang | |||
@@ -70,7 +70,7 @@ while(<ENG>) { | |||
70 | 70 | ||
71 | if($value =~ s/^\"(.*)\"\s*$/$1/g) { | 71 | if($value =~ s/^\"(.*)\"\s*$/$1/g) { |
72 | # Skip voice-only entries | 72 | # Skip voice-only entries |
73 | if(!$value && $set{'voice'} ne "\"\"") { | 73 | if($set{'id'} =~ /^VOICE_/) { |
74 | $idnum{$set{'id'}} = '_done_'; | 74 | $idnum{$set{'id'}} = '_done_'; |
75 | next; | 75 | next; |
76 | } | 76 | } |
diff --git a/tools/genlang b/tools/genlang index 2677735d2e..21182b7f9f 100755 --- a/tools/genlang +++ b/tools/genlang | |||
@@ -85,7 +85,7 @@ while(<LANG>) { | |||
85 | # print "VOICE: ".$set{'voice'}." VALUE: $value\n"; | 85 | # print "VOICE: ".$set{'voice'}." VALUE: $value\n"; |
86 | # Note: if both entries are "", the string is deprecated, | 86 | # Note: if both entries are "", the string is deprecated, |
87 | # but must be included to maintain compatibility | 87 | # but must be included to maintain compatibility |
88 | if(($value eq "\"\"") && $set{'voice'} ne "\"\"") { | 88 | if($set{'id'} =~ /^VOICE_/) { |
89 | # voice-only | 89 | # voice-only |
90 | push @vfile, $set{'id'}; | 90 | push @vfile, $set{'id'}; |
91 | } | 91 | } |