You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by nd...@apache.org on 2003/01/01 03:35:18 UTC
cvs commit: httpd-2.0/docs/manual/style/xsl synopsis.xsl
nd 2002/12/31 18:35:18
Modified: docs/manual/style/lang de.xml en.xml
docs/manual/style/xsl synopsis.xsl
Log:
allow the space in "xy directive" (directivesynopsis heading)
to be replaced by other stuff.
Requested by Kess for German translation.
Revision Changes Path
1.6 +5 -1 httpd-2.0/docs/manual/style/lang/de.xml
Index: de.xml
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/style/lang/de.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- de.xml 5 Dec 2002 14:28:00 -0000 1.5
+++ de.xml 1 Jan 2003 02:35:18 -0000 1.6
@@ -49,7 +49,11 @@
<!-- Used for directive lists -->
<message name="directives">Direktiven</message>
- <message name="directive">Direktive</message>
+ <!-- the optional attribute replace-space-with takes a string.
+ if present, the space between <directive name> and 'Directive'
+ in directivesynopsis headings will be replaced by the given string.
+ (see de.xml for an example) -->
+ <message name="directive" replace-space-with="-">Direktive</message>
<message name="nodirectives">Dieses Modul enthält keine Direktiven.</message>
<!-- Used in summaries -->
1.8 +4 -0 httpd-2.0/docs/manual/style/lang/en.xml
Index: en.xml
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/style/lang/en.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- en.xml 5 Dec 2002 14:28:00 -0000 1.7
+++ en.xml 1 Jan 2003 02:35:18 -0000 1.8
@@ -49,6 +49,10 @@
<!-- Used for directive lists -->
<message name="directives">Directives</message>
+ <!-- the optional attribute replace-space-with takes a string.
+ if present, the space between <directive name> and 'Directive'
+ in directivesynopsis headings will be replaced by the given string.
+ (see de.xml for an example) -->
<message name="directive">Directive</message>
<message name="nodirectives">This module provides no directives.</message>
1.9 +8 -1 httpd-2.0/docs/manual/style/xsl/synopsis.xsl
Index: synopsis.xsl
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/synopsis.xsl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- synopsis.xsl 25 Dec 2002 02:50:09 -0000 1.8
+++ synopsis.xsl 1 Jan 2003 02:35:18 -0000 1.9
@@ -353,7 +353,14 @@
<xsl:value-of select="name"/>
<xsl:if test="@type='section'">></xsl:if>
</a>
- <xsl:text> </xsl:text>
+ <xsl:choose>
+ <xsl:when test="$messages/message[@name='directive']/@replace-space-with">
+ <xsl:value-of select="$messages/message[@name='directive']/@replace-space-with"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text> </xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
<a id="{$lowername}" name="{$lowername}">
<xsl:value-of select="$messages/message[@name='directive']"/>
</a>