diff options
author | tg(x) <*@tg-x.net> | 2017-01-19 19:46:02 +0100 |
---|---|---|
committer | tg(x) <*@tg-x.net> | 2017-01-19 19:46:02 +0100 |
commit | dbf11d7daf526574bf2f7c9ef8cbca7ce56ae635 (patch) | |
tree | cbe7b803633b975a45b5ab206bfb9e60c9097c47 /template.sh | |
parent | ad575cbedbbc6d109241aebf225b7e07bdb17555 (diff) | |
download | www-dbf11d7daf526574bf2f7c9ef8cbca7ce56ae635.tar.gz www-dbf11d7daf526574bf2f7c9ef8cbca7ce56ae635.tar.bz2 www-dbf11d7daf526574bf2f7c9ef8cbca7ce56ae635.zip |
i18n: fix common includes
Diffstat (limited to 'template.sh')
-rwxr-xr-x | template.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/template.sh b/template.sh index 4d498c71..54dc1709 100755 --- a/template.sh +++ b/template.sh @@ -1,9 +1,17 @@ #!/bin/sh -for f in $(git ls-files *.j2 common/*.j2); do +for f in $(git ls-files *.j2); do for ld in locale/*/; do l=$(basename $ld) echo "$f: $l" - python template.py $f $l $(basename $f .html.j2).$l.html + python template.py $f $l $(dirname $f)/$(basename $f .html.j2).$l.html + done +done + +for f in $(git ls-files common/*.j2); do + for ld in locale/*/; do + l=$(basename $ld) + echo "$f: $l" + python template.py $f $l $(dirname $f)/$(basename $f .inc.j2).$l.inc done done |