I am trying to customize the text displayed in the search box of my SharePoint site. The default is "Search this site...".
I found a number of articles which explain how to do it (by overriding the delegate control with a lower sequence number) and it works fine.
My XML looks like this :
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Control
Id="SmallSearchInputBox"
Sequence="10"
ControlClass="Microsoft.SharePoint.Portal.WebControls.SearchBoxEx" ControlAssembly="Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">
<Property Name="GoImageUrl">/_layouts/images/gosearch15.png</Property>
<Property Name="GoImageUrlRTL">/_layouts/images/gosearchrtl15.png</Property>
<Property Name="GoImageActiveUrl">/_layouts/images/gosearchhover15.png</Property>
<Property Name="GoImageActiveUrlRTL">/_layouts/images/gosearchrtlhover15.png</Property>
<Property Name="DropDownMode">ShowDD</Property>
<Property Name="SearchResultPageURL">/_layouts/osssearchresults.aspx</Property>
<Property Name="ScopeDisplayGroupName"></Property>
<Property Name="FrameType">None</Property>
<Property Name="QueryPromptString">DO A SEARCH!</Property>
</Control>
</Elements>
This works fine, the search box displays "DO A SEARCH!" as expected. However, I want this string localized. When I do
<Property Name="QueryPromptString">$Resources:MyResourceFile,CustomText;</Property>
The search box displays $Resources:MyResourceFile,CustomeText; litterally instead of evaluating it.
How do I put localized strings there?
Thanks!
