summaryrefslogtreecommitdiffstats
path: root/docs/manual/style/xsl/common.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'docs/manual/style/xsl/common.xsl')
-rw-r--r--docs/manual/style/xsl/common.xsl13
1 files changed, 10 insertions, 3 deletions
diff --git a/docs/manual/style/xsl/common.xsl b/docs/manual/style/xsl/common.xsl
index b78ba97e91..f36f185bb1 100644
--- a/docs/manual/style/xsl/common.xsl
+++ b/docs/manual/style/xsl/common.xsl
@@ -318,14 +318,19 @@
<xsl:for-each select="$metafile/variants/variant">
<xsl:sort select="." />
- <a hreflang="{.}"
- href="{$path}/{.}{$metafile/path}{$metafile/basename}.html">
+ <a 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:if test="$messages/@lang != .">
+ <xsl:attribute name="hreflang">
+ <xsl:value-of select="." />
+ </xsl:attribute>
+ <xsl:attribute name="rel">alternate</xsl:attribute>
+ </xsl:if>
<xsl:attribute name="title">
<xsl:choose>
<xsl:when test=". != 'fr'"> <!-- no language file avail. -->
@@ -342,7 +347,9 @@
<xsl:value-of select="." />
&nbsp;
</a>
- <xsl:if test="position() != last()"> | </xsl:if>
+ <xsl:if test="position() != last()">
+ <xsl:text> |&#xA;</xsl:text>
+ </xsl:if>
</xsl:for-each>
</p>&lf;
</div> <!-- /.{$position}lang -->