* doc/makefile:
authorDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 17 May 2012 20:21:03 +0000 (22:21 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 17 May 2012 20:21:03 +0000 (22:21 +0200)
  - build manpages with the correct l10n.gentext.default.language setting
    to get the correct section titles provided by docbook

buildlib/po4a_manpage.mak
debian/changelog
doc/makefile
doc/manpage-style.xsl

index 404bb57..5814180 100644 (file)
@@ -16,7 +16,7 @@ INCLUDES = apt.ent apt-verbatim.ent
 # Do not use XMLTO, build the manpages directly with XSLTPROC
 ifdef XSLTPROC
 
-STYLESHEET=../manpage-style.xsl
+STYLESHEET=manpage-style.xsl
 
 LOCAL := po4a-manpage-$(firstword $(SOURCE))
 $(LOCAL)-LIST := $(SOURCE)
index bcc29eb..b646438 100644 (file)
@@ -28,6 +28,9 @@ apt (0.9.4) UNRELEASED; urgency=low
   * cmdline/apt-get.cc:
     - use the host architecture, not the build architecture for matching
       of [architecture restrictions] in Build-Depends (Closes: #672927)
+  * doc/makefile:
+    - build manpages with the correct l10n.gentext.default.language setting
+      to get the correct section titles provided by docbook
 
   [ Raphael Geissert ]
   * apt-pkg/acquire*.cc:
index f525869..76e29e2 100644 (file)
@@ -42,6 +42,8 @@ dirs-manpage-subdirs:
        for i in $(MANPAGEPO); do \
                test -d $$i || mkdir $$i; \
                test -f $$i/makefile || sed "s#@@LANG@@#$$i#" lang.makefile > $$i/makefile; \
+               test -f $$i/manpage-style.xsl || sed "/<!-- LANGUAGE -->/ i\
+<xsl:param name=\"l10n.gentext.default.language\" select=\"'$$i'\" />" manpage-style.xsl > $$i/manpage-style.xsl; \
        done
 
 # Clean rule
index 85aa452..ef349f0 100644 (file)
@@ -5,6 +5,7 @@
 <xsl:import href="/usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl" />
 
 <xsl:param name="man.output.encoding" select="'UTF-8'" />
+<!-- LANGUAGE -->
 
 <xsl:template match="email">&lt;<xsl:apply-templates/>&gt;</xsl:template>