aboutsummaryrefslogtreecommitdiffstats
path: root/check_trans.pl
diff options
context:
space:
mode:
authorMatt Kraai <kraai>2004-08-07 23:01:16 +0000
committerMatt Kraai <kraai>2004-08-07 23:01:16 +0000
commit6ef106dddef4fc05cc9622d71918cae1e31af085 (patch)
tree63767db44e7d4f32155186501c71453f447eb7c5 /check_trans.pl
parente1661f741165a3d55d1baffaac8b4488e3b42dfc (diff)
Skip comments in language.conf, thanks to Luca Monducci.
CVS version numbers check_trans.pl: 1.58 -> 1.59
Diffstat (limited to 'check_trans.pl')
-rwxr-xr-xcheck_trans.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/check_trans.pl b/check_trans.pl
index dde670b0774..5e63660f5cd 100755
--- a/check_trans.pl
+++ b/check_trans.pl
@@ -162,8 +162,12 @@ if (exists $ENV{DWWW_LANG})
}
elsif (open CONF, "<language.conf")
{
- $defaultlanguage = <CONF>;
- chomp $defaultlanguage;
+ while (<CONF>)
+ {
+ next if /^#/;
+ $defaultlanguage = <CONF>;
+ chomp $defaultlanguage;
+ }
close CONF;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy