[gnome-doc-utils] Fixed menuchoice separator in RLT locales, bug #579278
- From: Shaun McCance <shaunm src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-doc-utils] Fixed menuchoice separator in RLT locales, bug #579278
- Date: Tue, 2 Jun 2009 23:27:27 -0400 (EDT)
commit 979b6dd10423ef6bc3d42de3d0120f1751fa6a22
Author: Shaun McCance <shaunm gnome org>
Date: Tue Jun 2 22:26:42 2009 -0500
Fixed menuchoice separator in RLT locales, bug #579278
---
xslt/docbook/html/db2html-inline.xsl | 17 ++++++++++++++++-
xslt/gettext/l10n.xml.in | 2 +-
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/xslt/docbook/html/db2html-inline.xsl b/xslt/docbook/html/db2html-inline.xsl
index 60f628d..bf53f49 100644
--- a/xslt/docbook/html/db2html-inline.xsl
+++ b/xslt/docbook/html/db2html-inline.xsl
@@ -674,9 +674,24 @@ FIXME
<!-- = menuchoice % db2html.inline.content.mode = -->
<xsl:template mode="db2html.inline.content.mode" match="menuchoice">
+ <xsl:variable name="arrow">
+ <xsl:variable name="ltr">
+ <xsl:call-template name="l10n.gettext">
+ <xsl:with-param name="msgid" select="'default:LTR'"/>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$ltr = 'default:RTL'">
+ <xsl:text>◂</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>▸</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
<xsl:for-each select="*[not(self::shortcut)]">
<xsl:if test="position() != 1">
- <xsl:text> ▸ </xsl:text>
+ <xsl:value-of select="concat(' ', $arrow, ' ')"/>
</xsl:if>
<xsl:apply-templates select="."/>
</xsl:for-each>
diff --git a/xslt/gettext/l10n.xml.in b/xslt/gettext/l10n.xml.in
index c23b0dc..45b60a5 100644
--- a/xslt/gettext/l10n.xml.in
+++ b/xslt/gettext/l10n.xml.in
@@ -10,7 +10,7 @@
<!--
Translate to default:RTL if your language should be displayed
right-to-left, otherwise translate to default:LTR. Do *not*
- translate it to "predefinito:LTR", if it it isn't default:LTR
+ translate it to "predefinito:LTR", if it isn't default:LTR
or default:RTL it will not work
-->
<_msg>default:LTR</_msg>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]