genlang: add VOICE_ prefix to unused voice-only strings.

voicefont uses the id prefix VOICE_ to recognize voice-only strings. Unused ids
get a NOT_USED prefixed entry to keep order correct. However, since this
applies to voice-only entries as well voicefont doesn't recognize those as
voice entries and puts them at the end of the lang strings table. This messes
up the order in the created voice file, so add VOICE_ as prefix so voicefont
can identify them.

Change-Id: Ic3f2ec038ce1ed93c84286979e6583b478fa697e
This commit is contained in:
Dominik Riebeling 2012-06-03 20:42:28 +02:00
parent b2380b535e
commit 9f7c6a1745

View file

@ -807,7 +807,12 @@ elsif($voiceout) {
my $o = $engl[$i];
if(($o < 0) || !length($o)) {
print "#$i\nid: NOT_USED_$i\nvoice: \"\"\n";
if($i < 0x8000) {
print "#$i\nid: NOT_USED_$i\nvoice: \"\"\n";
}
else {
print "#$i\nid: VOICE_NOT_USED_$i\nvoice: \"\"\n";
}
next;
}