Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

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"/>

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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