]> granicus.if.org Git - docbook-dsssl/commitdiff
Don't include lang in manpages filename/pathname if lang=en (that
authorMichael Smith <xmldoc@users.sourceforge.net>
Tue, 19 Jun 2007 17:34:10 +0000 (17:34 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Tue, 19 Jun 2007 17:34:10 +0000 (17:34 +0000)
is, only generate lang-qualified file-/pathnames for non-English).

xsl/manpages/utility.xsl

index 249efcbb092290baa2bd4f89b9c8b7780bca3da9..23bc7a2d99094a150905f51c3b7b0c477f15559f 100644 (file)
     <xsl:param name="lang"/>
     <xsl:param name="name.with.lang">
       <xsl:choose>
-        <xsl:when test="not($man.output.lang.in.name.enabled = 0)
+        <xsl:when test="$lang != 'en'
+          and not($man.output.lang.in.name.enabled = 0)
           and ($man.output.subdirs.enabled = 0 or
           $man.output.in.separate.dir = 0)">
-          <!-- * user has specified man.output.lang.in.name.enabled -->
+          <!-- * $lang is not en (English) -->
+          <!-- * AND user has specified man.output.lang.in.name.enabled -->
           <!-- * AND doesn't want output going into separate dirs, -->
-          <!-- * so we include the $lang value in the filename; e.g., -->
+          <!-- * SO... we include the $lang value in the filename; e.g., -->
           <!-- * foo.ja.1 -->
           <xsl:value-of select="concat($name, '.', $lang)"/>
         </xsl:when>