Makefile.gen, fa: link to main.rtl.css; make the Persian page current.
authorThérèse Godefroy <godef.th@free.fr>
Wed, 5 Oct 2016 10:22:24 +0000 (12:22 +0200)
committerThérèse Godefroy <godef.th@free.fr>
Wed, 5 Oct 2016 10:52:40 +0000 (12:52 +0200)
Makefile.gen

index 98aabe479aa869ab153756b8fc107060593df714..bd4c6d18035fc42aa4209ba4a18903af9c70f4c3 100644 (file)
@@ -57,6 +57,9 @@ 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" />' $@
 
 #  (copy the recipe for your language if you migrate to PO)