diff options
-rw-r--r-- | docs/manual/style/lang/de.xml | 2 | ||||
-rw-r--r-- | docs/manual/style/lang/en.xml | 2 | ||||
-rw-r--r-- | docs/manual/style/lang/ja.xml | 2 | ||||
-rw-r--r-- | docs/manual/style/lang/ko.xml | 2 | ||||
-rw-r--r-- | docs/manual/style/lang/ru.xml | 2 | ||||
-rw-r--r-- | docs/manual/style/xsl/common.xsl | 14 |
6 files changed, 18 insertions, 6 deletions
diff --git a/docs/manual/style/lang/de.xml b/docs/manual/style/lang/de.xml index 7fda913808..5debbe06fb 100644 --- a/docs/manual/style/lang/de.xml +++ b/docs/manual/style/lang/de.xml @@ -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> diff --git a/docs/manual/style/lang/en.xml b/docs/manual/style/lang/en.xml index 28c5207604..73fa69d7eb 100644 --- a/docs/manual/style/lang/en.xml +++ b/docs/manual/style/lang/en.xml @@ -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> diff --git a/docs/manual/style/lang/ja.xml b/docs/manual/style/lang/ja.xml index a636fb7422..291b57a4fc 100644 --- a/docs/manual/style/lang/ja.xml +++ b/docs/manual/style/lang/ja.xml @@ -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">$B%3%"5!G=$H(B MPM</message> <message name="othermodules">$BB>$N%b%8%e!<%k(B</message> diff --git a/docs/manual/style/lang/ko.xml b/docs/manual/style/lang/ko.xml index 41965fdfe0..dbd82f8f27 100644 --- a/docs/manual/style/lang/ko.xml +++ b/docs/manual/style/lang/ko.xml @@ -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> diff --git a/docs/manual/style/lang/ru.xml b/docs/manual/style/lang/ru.xml index 9f05a47aca..4a3e72152c 100644 --- a/docs/manual/style/lang/ru.xml +++ b/docs/manual/style/lang/ru.xml @@ -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> diff --git a/docs/manual/style/xsl/common.xsl b/docs/manual/style/xsl/common.xsl index 7499cb82d9..b78ba97e91 100644 --- a/docs/manual/style/xsl/common.xsl +++ b/docs/manual/style/xsl/common.xsl @@ -318,13 +318,25 @@ <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çais</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:attribute> <xsl:value-of select="." /> |