diff options
author | tg(x) <*@tg-x.net> | 2017-01-19 18:54:35 +0100 |
---|---|---|
committer | tg(x) <*@tg-x.net> | 2017-01-19 18:54:35 +0100 |
commit | 856556bb33ed4bd881f9ed866696fc6c1e5af37f (patch) | |
tree | fac07dc0f2aff98a19a0dd587e0a1c134efab3a3 /template.sh | |
parent | bade9dae384032a974dedc496ad44595072d99d9 (diff) | |
download | www-856556bb33ed4bd881f9ed866696fc6c1e5af37f.tar.gz www-856556bb33ed4bd881f9ed866696fc6c1e5af37f.zip |
i18n: generate HTML files from templates for each language
Diffstat (limited to 'template.sh')
-rwxr-xr-x | template.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/template.sh b/template.sh new file mode 100755 index 00000000..4d498c71 --- /dev/null +++ b/template.sh | |||
@@ -0,0 +1,9 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | for f in $(git ls-files *.j2 common/*.j2); do | ||
4 | for ld in locale/*/; do | ||
5 | l=$(basename $ld) | ||
6 | echo "$f: $l" | ||
7 | python template.py $f $l $(basename $f .html.j2).$l.html | ||
8 | done | ||
9 | done | ||