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 2004/03/25 22:21:12 UTC
cvs commit: httpd-2.0/docs/manual/style/xsl common.xsl
nd 2004/03/25 13:21:12
Modified: docs/manual/style/css manual.css
docs/manual/style/lang de.xml en.xml ja.xml ko.xml ru.xml
docs/manual/style/xsl common.xsl
Log:
add a warning when a translation is outdated.
Revision Changes Path
1.31 +7 -0 httpd-2.0/docs/manual/style/css/manual.css
Index: manual.css
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/style/css/manual.css,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -u -r1.30 -r1.31
--- manual.css 21 Feb 2004 00:05:13 -0000 1.30
+++ manual.css 25 Mar 2004 21:21:12 -0000 1.31
@@ -915,6 +915,13 @@
margin-right: 1em;
}
+div.outofdate {
+ background-color: #ffffe0;
+ color: #036;
+ padding: 0.5em;
+ margin: 1em 2em 1em 1em;
+}
+
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* quotations, indented paragraphs, forms and figures
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
1.17 +4 -0 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.16
retrieving revision 1.17
diff -u -u -r1.16 -r1.17
--- de.xml 21 Feb 2004 00:05:13 -0000 1.16
+++ de.xml 25 Mar 2004 21:21:12 -0000 1.17
@@ -102,4 +102,8 @@
<!-- footer line -->
<message name="licensed">Lizenziert unter der</message>
<message name="langavail">Verf�gbare Sprachen</message>
+
+ <!-- not up to date -->
+ <message name="outofdate">This translation may be out of date. Check the
+ English version for recent changes.</message>
</messages>
1.16 +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.15
retrieving revision 1.16
diff -u -u -r1.15 -r1.16
--- en.xml 21 Feb 2004 00:05:13 -0000 1.15
+++ en.xml 25 Mar 2004 21:21:12 -0000 1.16
@@ -98,4 +98,8 @@
<!-- footer line -->
<message name="licensed">Licensed under the</message>
<message name="langavail">Available Languages</message>
+
+ <!-- not up to date -->
+ <message name="outofdate">This translation may be out of date. Check the
+ English version for recent changes.</message>
</messages>
1.15 +4 -0 httpd-2.0/docs/manual/style/lang/ja.xml
Index: ja.xml
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/style/lang/ja.xml,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -u -r1.14 -r1.15
--- ja.xml 21 Feb 2004 00:05:13 -0000 1.14
+++ ja.xml 25 Mar 2004 21:21:12 -0000 1.15
@@ -93,4 +93,8 @@
<!-- footer line -->
<message name="licensed">Licensed under the</message>
<message name="langavail">Available Languages</message>
+
+ <!-- not up to date -->
+ <message name="outofdate">This translation may be out of date. Check the
+ English version for recent changes.</message>
</messages>
1.6 +4 -0 httpd-2.0/docs/manual/style/lang/ko.xml
Index: ko.xml
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/style/lang/ko.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -u -r1.5 -r1.6
--- ko.xml 21 Feb 2004 00:05:13 -0000 1.5
+++ ko.xml 25 Mar 2004 21:21:12 -0000 1.6
@@ -102,4 +102,8 @@
<!-- footer line -->
<message name="licensed">Licensed under the</message>
<message name="langavail">������ ���</message>
+
+ <!-- not up to date -->
+ <message name="outofdate">This translation may be out of date. Check the
+ English version for recent changes.</message>
</messages>
1.10 +4 -0 httpd-2.0/docs/manual/style/lang/ru.xml
Index: ru.xml
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/style/lang/ru.xml,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -u -r1.9 -r1.10
--- ru.xml 21 Feb 2004 00:05:13 -0000 1.9
+++ ru.xml 25 Mar 2004 21:21:12 -0000 1.10
@@ -87,4 +87,8 @@
<!-- footer line -->
<message name="licensed">Licensed under the</message>
<message name="langavail">Available Languages</message>
+
+ <!-- not up to date -->
+ <message name="outofdate">This translation may be out of date. Check the
+ English version for recent changes.</message>
</messages>
1.46 +20 -2 httpd-2.0/docs/manual/style/xsl/common.xsl
Index: common.xsl
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/common.xsl,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -u -r1.45 -r1.46
--- common.xsl 21 Feb 2004 00:05:13 -0000 1.45
+++ common.xsl 25 Mar 2004 21:21:12 -0000 1.46
@@ -47,7 +47,8 @@
</xsl:variable>
<!-- relative path to /manual/ -->
-<xsl:variable name="path" select="document(/*/@metafile)/metafile/relpath" />
+<xsl:variable name="metafile" select="document(/*/@metafile)/metafile" />
+<xsl:variable name="path" select="$metafile/relpath" />
<!-- load outsourced page types -->
<xsl:include href="moduleindex.xsl" />
@@ -248,6 +249,19 @@
<!-- ==================================================================== -->
+<!-- out of date -->
+<!-- ==================================================================== -->
+<xsl:template name="outofdate">
+<xsl:if test="$metafile/variants/variant[.=$messages/@lang]/@outdated = 'yes'">
+ &lf;
+ <div class="outofdate">
+ <xsl:value-of select="$messages/message[@name='outofdate']"/>
+ </div>
+</xsl:if>
+</xsl:template>
+
+
+<!-- ==================================================================== -->
<!-- page bottom -->
<!-- ==================================================================== -->
<xsl:template name="bottom">
@@ -283,7 +297,6 @@
<!-- ==================================================================== -->
<xsl:template name="langavail">
<xsl:param name="position" select="'top'" />
-<xsl:variable name="metafile" select="document(/*/@metafile)/metafile" />
<xsl:if test="not($is-chm or $is-zip)">
<div class="{$position}lang">&lf;
@@ -332,6 +345,11 @@
</p>&lf;
</div> <!-- /.{$position}lang -->
</xsl:if>
+
+<xsl:if test="$position = 'top'">
+ <xsl:call-template name="outofdate" />
+</xsl:if>
+
</xsl:template>
<!-- /langavail -->