Copied to clipboard

Flag this post as spam?

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


  • Bent Holz 100 posts 273 karma points
    Aug 23, 2011 @ 14:10
    Bent Holz
    0

    xslt search localization

    Hi all...

    Added Xslt Search to my site and worked like a charm... I would like to change the language from english to danish and so i changed this in the XSLT-file:

      <xsl:variable name="dictionarySummary-NoMatchesWereFoundFor" select="PS.XSLTsearch:getDictionaryParameter(string(umbraco.library:GetDictionaryItem('[XSLTsearch]Summary-NoMatchesWereFoundFor')), 'No matches were found for')"/>

    into:

      <xsl:variable name="dictionarySummary-NoMatchesWereFoundFor" select="PS.XSLTsearch:getDictionaryParameter(string(umbraco.library:GetDictionaryItem('[XSLTsearch]Summary-NoMatchesWereFoundFor')), 'Fandt ingen resultater for')"/>

    But that didnt do anything...

    Anyone know what or where it is i need to change it to work?

    Cheers!...

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Aug 23, 2011 @ 14:18
    Dirk De Grave
    1

    Crawn,

    Are you sure you've also changed the dictionary item in the admin backend. Me thinks the 2nd param is a fallback in case the dictionary item is not found?

     

    Hope this helps.

    Regards,

    /Dirk

     

  • Rich Green 2246 posts 4008 karma points
    Aug 23, 2011 @ 14:21
    Rich Green
    1

    Hey Crawn,

    You don't need to change the XSLT, you just need to add the translation to the dictionary.

    Have a look at your Dictionary items in Settings section and add the words in for Danish (you must make sure your site is set to Danish by clicking your home node and selecting 'manage host names')

    Rich

  • Bent Holz 100 posts 273 karma points
    Aug 23, 2011 @ 15:09
    Bent Holz
    0

    Ahhh... i totally missed that one... thx guys!...

    And thumbs up to you Rich for carving it out in stone, so that people like me (non-coders) also get it :)

  • Md Johirul Islam 37 posts 57 karma points
    Oct 12, 2011 @ 18:55
    Md Johirul Islam
    0

     

    I install XSLT package every thing working fine. But the problem is when i type into the search input box the result is show in my target page and near the input search box. Any one know why it happen. Please provide me the solution..... Thank you.......

     

Please Sign in or register to post replies

Write your reply to:

Draft