From 6e610c9a1a53ed9fbf2f1c0ac3e51f812f23fc5f Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Mon, 26 Apr 2021 06:17:03 +0200 Subject: [PATCH 1/1] Add XML tranformation rule for zh_Hans translation. --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) 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 && \ -- 2.47.2