From dbf11d7daf526574bf2f7c9ef8cbca7ce56ae635 Mon Sep 17 00:00:00 2001 From: "tg(x)" <*@tg-x.net> Date: Thu, 19 Jan 2017 19:46:02 +0100 Subject: i18n: fix common includes --- template.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'template.sh') 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 -- cgit v1.2.3