Hi,
Ive been having some big problems with localization, I will list below
what Ive done so far:
The assembly Im trying to localize is called CustomersMode (it is a
plugin for our main software application).
The class I wish to localize is called Customers.vb - so I have
created the Customers.resx file with relevant pairs, and used reggen
to transform this into Customers.resources.
I added this Customers.resources to the CustomersMode project, as an
embedded resource.
Now when I create the ResourceManager, I use the folling code:
Dim _assm As Reflection.Assembly = Me.GetType().Assembly
Dim _resMgr As System.Resources.ResourceManager = New
System.Resources.ResourceManager("Customers", _assm)
Upon running the program, I get the error
"Could not find any resources appropriate for the specified culture
(or the neutral culture) in the given assembly. Make sure
"Customers.resources" was correctly embedded or linked into assembly
"Rsk.Lpf.Logobank.Win.CustomersMode".
baseName: Customers locationInfo: <null> resource file name:
Customers.resources assembly: Rsk.Lpf.Logobank.Win.CustomersMode,
Version=1.0.1696.23694, Culture=neutral, PublicKeyToken=null
Object reference not set to an instance of an object."
Ive tried replacing "Customers" in the ResourceManager constructor
with "CustomersMode.Customers", "CustomersPlugin.Customers" (the class
name), as well as using the full namespace (Rsk....Customers)
None of these work, and Ive spent a fair bit of time trying to figure
it out.
Please can someone shed some light on this problem?
Thanks
Jamie Fraser