svn commit: r47714 - head/share/mk

Warren Block <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
Author: wblock
Date: Sat Oct 31 17:45:11 2015
New Revision: 47714
URL: https://svnweb.freebsd.org/changeset/doc/47714

Log:
  Use the English catalog files to avoid problems with pre-translated
  entities.  Tested by rene@ and RayCherng Yu <[email protected]>.
  Well, and me, obviously.
  
  Reviewed by:	rene

Modified:
  head/share/mk/doc.docbook.mk

Modified: head/share/mk/doc.docbook.mk
==============================================================================
--- head/share/mk/doc.docbook.mk	Sat Oct 31 12:08:21 2015	(r47713)
+++ head/share/mk/doc.docbook.mk	Sat Oct 31 17:45:11 2015	(r47714)
@@ -278,9 +278,17 @@ TRAN_DIR?=	${MASTERDOC:H}
 EN_DIR?=	${TRAN_DIR:S/${LANGCODE}/en_US.ISO8859-1/}
 PO_LANG?=	${LANGCODE:C/\..*$//}
 PO_CHARSET?=	${LANGCODE:tl:C/^.*\.//:S/^iso/iso-/:S/utf-8/UTF-8/}
-EN_XMLLINT?=	${XMLLINT:S/${PO_LANG}/en_US/g}
 CLEANFILES+=	${DOC}.translate.xml ${PO_LANG}.mo
 
+PO_CATALOG_FILES=	file://${EN_DIR}/catalog-cwd.xml \
+                        file://${EN_DIR:H:H}/share/xml/catalog.xml \
+                        file://${DOC_PREFIX}/share/xml/catalog.xml \
+                        file://${LOCALBASE}/share/xml/catalog
+.if defined(EXTRA_CATALOGS)
+PO_CATALOG_FILES+=     ${EXTRA_CATALOGS}
+.endif
+PO_XMLLINT=	env XML_CATALOG_FILES="${PO_CATALOG_FILES}" ${PREFIX}/bin/xmllint
+
 # fix settings in PO file
 POSET_CMD=	${SED} -i '' -e '1s,^,\#$$FreeBSD$$\${.newline},' \
 			     -e 's,^\(\"Language-Team:.*\\n\"\),\1\${.newline}\"Language: ${PO_LANG}\\n\",' \
@@ -297,9 +305,9 @@ ${DOC}.translate.xml:	${EN_SRCS}
 		exit 1 ; \
 	 fi
 	# normalize the English original into a single file
-	@${EN_XMLLINT} --nonet --noent --valid --xinclude ${MASTERDOC_EN} > ${.TARGET}.tmp
+	@${PO_XMLLINT} --nonet --noent --valid --xinclude ${MASTERDOC_EN} > ${.TARGET}.tmp
 	# remove redundant namespace attributes
-	@${EN_XMLLINT} --nsclean ${.TARGET}.tmp > ${.TARGET}
+	@${PO_XMLLINT} --nsclean ${.TARGET}.tmp > ${.TARGET}
 	@${RM} ${.TARGET}.tmp
 
 po: ${PO_LANG}.po
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.