summaryrefslogtreecommitdiff
path: root/tools/genlang
diff options
context:
space:
mode:
Diffstat (limited to 'tools/genlang')
-rwxr-xr-xtools/genlang6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/genlang b/tools/genlang
index 36d46f1ea6..6032c84899 100755
--- a/tools/genlang
+++ b/tools/genlang
@@ -2,7 +2,7 @@
2 2
3if(!$ARGV[0]) { 3if(!$ARGV[0]) {
4 print <<MOO 4 print <<MOO
5Usage: lang.pl [-p=<prefix>] <language file> 5Usage: genlang [-p=<prefix>] <language file>
6 6
7When running this program. <prefix>.h and <prefix>.c will be created in the 7When running this program. <prefix>.h and <prefix>.c will be created in the
8"current directory". <prefix> is "lang" by default. 8"current directory". <prefix> is "lang" by default.
@@ -77,7 +77,9 @@ while(<LANG>) {
77 $value = $set{'eng'}; 77 $value = $set{'eng'};
78 } 78 }
79# print "VOICE: ".$set{'voice'}." VALUE: $value\n"; 79# print "VOICE: ".$set{'voice'}." VALUE: $value\n";
80 if(($value eq "\"\"") && $set{'voice'}) { 80 # Note: if both entries are "", the string is deprecated,
81 # but must be included to maintain compatibility
82 if(($value eq "\"\"") && $set{'voice'} ne "\"\"") {
81 # voice-only 83 # voice-only
82 push @vfile, $set{'id'}; 84 push @vfile, $set{'id'};
83 } 85 }