I am trying to set web part the title and description through a resource file.
My .webpart
file has this content:
<?xml version="1.0"?>
<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="MyWebParts.MyWebPart" />
<importErrorMessage>Cannot import this web part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="Title" type="string">$Resources:MyWebPartResources,WebPartTitle</property>
<property name="Description" type="string">$Resources:MyWebPartResources,WebPartDescr</property>
</properties>
</data>
</webPart>
</webParts>
I have put the resource file in 12\Resources
folder.
But, the Add Web Part dialogue does not seem to be picking the title and description from the resource file.
Have anyone fixed this?
Update-1: On Add Web Part dialogue, I see the following instead of the text in resource file:
$Resources:MyWebPartResources,WebPartTitle
$Resources:MyWebPartResources,WebPartDescr