]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - Makefile
Translated using Weblate (Indonesian)
[text-madewithcc.git] / Makefile
index a21ab6023000d813128dd8cecb93148f0ba7af7b..15af80e46f8a9c29561769cbf30d2fa3bc02a73d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -129,6 +129,12 @@ $(SOURCE).pl.xml: $(SOURCE).xml po/pl/mwcc.po
          ruby fixup-docbook-translated.rb pl $$TEMP $@ && \
          rm -f $$TEMP
 
+$(SOURCE).pt_BR.xml: $(SOURCE).xml po/pt_BR/mwcc.po
+       TEMP=`tempfile -p mwcc` && \
+         po4a-translate -f docbook -m $(SOURCE).xml -p po/pt_BR/mwcc.po -l $$TEMP -l $$TEMP -L utf-8 -M utf-8 $(PO4AOPTS) -k 0 && \
+         ruby fixup-docbook-translated.rb pt_BR $$TEMP $@ && \
+         rm -f $$TEMP
+
 $(SOURCE).sv.xml: $(SOURCE).xml po/sv/mwcc.po
        TEMP=`tempfile -p mwcc` && \
          po4a-translate -f docbook -m $(SOURCE).xml -p po/sv/mwcc.po -l $$TEMP -l $$TEMP -L utf-8 -M utf-8 $(PO4AOPTS) -k 0 && \
@@ -203,6 +209,8 @@ lint-es: $(SOURCE).es.xml
        xmllint $(XMLLINTOPTS) $^
 lint-nb: $(SOURCE).nb.xml
        xmllint $(XMLLINTOPTS) $^
+lint-pt_BR: $(SOURCE).pt_BR.xml
+       xmllint $(XMLLINTOPTS) $^
 
 check-urls:
        retval=0; for u in $$(perl -n -e'/<ulink url="(.+)"\/>/ && print "$$1\n"' MadewithCreativeCommonsmostup-to-dateversion.xml | sort -u); do \