I'm currently localizing a visual web part for the very first time. I'm following this MSDN guide in the first place and I'm a little bit confused about where to place the resource strings or resx
-files in my SP2013 project.
Let's say my solution structure looks like this:
From what I've understood so far I could/should use these three different resx
-locations:
- Location A: feature name, feature description, any localized string I want to use during feature activation/deactivation, e.g. error messages or list names
- Location B: web part title and description, any localized string I want to use in the code behind of the web part
- Location C: any localized string I want to use elsewhere e.g. in "MyCustomClass.cs"
And to complicate the whole thing, my code should conform to the SharePoint Cop localization rules.
Is it really necessary to use all of the three locations in my case? Or is it possible to safely "combine" some resx
-files as some resource strings otherwise would be duplicated?