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 and content type, which has Element as base type. I prepared two resource files to provide localization - AppDB.resx and AppDB.pl-PL.resx for Polish language. I also created custom fields with display names referencing to that resource. Unfortunately, when I deploy my content type feature, every single field is translated properly when I switch languages, but not Title field (where I have set manually DisplayName to point to my resource) - it always stays as it is set in AppDB.resx (invariant one).

I even tried removing title field reference from content type, created custom field called Name, added reference to that field with same DisplayName string and the result is exactly the same. After further looking, it turned out that when I define custom field and set it's display name and add FieldRef to that field without DisplayName change in the FieldRef- it's translated properly. But when I decide to override DisplayName in FieldRef, invariant string is always displayed. This is very confusing to me and this is second day I'm struggling with this. I appreciate any help.

Edit

I found workaround, but I'm not very pleased with it. I left content type as is, and I modify display names of problematic fields in list definition schema. But I'm still open for solutions.

share|improve this question
1  
you shouldn't use DisplayName in fieldrefs for content type if you want to have localization for your fields, because when sharepoint creates content type and FieldRef for it, DisplayName computes from resourse string you've provided, so simply edit DisplayName in listdefinition then resource token will work correctly –  Alexander Dec 21 '11 at 6:48
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.