[yelp-xsl] mal2html-page: Fix Previous/Next translation, #640318



commit 935d31f14c66247304796582c9c8ad217063e152
Author: Shaun McCance <shaunm gnome org>
Date:   Thu Apr 28 09:32:59 2011 -0400

    mal2html-page: Fix Previous/Next translation, #640318
    
    I was calling gettext inside a for-each on $mal.cache, so
    the language lookup happened according to the language of
    the cache file, which is nothing.

 xslt/mallard/html/mal2html-page.xsl |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index c1fe5ae..5646a8e 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -295,9 +295,11 @@ REMARK: Describe this template
                 <xsl:with-param name="xref" select="$prev/../../@id"/>
               </xsl:call-template>
             </xsl:attribute>
-            <xsl:call-template name="l10n.gettext">
-              <xsl:with-param name="msgid" select="'Previous'"/>
-            </xsl:call-template>
+            <xsl:for-each select="$node">
+              <xsl:call-template name="l10n.gettext">
+                <xsl:with-param name="msgid" select="'Previous'"/>
+              </xsl:call-template>
+            </xsl:for-each>
           </a>
         </xsl:if>
         <xsl:if test="$prev and $next">
@@ -317,9 +319,11 @@ REMARK: Describe this template
                 <xsl:with-param name="xref" select="$next/@xref"/>
               </xsl:call-template>
             </xsl:attribute>
-            <xsl:call-template name="l10n.gettext">
-              <xsl:with-param name="msgid" select="'Next'"/>
-            </xsl:call-template>
+            <xsl:for-each select="$node">
+              <xsl:call-template name="l10n.gettext">
+                <xsl:with-param name="msgid" select="'Next'"/>
+              </xsl:call-template>
+            </xsl:for-each>
           </a>
         </xsl:if>
       </div>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]