docs-common/common/entities entities.xsl,1.9,1.10
Paul W. Frields (pfrields)
fedora-docs-commits at redhat.com
Sat Apr 28 00:42:58 UTC 2007
Author: pfrields
Update of /cvs/docs/docs-common/common/entities
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30648
Modified Files:
entities.xsl
Log Message:
Add another global entity LANG for the current locale code; this is useful for snippets where there is no translatable content for translators to change.
Index: entities.xsl
===================================================================
RCS file: /cvs/docs/docs-common/common/entities/entities.xsl,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- entities.xsl 28 Apr 2007 00:36:59 -0000 1.9
+++ entities.xsl 28 Apr 2007 00:42:56 -0000 1.10
@@ -20,6 +20,16 @@
</xsl:call-template>
</xsl:when>
</xsl:choose>
+ <xsl:choose>
+ <xsl:when test="$LANG != 'NONE'">
+ <xsl:call-template name="do_entity">
+ <xsl:with-param name="name">LANG</xsl:with-param>
+ <xsl:with-param name="desc">Locale code</xsl:with-param>
+ <xsl:with-param name="extra" />
+ <xsl:with-param name="body" select="$LANG"/>
+ </xsl:call-template>
+ </xsl:when>
+ </xsl:choose>
<xsl:apply-templates/>
</xsl:template>
More information about the Fedora-docs-commits
mailing list