workshops.html
# list of languages that use the PO files (add yours if you migrate to PO)
-LANG=cs
+# czech - cs, persian - fa
+# in the LANG add the code(s) of the language(s) you intend to translate
+LANG=fa
+
+# NOTE:
+# The following replacement is essential in right to left languages
+# sed -i 's|<html>|<html dir="rtl">|' $@
+# See Persian recipe as an example
# default target
all: $(foreach l,$(LANG),$(foreach f,$(SRC),$l/$f))
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' $@
-# French
-fr/%.html: esd-fr.po $(foreach f,$(SRC),en/$f)
+# 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>|' $@
# (copy the recipe for your language if you migrate to PO)