From 10bd8a2d457cbed62c615aa787d64a8910bdc5ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Th=C3=A9r=C3=A8se=20Godefroy?= Date: Fri, 8 Jun 2018 19:39:03 +0200 Subject: [PATCH] Makefile.gen, es: localize images and css. --- Makefile.gen | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.gen b/Makefile.gen index c9066c9d..c07991dd 100644 --- a/Makefile.gen +++ b/Makefile.gen @@ -21,7 +21,7 @@ # 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 \ @@ -49,7 +49,7 @@ all: $(foreach l,$(LANG),$(foreach f,$(SRC),$l/$f)) # 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|' $@ @@ -67,6 +67,8 @@ 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\ ' $@ + 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) -- 2.25.1