# <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|<li><a class="current" href="/en">English - v4.0</a></li>|<li><a href="/en">English - v4.0</a></li>|' $@
sed -i 's|img/en/|img/cs/|g' $@
# 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 's|<li><a class="current" href="/en">English - v4.0</a></li>|<li><a href="/en">English - v4.0</a></li>|' $@
- sed -i 's|<li><a href="/fa">فارسی - v4.0</a></li>|<li><a class="current" href="/fa">فارسی - v4.0</a></li>|' $@
sed -i '/\/css\/main.css/a\
<link rel="stylesheet" href="//static.fsf.org/nosvn/enc-dev0/css/main.rtl.css" />' $@
# Japanese
ja/%.html: esd-ja.po $(foreach f,$(SRC),en/$f)
-po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@
-# This replacement is already in the PO.
-# sed -i 's|<li><a class="current" href="/en">English - v4.0</a></li>|<li><a href="/en">English - v4.0</a></li>|' $@
-# sed -i 's|<li><a href="/fa">فارسی - v4.0</a></li>|<li><a class="current" href="/fa">فارسی - v4.0</a></li>|' $@
- sed -i 's|img/en/|img/ja/|g' $@
# Spanish
es/%.html: esd-es.po $(foreach f,$(SRC),en/$f)
-po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@
-# This replacement is already in the PO.
-# sed -i 's|<li><a class="current" href="/en">English - v4.0</a></li>|<li><a href="/en">English - v4.0</a></li>|' $@
-# sed -i 's|<li><a href="/fa">فارسی - v4.0</a></li>|<li><a class="current" href="/fa">فارسی - v4.0</a></li>|' $@
- sed -i 's|img/en/|img/es/|g' $@
+ sed -i '/\/css\/main.css/a\
+ <link rel="stylesheet" href="//static.fsf.org/nosvn/enc-dev0/css/main.es.css" />' $@
# Chinese (Han)
zh-hans/%.html: esd-zh-hans.po $(foreach f,$(SRC),en/$f)
-po4a-translate $(PO4A_FLAGS) --keep 0 -m en/$*.html -p $< -l $@
sed -i 's|<li><a class="current" href="/en">English - v4.0</a></li>|<li><a href="/en">English - v4.0</a></li>|' $@
sed -i 's|<li><a href="/zh-hans">简体中文 - v4.0</a></li>|<li><a class="current" href="/zh-hans">简体中文 - v4.0</a></li>|' $@
-# sed -i 's|img/en/|img/zh-hans/|g' $@
# (copy the recipe for your language if you migrate to PO)
# Albanian
sq/%.html: esd-sq.po $(foreach f,$(SRC),en/$f)
-po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@
-# This replacement is already in the PO.
-# sed -i 's|<li><a class="current" href="/en">English - v4.0</a></li>|<li><a href="/en">English - v4.0</a></li>|' $@
-# sed -i 's|<li><a href=\"/sq\">Shqip - v4.0</a></li>|<li><a class="current" href="/sq">Shqip - v4.0</a></li>|' $@
- sed -i 's|img/en/|img/sq/|g' $@