]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - Makefile
Added the translated images (plus the needed bits to replace them as they are availab...
[text-madewithcc.git] / Makefile
index 42ba6828fda12b570b2d094a2e1d8bf8dfb4bd27..903135ccd4164bbd3d86ab69f5f8905f24205825 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -82,7 +82,9 @@ $(SOURCE).el.xml: $(SOURCE).xml po/el/mwcc.po
        po4a-translate -f docbook -m $(SOURCE).xml -p po/el/mwcc.po -l $@ -l $@ -L utf-8 -M utf-8 $(PO4AOPTS) -k 0
 
 $(SOURCE).es.xml: $(SOURCE).xml po/es/mwcc.po
-       po4a-translate -f docbook -m $(SOURCE).xml -p po/es/mwcc.po -l $@ -l $@ -L utf-8 -M utf-8 $(PO4AOPTS) -k 0
+       TEMP=`tempfile -p mwcc` && \
+         po4a-translate -f docbook -m $(SOURCE).xml -p po/es/mwcc.po -l $$TEMP -l $$TEMP -L utf-8 -M utf-8 $(PO4AOPTS) -k 0 && \
+         ruby fixup-docbook-translated.rb es $$TEMP $@
 
 $(SOURCE).nb.xml: $(SOURCE).xml po/nb/mwcc.po
        po4a-translate -f docbook -m $(SOURCE).xml -p po/nb/mwcc.po -l $@ -l $@ -L utf-8 -M utf-8 $(PO4AOPTS) -k 0