summaryrefslogtreecommitdiff
path: root/webgen
diff options
context:
space:
mode:
authorPhilipp Schafft <lion@lion.leolix.org>2017-04-30 11:58:57 +0000
committerPhilipp Schafft <lion@lion.leolix.org>2017-04-30 11:58:57 +0000
commitbaadb61f57d7f184e3fb29e25a148bf5745239a2 (patch)
tree961d7fd6b8d035005cd195bb2bb1fc0f7275b808 /webgen
parentb75d048a317757116307dac8c03fe7b33cb85785 (diff)
Feature: Use tpl/$TPL.$LANGUAGE if exists and $LANGUAGE is set
Diffstat (limited to 'webgen')
-rwxr-xr-xwebgen4
1 files changed, 4 insertions, 0 deletions
diff --git a/webgen b/webgen
index 59bcefc..21ce581 100755
--- a/webgen
+++ b/webgen
@@ -312,6 +312,10 @@ cd $TPLS
cat_file() {
_file="$1"
+ if [ -n "$LANGUAGE" -a -r "$_file.$LANGUAGE" ]
+ then
+ _file="$_file.$LANGUAGE"
+ fi
case "$PREPROCESSOR" in
none)
cat -- "$_file"