summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-02-07 22:33:32 +0000
committerJens Arnold <amiconn@rockbox.org>2005-02-07 22:33:32 +0000
commit43cc13bd30f2c92e3f050ea23d034aa0a12340b4 (patch)
tree5fac1ef3beeeee153a85d65414a8cb1e6e6da85d /tools
parent830842ad9feeb46fc609b652d18a471e76182fcd (diff)
downloadrockbox-43cc13bd30f2c92e3f050ea23d034aa0a12340b4.tar.gz
rockbox-43cc13bd30f2c92e3f050ea23d034aa0a12340b4.zip
Fixed updating of old translations which don't contain voice: entries.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5842 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/uplang6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/uplang b/tools/uplang
index 5fb9563c22..1cb3913c76 100755
--- a/tools/uplang
+++ b/tools/uplang
@@ -106,11 +106,17 @@ while(<NEW>) {
$set{'voice'} = $all{$set{'id'}, 'voice'};
}
}
+ if($set{'voice'} =~ /^(\"\")? *$/
+ and $all{$set{'id'}, 'voice'} !~ /^(\"\")? *$/) {
+ print "### Voice not found in previous translation. Set to english.\n";
+ $set{'voice'} = $all{$set{'id'}, 'voice'};
+ }
print "voice: ".$set{'voice'}."\n";
print "new: ".$set{'new'}."\n";
$ids{$set{'id'}}=0;
+ undef %set;
}
}
}