summaryrefslogtreecommitdiff
path: root/tools/genlang
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-06-03 20:42:28 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-06-05 23:30:04 +0200
commit9f7c6a1745f14c5b13058b28711102bb6350268c (patch)
tree142d4d26d40faf0009687f33721a3682954c38eb /tools/genlang
parentb2380b535e99b4bc49d91bb228598f85362446ca (diff)
downloadrockbox-9f7c6a1745f14c5b13058b28711102bb6350268c.tar.gz
rockbox-9f7c6a1745f14c5b13058b28711102bb6350268c.zip
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
Diffstat (limited to 'tools/genlang')
-rwxr-xr-xtools/genlang7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/genlang b/tools/genlang
index 6139bd1810..bfd9fac7b5 100755
--- a/tools/genlang
+++ b/tools/genlang
@@ -807,7 +807,12 @@ elsif($voiceout) {
807 my $o = $engl[$i]; 807 my $o = $engl[$i];
808 808
809 if(($o < 0) || !length($o)) { 809 if(($o < 0) || !length($o)) {
810 print "#$i\nid: NOT_USED_$i\nvoice: \"\"\n"; 810 if($i < 0x8000) {
811 print "#$i\nid: NOT_USED_$i\nvoice: \"\"\n";
812 }
813 else {
814 print "#$i\nid: VOICE_NOT_USED_$i\nvoice: \"\"\n";
815 }
811 next; 816 next;
812 } 817 }
813 818