[yelp-xsl] mal2html-page.xsl: RTL link trail arrows
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] mal2html-page.xsl: RTL link trail arrows
- Date: Tue, 15 Feb 2011 16:45:58 +0000 (UTC)
commit 7f2b2eabb5ac60ccad9947ff2a687d1080bfb777
Author: Shaun McCance <shaunm gnome org>
Date: Tue Feb 15 11:44:34 2011 -0500
mal2html-page.xsl: RTL link trail arrows
xslt/mallard/html/mal2html-page.xsl | 23 ++++++++++++++++++++---
1 files changed, 20 insertions(+), 3 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index 094d9d5..dd66f73 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -306,12 +306,29 @@ REMARK: Describe this template
<xsl:with-param name="role" select="'guide'"/>
</xsl:call-template>
</a>
+ <xsl:variable name="direction">
+ <xsl:call-template name="l10n.direction"/>
+ </xsl:variable>
<xsl:choose>
- <xsl:when test="$node/@child = 'section'">
- <xsl:text> â?º </xsl:text>
+ <xsl:when test="$direction = 'rtl'">
+ <xsl:choose>
+ <xsl:when test="$node/@child = 'section'">
+ <xsl:text> â?¹ </xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text> Â« </xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:when>
<xsl:otherwise>
- <xsl:text> Â» </xsl:text>
+ <xsl:choose>
+ <xsl:when test="$node/@child = 'section'">
+ <xsl:text> â?º </xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text> Â» </xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:otherwise>
</xsl:choose>
<xsl:for-each select="$node/mal:link">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]