Makefile.gen: update the Spanish recipe.
authorThérèse Godefroy <godef.th@free.fr>
Sat, 14 Aug 2021 09:03:43 +0000 (11:03 +0200)
committerThérèse Godefroy <godef.th@free.fr>
Sat, 14 Aug 2021 09:12:46 +0000 (11:12 +0200)
Makefile.gen

index 68b6202cf50dc1feff7f433828f57c49c0c330eb..82f775162559861db222858c644755894481a247 100644 (file)
@@ -71,16 +71,16 @@ 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\
        <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,' $@
+       sed -i 's,static/img/en/\([^/]\+.png\),static/img/es/\1,g' $@
+       sed -i 's,static/img/en\(/screenshots/section.\+.png\),static/img/es\1,g' $@
+       sed -i 's,static/img/en\(/screenshots/step1a.\+.png\),static/img/es\1,g' $@
 
 # gl - Galician
 gl/%.html: esd-gl.po $(foreach f,$(SRC),en/$f)
        -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/gl,g' $@
-       sed -i 's,emailselfdefense.fsf.org/en/infographic.html,emailselfdefense.fsf.org/gl/infographic.html,' $@
+       sed -i 's,static/img/en,static/img/gl,g' $@
 
 # de - German
 de/%.html: esd-de.po $(foreach f,$(SRC),en/$f)