From: Thérèse Godefroy Date: Tue, 27 Jul 2021 17:03:36 +0000 (+0200) Subject: Makefile.gen: add French recipe. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=375dc31ab4c44876b11314784791d4d6219564ef;p=enc.git Makefile.gen: add French recipe. --- 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' $@