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

I have created feature which contains list definition and list instance based on that definition. I also added feature resource files to localize it. I created invariant and pl-PL resource files. When I'm debugging, list definition and instance are created properly. The thing is, that when I access list instance in English, I'm getting list title and description like below:

$Resources:_FeatureId10b455ed-4436-4d16-a625-b179c85f1127,BlockListInstantionName;

When I'm accessing the same list instance, but in Polish (switching current language), title and description are properly displayed. Any ideas why this is happening?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Make sure your format to pick the name from the Resource file is:

Name="$Resources:MyResources,ListInstance_News"

MyResources - name of the resources file (as described below) ListInstance_News - the resource entry

And the name of Resources file (for the entry above) for English should be:

MyResources.en-US.resx

And deployed to:

{SharePointRoot}\Resources

share|improve this answer
    
So I have to specify language. I thought that invariant resources would take care of that. –  jjczopek Sep 26 '11 at 9:37
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.