From 375dc31ab4c44876b11314784791d4d6219564ef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Th=C3=A9r=C3=A8se=20Godefroy?= Date: Tue, 27 Jul 2021 19:03:36 +0200 Subject: [PATCH] Makefile.gen: add French recipe. --- Makefile.gen | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile.gen b/Makefile.gen index 8a01ec47..4a48acab 100644 --- a/Makefile.gen +++ b/Makefile.gen @@ -124,3 +124,11 @@ tr/%.html: esd-tr.po $(foreach f,$(SRC),en/$f) sed -i '/alt="Bağış"/ i\ style="width:160px"' $@ +# fr - French +fr/%.html: esd-fr.po $(foreach f,$(SRC),en/$f) + -po4a-translate $(PO4A_FLAGS) --keep 0 -m en/$*.html -p $< -l $@ + sed -i '/\/css\/main.css/a\ + ' $@ + sed -i 's|img/en/\([^/]\+\.png\)|img/fr/\1|g' $@ + sed -i 's|img/en/\(screenshots/section.*\.png\)|img/fr/\1|g' $@ + sed -i 's|img/en/\(screenshots/workshops.*\.png\)|img/fr/\1|g' $@ -- 2.25.1