Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • seshadri 8 posts 28 karma points
    Sep 08, 2010 @ 18:48
    seshadri
    0

    Multi Language Langudge

    I have been struggeleing with culture in culture recoginition please help. as per help from earlier query by me and earlier  link http://umbraco.org/documentation/books/multilingual-11-sites, few items I was able to get.

    The culture I use is cy-gb and en-gb. I'm able to change values if I match the dictionary. But not able to change if I use the Content tab.

     

    I have used one xslt

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:Stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    <xsl:stylesheet
     version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns:msxml="urn:schemas-microsoft-com:xslt"
     xmlns:umbraco.library="urn:umbraco.library"
     exclude-result-prefixes="msxml umbraco.library">

    <xsl:include href="../xslt/lang_lib.xslt" />

    <xsl:output method="xml" omit-xml-declaration="yes"/>

    <xsl:param name="currentPage"/>

    <xsl:template match="/">


    <!-- start writing XSLT -->

    <h1>

    <xsl:value-of select="$currentPage/data[@alias = concat('pageHeader','$flang')]" disable-output-escaping="yes" />


    </h1>

    <xsl:value-of select="$currentPage/data[@alias = concat('bodyText',$flang)]" disable-output-escaping="yes" />

     

     


    <xsl:text>flang:</xsl:text>
    <xsl:value-of select="$flang"/>

    </xsl:template>
    </xsl:stylesheet>

    The xslt lang_lib.xslt included is as per  http://umbraco.org/documentation/books/multilingual-11-sites

    The pageHeader should have been conteated as pageHeader_cy-gb and pageHeader_en-gb. On Document type I have named Documet as pageHeader_en-gb as alias name and  pageHeader_cy-gb as alias name have created correct macro. That Macro I refered on concerned Template. On content I get 2 different Tabls and I have set different values. But for some reason the culture is not recognised at run time and $flang value seems to be empty and no values are reflected.  on pageHeader

    en-gb is english uk and cy-gb is welsh

     

    Please please some one help me out in This. I 'm  struggling for long. Thanks in advance

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies