2025-05-06 20:31:59 -04:00
|
|
|
#! /usr/bin/env sh
|
|
|
|
|
2025-05-06 20:49:05 -04:00
|
|
|
export main=$(pwd)/main.py
|
|
|
|
export cmd=$(pwd)/cmd.sh
|
2025-05-07 00:05:17 -04:00
|
|
|
export dir2md=$(pwd)/dir2md.sh
|
2025-05-07 00:56:12 -04:00
|
|
|
export md=$(pwd)/md.sh
|
2025-05-06 22:23:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
export LANGUAGES="ar az ca cs da de el es es_AR et_EE fa fi fr gl he hu id it ja ko mg nb nl pl pt pt_BR ro ru sk sl sq sv tr uk zh zh_TW"
|
|
|
|
# produce translated files for all languages and all directories
|
|
|
|
for lang in $LANGUAGES; do
|
|
|
|
export LANGUAGE=$lang
|
|
|
|
export dir=pages
|
|
|
|
export posource=docs.po
|
|
|
|
export ext=html
|
|
|
|
echo "Processing $lang in $dir for $ext"
|
|
|
|
find "$dir" -name "*.$ext" -exec "$cmd" {} \;
|
|
|
|
done
|
|
|
|
|
|
|
|
for lang in $LANGUAGES; do
|
|
|
|
export LANGUAGE=$lang
|
|
|
|
export dir=pages
|
|
|
|
export posource=blog.po
|
|
|
|
export ext=rst
|
|
|
|
echo "Processing $lang in $dir for $ext"
|
|
|
|
find "$dir" -name "*.$ext" -exec "$cmd" {} \;
|
|
|
|
done
|
2025-05-06 23:17:33 -04:00
|
|
|
|
|
|
|
find processed -type d -exec "$dir2md" {} {}/README.md \;
|
2025-05-07 00:56:12 -04:00
|
|
|
find processed -type d -exec "$md" {}/README.md {}/index.html \;
|