diff options
author | Matt Kraai <kraai> | 2004-08-07 23:01:16 +0000 |
---|---|---|
committer | Matt Kraai <kraai> | 2004-08-07 23:01:16 +0000 |
commit | 6ef106dddef4fc05cc9622d71918cae1e31af085 (patch) | |
tree | 63767db44e7d4f32155186501c71453f447eb7c5 /check_trans.pl | |
parent | e1661f741165a3d55d1baffaac8b4488e3b42dfc (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-x | check_trans.pl | 8 |
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; } |