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