diff options
author | Paul W. Frields <stickster@gmail.com> | 2007-04-28 00:42:56 +0000 |
---|---|---|
committer | Paul W. Frields <stickster@gmail.com> | 2007-04-28 00:42:56 +0000 |
commit | 333625842a18ec5825dfb412be6d7fb30184b8ea (patch) | |
tree | 8ea27896459e4c64dbb32cffb93abcefcdcb6dd4 /common/entities | |
parent | 5f491fd9caf71304905e14144bb381a75e332607 (diff) | |
download | fedora-doc-utils-333625842a18ec5825dfb412be6d7fb30184b8ea.tar.gz fedora-doc-utils-333625842a18ec5825dfb412be6d7fb30184b8ea.tar.xz fedora-doc-utils-333625842a18ec5825dfb412be6d7fb30184b8ea.zip |
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.
Diffstat (limited to 'common/entities')
-rw-r--r-- | common/entities/entities.xsl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/entities/entities.xsl b/common/entities/entities.xsl index f0d0505..5c89952 100644 --- a/common/entities/entities.xsl +++ b/common/entities/entities.xsl @@ -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> |