1 # This source code is released in public domain.
3 # Author Tomas Stary (2016) <tomichec@gmail.com>
4 # Thanks for helpfull discussion to Thérèse Godefroy
6 # this Makefile.gen is used to generate the translated html files from the
9 # see Makefile for generation of translation files (po, pot) and
10 # extraction of translated strings from existing translation
12 # usage: make -f Makefile.gen
14 # flags for the po4a-getextize
15 PO4A_FLAGS=-M utf-8 -f xhtml --keep 30 -o porefs=none \
16 -o 'untranslated=<script>' \
17 -o 'attributes=<meta>content'
18 # list of source files for the translation
19 SRC=confirmation.html\
27 # list of languages that use the PO files (add yours if you migrate to PO)
31 all: $(foreach l,$(LANG),$(foreach f,$(SRC),$l/$f))
34 # IMPORTANT: make sure your esd-lang.po is encoded in unix format (end
35 # of line \n, not DOS \n\r), otherwise the po4a-translate complains
36 # about strange lines.
39 # recipes for the individual pages in each language
41 cs/%.html: esd-cs.po $(foreach f,$(SRC),en/$f)
42 -po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@
45 fr/%.html: esd-fr.po $(foreach f,$(SRC),en/$f)
46 -po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@
48 # (copy the recipe for your language if you migrate to PO)