diff xslt/menu.xslt @ 707:b133b1f44765

Regenerated.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 04 Oct 2012 15:02:55 +0000
parents 2ced25001893
children 2c57830e0149
line wrap: on
line diff
--- a/xslt/menu.xslt
+++ b/xslt/menu.xslt
@@ -24,7 +24,7 @@
          <xsl:otherwise>
             <xsl:choose>
 
-               <xsl:when test="@switchlang != ''">
+               <xsl:when test="$TRANS and @switchlang">
                   <xsl:choose>
 
                      <xsl:when test="contains($TRANS, @switchlang)">
@@ -32,18 +32,8 @@
                         <a>
 
                            <xsl:attribute name="href">
-                              <xsl:choose>
 
-                                 <xsl:when test="$ROOT != '' ">
-
-                                    <xsl:value-of select=" concat($ROOT, '/', @switchlang, '/', $NOLANGORIGIN)"/>
-                                 </xsl:when>
-
-                                 <xsl:otherwise>
-
-                                    <xsl:value-of select=" concat(@switchlang, '/', $NOLANGORIGIN)"/>
-                                 </xsl:otherwise>
-                              </xsl:choose>
+                              <xsl:value-of select=" concat($ROOT, '/', @switchlang, '/',                         substring-after($LINK, concat('/', $LANG, '/')))"/>
                            </xsl:attribute>
 
                            <xsl:value-of select=" normalize-space(text())"/>
@@ -150,4 +140,4 @@
       <br/>
    </xsl:template>
 
-</xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>