[gnome-doc-utils] Fixed menuchoice separator in RLT locales, bug #579278



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>&#x25C2;</xsl:text>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:text>&#x25B8;</xsl:text>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:variable>
   <xsl:for-each select="*[not(self::shortcut)]">
     <xsl:if test="position() != 1">
-      <xsl:text>&#x00A0;&#x25B8; </xsl:text>
+      <xsl:value-of select="concat('&#x00A0;', $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]