# See Persian recipe as an example.
# cs - Czech
-# sed -i 's|<li><a href="/en">English - v4.0</a></li>|<li><a class="current" href="/cs">Čeština - v4.0</a></li>\
-# <li><a href="/en">English - v4.0</a></li>|' $@
cs/%.html: esd-cs.po $(foreach f,$(SRC),en/$f)
-po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@
sed -i 's|img/en/|img/cs/|g' $@
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.fsf.org/nosvn/enc-dev0/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.fsf.org/nosvn/enc-dev0/css/main.es.css" />' $@
- sed -i 's,static/img/en,static/img/gl,g' $@
+ <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.fsf.org/nosvn/enc-dev0/css/main.de.css" />' $@
+ <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.fsf.org/nosvn/enc-dev0/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)
-po4a-translate $(PO4A_FLAGS) --keep 0 -m en/$*.html -p $< -l $@
sed -i 's|img/en/|img/zh-hans/|g' $@
sed -i '/\/css\/main.css/a\
- <link rel="stylesheet" href="//static.fsf.org/nosvn/enc-dev0/css/main.zh-hans.css" />' $@
+ <link rel="stylesheet" href="static/css/main.zh-hans.css" />' $@
# tr - Turkish
tr/%.html: esd-tr.po $(foreach f,$(SRC),en/$f)
# fr - French
fr/%.html: esd-fr.po $(foreach f,$(SRC),en/$f)
-po4a-translate $(PO4A_FLAGS) --keep 0 -m en/$*.html -p $< -l $@
- sed -i '/\/css\/main.css/a\
- <link rel="stylesheet" ../static/css/main.fr.css" />' $@
sed -i 's|img/en/|img/fr/|g' $@