diff options
| author | Philipp Schafft <lion@lion.leolix.org> | 2017-04-30 11:58:57 +0000 |
|---|---|---|
| committer | Philipp Schafft <lion@lion.leolix.org> | 2017-04-30 11:58:57 +0000 |
| commit | baadb61f57d7f184e3fb29e25a148bf5745239a2 (patch) | |
| tree | 961d7fd6b8d035005cd195bb2bb1fc0f7275b808 | |
| parent | b75d048a317757116307dac8c03fe7b33cb85785 (diff) | |
Feature: Use tpl/$TPL.$LANGUAGE if exists and $LANGUAGE is set
| -rwxr-xr-x | webgen | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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" |
