From caf2dc6edc24b3afcf742e108180b16115882ead Mon Sep 17 00:00:00 2001 From: Tomas Stary Date: Sun, 2 Oct 2016 10:16:17 +0100 Subject: [PATCH] added recipe for generation of Persian translation into Makefile.gen --- Makefile.gen | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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) -- 2.25.1