0

We are using custom XSL to transform the search results. There is a couple of labels in the custom search results and these need to be localized when user changes language. This article explains how is that is with CQWP but it seems CoreResults WebPart does not use dsQueryResponse and I have no idea how to get this to work.

1

Managed to solve this, here is what you need to do:

  • A Resource file (e.g. YourResourceFileName.resx) must be placed in inetpub directory e.g. *C:\inetpub\wwwroot\wss\VirtualDirectories\80\App_GlobalResources*
  • Parameter binding must be created for each resource you plan to use e.g.

    <ParameterBinding Name="ParameterName" Location="Resource(YourResourceFileName,NameOfResourceToBeExtracted)">

  • Use the following syntax to display the value:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.