C # Satellite builds? I need to link default culture resources

We would like to use satellite assemblies to contain various locale dependent resource files.

The question is ... do I need to bind the default culture?

We have a separate project that will contain all of our various culture resource files. As shown below, we have a project with two resource files inside it.

ProjRES

  • Resource.resx
  • Resource.it-IT.resx

I assume "Resource.resx" will act as the default culture and if Italian culture is selected the application will accept an IT-IT resource file.

What do we need to do to get access to the rest of the applications and projects to access the resource files. How do we set up namespaces for resource files to be able to reference them.

Any help is greatly appreciated.

+1


source to share


1 answer


Basically,

If the current culture that the OS is using matches a specific culture that you submitted, it will be used, if the current culture does not match any of the cultures you submitted, it will use a neutral culture.

In the most basic cases, you just need to include any localized DLL with deployment and you should be fine.



When you use resource managers, I think you can also pass in which culture you want to use explicitly and the runtime will look for resources that match - this is better if the user of the ASP.Net site can have a specific culture preference other than what works on the site.

http://msdn.microsoft.com/en-us/magazine/cc163609.aspx seems like a good starting point.

+3


source







All Articles