Kurt H

Hi, I am currently globalizing my dll, (its a c# 2005 project). I was able to globalize each form ok, having all the .de.resx and .en.resxs generated for me, and the corresponding de\FF.IO.resources.dll etc created in the output dir.

Now I am trying to globalize all the strings in my code.

Each form and formless class has a

ResourceManager stringManager; member created like:

stringManager = new ResourceManager("FF.IO", Assembly.GetExecutingAssembly());

I then replaced my strings with calls to GetString like:


"invalidFileMessage", CultureInfo.CurrentUICulture)

Now I cant seem to create the resources right. I have tried creating the string table in the default resources file, by right clicking on the project, choosing properties, then resources and creating a default resources file, which created a Resources.resx file in the Properties folder, and entering the strings there.

I got the exception "

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "FF.IO.resources" was correctly embedded or linked into assembly "FF.IO" at compile time, or that all the satellite assemblies required are loadable and fully signed."

I also tried making a FF.IO.resources.resx file in the project directory and putting the strings there but I get the same exception. Can someone please give me a rundown on how to globalize the strings in my project Ideally so that they end up in the same de\FF.IO.resources.dll etc dlls as the form default strings (so I only need 1 satellite dll per language)

Thanks a lot, I know it shouldnt be this complicated.


Re: .NET Base Class Library Can globalize forms ok, having trouble with strings in code.

Kurt H

Finally sorted it out, it was all in the naming.

Had to call the resource file: FF.IO.resx (without the resource)

At least thats for the default resources stored in the main assembly dll. Still unsure how I go about the localized satellite dlls, looks like it is not done in visual studio at all, I have to write a text file, and use some command line tools.

Re: .NET Base Class Library Can globalize forms ok, having trouble with strings in code.