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.resou rces.
I added this Customers.resou rces to the CustomersMode project, as an
embedded resource.
Now when I create the ResourceManager , I use the folling code:
Dim _assm As Reflection.Asse mbly = Me.GetType().As sembly
Dim _resMgr As System.Resource s.ResourceManag er = New
System.Resource s.ResourceManag er("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.reso urces" was correctly embedded or linked into assembly
"Rsk.Lpf.Logoba nk.Win.Customer sMode".
baseName: Customers locationInfo: <null> resource file name:
Customers.resou rces assembly: Rsk.Lpf.Logoban k.Win.Customers Mode,
Version=1.0.169 6.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", "CustomersPlugi n.Customers" (the class
name), as well as using the full namespace (Rsk....Custome rs)
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
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.resou rces.
I added this Customers.resou rces to the CustomersMode project, as an
embedded resource.
Now when I create the ResourceManager , I use the folling code:
Dim _assm As Reflection.Asse mbly = Me.GetType().As sembly
Dim _resMgr As System.Resource s.ResourceManag er = New
System.Resource s.ResourceManag er("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.reso urces" was correctly embedded or linked into assembly
"Rsk.Lpf.Logoba nk.Win.Customer sMode".
baseName: Customers locationInfo: <null> resource file name:
Customers.resou rces assembly: Rsk.Lpf.Logoban k.Win.Customers Mode,
Version=1.0.169 6.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", "CustomersPlugi n.Customers" (the class
name), as well as using the full namespace (Rsk....Custome rs)
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