summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-04-27 22:49:36 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-04-27 22:49:36 +0000
commita181a4c1eb3b307f5b82e1223a72ee5344937c58 (patch)
tree86b843dfc547c1faf0c6a260579c1db145359d41 /tools
parent07aaf52d4732ba82aef4efeb608300f92075297d (diff)
downloadrockbox-a181a4c1eb3b307f5b82e1223a72ee5344937c58.tar.gz
rockbox-a181a4c1eb3b307f5b82e1223a72ee5344937c58.tar.bz2
rockbox-a181a4c1eb3b307f5b82e1223a72ee5344937c58.zip
Fixed a bug where it didn't warn on lack of quotes as it was supposed to.
Now this treats a string given without quotes as "" (but still warns about it). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9824 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/genlang18
1 files changed, 11 insertions, 7 deletions
diff --git a/tools/genlang b/tools/genlang
index f0c35be384..363ef96cf9 100755
--- a/tools/genlang
+++ b/tools/genlang
@@ -344,15 +344,19 @@ while(<LANG>) {
# should use for this phrase. Voice-only strings are
# separated.
- # basic syntax error alerts
- if($dest != /^\"/) {
- print STDERR "dest around line $line lacks quotes!\n";
+ # basic syntax error alerts, if there are no quotes we
+ # will assume an empty string was intended
+ if($dest !~ /^\"/) {
+ print STDERR "Warning: dest before line $line lacks quotes!\n";
+ $dest='""';
}
- if($src != /^\"/) {
- print STDERR "source around line $line lacks quotes!\n";
+ if($src !~ /^\"/) {
+ print STDERR "Warning: source before line $line lacks quotes!\n";
+ $src='""';
}
- if($voice != /^\"/) {
- print STDERR "voice around line $line lacks quotes!\n";
+ if($voice !~ /^\"/) {
+ print STDERR "Warning: voice before line $line lacks quotes!\n";
+ $voice='""';
}
if($idstr =~ /^VOICE/) {