diff options
author | Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> | 2006-03-01 23:37:57 +0000 |
---|---|---|
committer | Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> | 2006-03-01 23:37:57 +0000 |
commit | b4033fd0296aff8e2b60924c001548f884e1ad48 (patch) | |
tree | 68d8e808f386a3e8c8a0cc644384cf58a1da1514 /common/entities/entities.xsl | |
parent | 995446ddf25b4bfca72e40cfbe9d9416a0f8aa86 (diff) | |
download | fedora-doc-utils-b4033fd0296aff8e2b60924c001548f884e1ad48.tar.gz fedora-doc-utils-b4033fd0296aff8e2b60924c001548f884e1ad48.tar.xz fedora-doc-utils-b4033fd0296aff8e2b60924c001548f884e1ad48.zip |
Added support for per-document translatable entities file.
Diffstat (limited to 'common/entities/entities.xsl')
-rw-r--r-- | common/entities/entities.xsl | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/common/entities/entities.xsl b/common/entities/entities.xsl index 0646ca1..519f00d 100644 --- a/common/entities/entities.xsl +++ b/common/entities/entities.xsl @@ -6,13 +6,19 @@ <xsl:param name="FDPCOMMONDIR">/usr/share/fedora/doc/docs-common/common</xsl:param> <xsl:template match="/"> - <xsl:comment><xsl:value-of select="' Group: Automatic Entities '"/></xsl:comment> - <xsl:call-template name="do_entity"> - <xsl:with-param name="name">FDPCOMMONDIR</xsl:with-param> - <xsl:with-param name="desc">Base directory</xsl:with-param> - <xsl:with-param name="extra" /> - <xsl:with-param name="body" select="$FDPCOMMONDIR"/> - </xsl:call-template> + <xsl:comment> + <xsl:value-of select="' Group: Automatic Entities '"/> + </xsl:comment> + <xsl:choose> + <xsl:when test="$FDPCOMMONDIR != 'NONE'"> + <xsl:call-template name="do_entity"> + <xsl:with-param name="name">FDPCOMMONDIR</xsl:with-param> + <xsl:with-param name="desc">Base directory</xsl:with-param> + <xsl:with-param name="extra" /> + <xsl:with-param name="body" select="$FDPCOMMONDIR"/> + </xsl:call-template> + </xsl:when> + </xsl:choose> <xsl:apply-templates/> </xsl:template> |