SPC076401: Localize property 'Title' and 'Description' in WebPart |
Properties 'Title' and 'Description' in WebParts should be localized with .resx file.
CheckId | SPC076401 |
---|---|
TypeName | LocalizeTitleAndDescriptionInWebPart |
Severity | Warning |
Type | WebPart |
The property 'Title' or 'Description' for a webpart are defined localized in the .webpart file as follows.
<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="TypeName, Version=VersionNumber, Culture=neutral, PublicKeyToken=PublicKeyToken" />
<importErrorMessage>Cannot import this Web Part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="Title" type="string">$Resources:Wingtip.WebParts,WebPartTitle</property>
<property name="Description" type="string">$Resources:Wingtip.WebParts,WebPartDesc</property>
</properties>
</data>
</webPart>
</webParts>