]> granicus.if.org Git - apache/commitdiff
add title and hreflang attributes to the cross-language links.
authorAndré Malo <nd@apache.org>
Tue, 20 May 2003 14:53:29 +0000 (14:53 +0000)
committerAndré Malo <nd@apache.org>
Tue, 20 May 2003 14:53:29 +0000 (14:53 +0000)
Translators: please patch the language files
(langname="nativename" needs to be filled)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99939 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/lang/de.xml
docs/manual/style/lang/en.xml
docs/manual/style/lang/ja.xml
docs/manual/style/lang/ko.xml
docs/manual/style/lang/ru.xml
docs/manual/style/xsl/common.xsl

index 7fda9138084b81c592509c5c04706ab7b9af62e8..5debbe06fb3154e212278d54a87fc0e3be92aa83 100644 (file)
@@ -8,7 +8,7 @@
 
 <!-- Some strings might be used in other contexts, than stated in the -->
 <!-- comments...                                                      -->
-<messages lang="de">
+<messages lang="de" langname="Deutsch">
  <!-- Used for the moduleindex -->
  <message name="corefeatures">Kernfunktionen und Multi-Processing-Module</message>
  <message name="othermodules">Andere Module</message>
index 28c5207604d122fab19c39ffabe4ed452090cbbd..73fa69d7eb57d5f54e2377fa862d86cca9ee405f 100644 (file)
@@ -7,7 +7,7 @@
 
 <!-- Some strings might be used in other contexts, than stated in the -->
 <!-- comments...                                                      -->
-<messages lang="en">
+<messages lang="en" langname="English">
  <!-- Used for the moduleindex -->
  <message name="corefeatures">Core Features and Multi-Processing Modules</message>
  <message name="othermodules">Other Modules</message>
index a636fb742212b706b85f52aa79c85644062b8038..291b57a4fcde2e165dad816458699ab54c4b8465 100644 (file)
@@ -8,7 +8,7 @@
 
 <!-- Some strings might be used in other contexts, than stated in the -->
 <!-- comments...                                                      -->
-<messages lang="ja">
+<messages lang="ja" langname="Japanese">
  <!-- Used for the moduleindex -->
  <message name="corefeatures">\e$B%3%"5!G=$H\e(B MPM</message>
  <message name="othermodules">\e$BB>$N%b%8%e!<%k\e(B</message>
index 41965fdfe0ac06305925ddff1687998e4d62b7a4..dbd82f8f27e9c90f510283b19780b89e04f04cf3 100644 (file)
@@ -8,7 +8,7 @@
 
 <!-- Some strings might be used in other contexts, than stated in the -->
 <!-- comments...                                                      -->
-<messages lang="ko">
+<messages lang="ko" langname="Korean">
  <!-- Used for the moduleindex -->
  <message name="corefeatures">Çٽɠ±â´É°ú ´ÙÁß󸮠¸ðµâ</message>
  <message name="othermodules">´Ù¸¥ ¸ðµâ</message>
index 9f05a47acae30dc81b3cecb0eaa501dde78076f4..4a3e72152c5e212cedd5a1928cf33a99d0b141aa 100644 (file)
@@ -8,7 +8,7 @@
 
 <!-- Some strings might be used in other contexts, than stated in the -->
 <!-- comments...                                                      -->
-<messages lang="ru">
+<messages lang="ru" langname="Russian">
  <!-- Used for the moduleindex -->
  <message name="corefeatures">ïÓÏÂÅÎÎÏÓÔÉ ÑÄÒÁ É ÍÕÌØÔÉ-ÐÒÏÃÅÓÓÎÙÅ ÍÏÄÕÌÉ</message>
  <message name="othermodules">äÒÕÇÉÅ ÍÏÄÕÌÉ</message>
index 7499cb82d9bace80f911c169e9673ce3a9b8a8a4..b78ba97e918fa34f51b4b7ada161a0beb74dece8 100644 (file)
         <xsl:for-each select="$metafile/variants/variant">
         <xsl:sort select="." />
 
-            <a href="{$path}/{.}{$metafile/path}{$metafile/basename}.html">
+            <a hreflang="{.}"
+                   href="{$path}/{.}{$metafile/path}{$metafile/basename}.html">
                 <xsl:if test="$metafile/basename = 'index'">
                     <xsl:attribute name="href">
                         <xsl:value-of
                             select="concat($path, '/', ., $metafile/path)" />
                     </xsl:attribute>
                 </xsl:if>
+                <xsl:attribute name="title">
+                    <xsl:choose>
+                    <xsl:when test=". != 'fr'"> <!-- no language file avail. -->
+                        <xsl:value-of select="document(concat('../lang/', ., '.xml'))
+                                              /messages/@langname" />
+                    </xsl:when>
+                    <xsl:otherwise>
+                        <xsl:text>Fran&#231;ais</xsl:text>
+                    </xsl:otherwise>
+                    </xsl:choose>
+                </xsl:attribute>
 
                 &nbsp;
                 <xsl:value-of select="." />