es/%.html: esd-es.po $(foreach f,$(SRC),en/$f)
-po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@
sed -i '/\/css\/main.css/a\
- <link rel="stylesheet" href="static/css/main.es.css" />' $@
+ <link rel="stylesheet" href="../static/css/main.es.css" />' $@
sed -i 's,static/img/en/\([^/]\+.png\),static/img/es/\1,g' $@
sed -i 's,static/img/en\(/screenshots/section.\+.png\),static/img/es\1,g' $@
sed -i 's,static/img/en\(/screenshots/step1a.\+.png\),static/img/es\1,g' $@
gl/%.html: esd-gl.po $(foreach f,$(SRC),en/$f)
-po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@
sed -i '/\/css\/main.css/a\
- <link rel="stylesheet" href="static/css/main.es.css" />' $@
+ <link rel="stylesheet" href="../static/css/main.es.css" />' $@
sed -i 's,static/img/en/\([^/]\+.png\),static/img/es/\1,g' $@
sed -i 's,static/img/en\(/screenshots/section.\+.png\),static/img/es\1,g' $@
sed -i 's,static/img/en\(/screenshots/step1a.\+.png\),static/img/es\1,g' $@
# de - German
de/%.html: esd-de.po $(foreach f,$(SRC),en/$f)
-po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@
- $(sedi) '{s|img/en/|img/de/|g;}' $@
- $(sedi) '/\/css\/main.css/a\
- <link rel="stylesheet" href="static/css/main.de.css" />' $@
+ sed -i '{s|img/en/|img/de/|g;}' $@
+ sed -i '/\/css\/main.css/a\
+ <link rel="stylesheet" href="../static/css/main.de.css" />' $@
# fa - Persian
fa/%.html: esd-fa.po $(foreach f,$(SRC),en/$f)
-po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@
sed -i 's|<html|<html dir="rtl"|' $@
sed -i '/\/css\/main.css/a\
- <link rel="stylesheet" href="static/css/main.rtl.css" />' $@
+ <link rel="stylesheet" href="../static/css/main.rtl.css" />' $@
# ja - Japanese
ja/%.html: esd-ja.po $(foreach f,$(SRC),en/$f)