From 5d4eea63b98d9844da1386aaaa665ac418624634 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 19 Jan 2007 10:48:59 +0000 Subject: [PATCH] Added new param man.output.lang.in.name.enabled, which controls whether $LANG value is included in manpages filenames and pathnames. It works like this: If the value of man.output.lang.in.name.enabled is non-zero, man-page files are output with the $lang value included in their filenames or pathnames as follows; - if man.output.subdirs.enabled is non-zero, each file is output to, e.g., a /$lang/man8/foo.8 pathname - if man.output.subdirs.enabled is zero, each file is output with a foo.$lang.8 filename --- xsl/manpages/docbook.xsl | 6 +++++- xsl/manpages/other.xsl | 8 ++++++++ xsl/manpages/utility.xsl | 33 +++++++++++++++++++++++++++++++-- 3 files changed, 44 insertions(+), 3 deletions(-) diff --git a/xsl/manpages/docbook.xsl b/xsl/manpages/docbook.xsl index 5eb925c28..0c15bd686 100644 --- a/xsl/manpages/docbook.xsl +++ b/xsl/manpages/docbook.xsl @@ -135,7 +135,9 @@ - + + + @@ -255,6 +257,7 @@ + @@ -262,6 +265,7 @@ + diff --git a/xsl/manpages/other.xsl b/xsl/manpages/other.xsl index 88394aa56..44906e8c6 100644 --- a/xsl/manpages/other.xsl +++ b/xsl/manpages/other.xsl @@ -433,11 +433,13 @@ db:manvolnum + + @@ -470,6 +472,7 @@ db:manvolnum + @@ -479,6 +482,7 @@ db:manvolnum + @@ -515,10 +519,14 @@ db:manvolnum + + + + diff --git a/xsl/manpages/utility.xsl b/xsl/manpages/utility.xsl index 8d0df76a6..beaaceba5 100644 --- a/xsl/manpages/utility.xsl +++ b/xsl/manpages/utility.xsl @@ -360,13 +360,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + select="concat($man.output.base.dir, $lang.subdir, + 'man', normalize-space($section), '/')"/> @@ -379,7 +408,7 @@ -- 2.40.0