From: Petter Reinholdtsen Date: Mon, 26 Apr 2021 04:17:03 +0000 (+0200) Subject: Add XML tranformation rule for zh_Hans translation. X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/commitdiff_plain/6e610c9a1a53ed9fbf2f1c0ac3e51f812f23fc5f Add XML tranformation rule for zh_Hans translation. --- diff --git a/Makefile b/Makefile index e68e50e..e4122cf 100644 --- a/Makefile +++ b/Makefile @@ -141,6 +141,12 @@ $(SOURCE).uk.xml: $(SOURCE).xml po/uk/mwcc.po ruby fixup-docbook-translated.rb uk $$TEMP $@ && \ rm -f $$TEMP +$(SOURCE).zh_Hans.xml: $(SOURCE).xml po/zh_Hans/mwcc.po + TEMP=`tempfile -p mwcc` && \ + po4a-translate -f docbook -m $(SOURCE).xml -p po/zh_Hans/mwcc.po -l $$TEMP -l $$TEMP -L utf-8 -M utf-8 $(PO4AOPTS) -k 0 && \ + ruby fixup-docbook-translated.rb zh_Hans $$TEMP $@ && \ + rm -f $$TEMP + $(SOURCE).xml: $(SOURCE).md fixup-docbook.rb TEMP=`tempfile -p mwcc` && \ pandoc -s -o $$TEMP $(PANDOC_OPTS) $(SOURCE).md && \