From: Tomas Stary Date: Sun, 2 Oct 2016 09:16:17 +0000 (+0100) Subject: added recipe for generation of Persian translation into Makefile.gen X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=caf2dc6edc24b3afcf742e108180b16115882ead;p=enc.git added recipe for generation of Persian translation into Makefile.gen --- diff --git a/Makefile.gen b/Makefile.gen index 3e266006..98aabe47 100644 --- a/Makefile.gen +++ b/Makefile.gen @@ -25,7 +25,14 @@ SRC=confirmation.html\ workshops.html # list of languages that use the PO files (add yours if you migrate to PO) -LANG=cs +# czech - cs, persian - fa +# in the LANG add the code(s) of the language(s) you intend to translate +LANG=fa + +# NOTE: +# The following replacement is essential in right to left languages +# sed -i 's|||' $@ +# See Persian recipe as an example # default target all: $(foreach l,$(LANG),$(foreach f,$(SRC),$l/$f)) @@ -45,9 +52,11 @@ cs/%.html: esd-cs.po $(foreach f,$(SRC),en/$f) sed -i 's|
  • English - v4.0
  • |
  • English - v4.0
  • |' $@ sed -i 's|img/en/|img/cs/|g' $@ -# French -fr/%.html: esd-fr.po $(foreach f,$(SRC),en/$f) +# Persian +fa/%.html: esd-fa.po $(foreach f,$(SRC),en/$f) -po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@ + sed -i 's|||' $@ + sed -i 's|
  • English - v4.0
  • |
  • English - v4.0
  • |' $@ # (copy the recipe for your language if you migrate to PO)