aboutsummaryrefslogtreecommitdiffstats
path: root/check_trans.pl
diff options
context:
space:
mode:
authorSwedish Language Team <swedish>2000-02-26 17:36:42 +0000
committerSwedish Language Team <swedish>2000-02-26 17:36:42 +0000
commitdf5248bb7718bcd2254d2e9eaed865b30e6f6673 (patch)
tree7af5448e8104158d281ed409457b3543e6b11dd7 /check_trans.pl
parent0f2fa396fe0274d4888181db5fd18e2391b1b30a (diff)
Made default language configurable (language.conf)
CVS version numbers check_trans.pl: 1.5 -> 1.6
Diffstat (limited to 'check_trans.pl')
-rwxr-xr-xcheck_trans.pl14
1 files changed, 13 insertions, 1 deletions
diff --git a/check_trans.pl b/check_trans.pl
index f49b4d65560..2abe4f8866a 100755
--- a/check_trans.pl
+++ b/check_trans.pl
@@ -36,8 +36,20 @@ warn "Checking subtree $opt_s only\n" if $opt_v;
# include only files matching $filename
$filename = $opt_p || '(\.wml$)|(\.html$)';
+# get configuration
+if (open CONF, "<language.conf")
+{
+ $defaultlanguage = <CONF>;
+ chomp $defaultlanguage;
+ close CONF;
+}
+else
+{
+ $defaultlanguage = 'italian';
+}
+
$from = 'english';
-$to = shift || 'italian';
+$to = shift || $defaultlanguage;
$from = "$from/$opt_s";
$to = "$to/$opt_s";

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