# In LANG add the code(s) of the language(s) you intend to translate
-LANG=pt-br
+LANG=es
# flags for the po4a-getextize
PO4A_FLAGS=-M utf-8 -f xhtml --keep 30 -o porefs=none \
# 1. You can use another recipe as a model, but be careful with global image
# localization; make sure that _all_ images are in the static/LANG/img
# subdirectory.
-# 2. The following modifications are essential in right to left languages:
+# 2. The following modifications are essential for right to left languages:
# 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" />' $@
-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.fsf.org/nosvn/enc-dev0/img/en,static.fsf.org/nosvn/enc-dev0/img/es,g' $@
+ sed -i 's,emailselfdefense.fsf.org/en/infographic.html,emailselfdefense.fsf.org/es/infographic.html,' $@
# fa - Persian
fa/%.html: esd-fa.po $(foreach f,$(SRC),en/$f)