summaryrefslogtreecommitdiff
path: root/tools/genlang
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-08-02 22:09:00 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-08-02 22:09:00 +0000
commita12c591ac3bcd4670332d5fe3230f1edbe6c3310 (patch)
tree45de162551d4dc51627e585cee3b3bd3741a8629 /tools/genlang
parent7a62bb04d8abeedc237baaec51503d1180e2d93d (diff)
when generating binary output, we now let the master language file properly
dictate when a certain phrase doesn't exist and should be ignored in the output git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14150 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/genlang')
-rwxr-xr-xtools/genlang11
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/genlang b/tools/genlang
index f2a0706930..f213057a3c 100755
--- a/tools/genlang
+++ b/tools/genlang
@@ -206,7 +206,7 @@ if($english) {
# Assign an ID number to this entry
$idmap{$id}=$idnum;
$idnum++;
- print STDERR "DEST: bumped idnum to $idnum\n";
+ # print STDERR "DEST: bumped idnum to $idnum\n";
}
# this is the end of a phrase, add it to the english hash
@@ -230,13 +230,13 @@ if($english) {
# model name isn't "our"
dest($_, $name, $val);
- print STDERR "DEST: \"$dest\" for $name / $id\n";
+ # print STDERR "DEST: \"$dest\" for $name / $id\n";
if($update || ($dest && ($dest !~ /^none\z/i))) {
# we unconditionally always use all IDs when the "update"
# feature is used
$id = $maybeid;
- print STDERR "DEST: use this id $id\n";
+ # print STDERR "DEST: use this id $id\n";
}
}
}
@@ -362,7 +362,10 @@ while(<LANG>) {
my $idstr = $phrase{'id'};
my $idnum;
- if($dest =~ /^none\z/i) {
+ if($binary && !$english{$idstr}) {
+ # $idstr doesn't exist for english, skip it\n";
+ }
+ elsif($dest =~ /^none\z/i) {
# "none" as dest (without quotes) means that this entire
# phrase is to be ignored
}