summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-03-01 23:37:57 +0000
committerTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-03-01 23:37:57 +0000
commitb4033fd0296aff8e2b60924c001548f884e1ad48 (patch)
tree68d8e808f386a3e8c8a0cc644384cf58a1da1514 /common
parent995446ddf25b4bfca72e40cfbe9d9416a0f8aa86 (diff)
downloadfedora-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')
-rw-r--r--common/entities/entities.xsl20
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>