M
Matthias S.
Hi there,
on the way to create a "multilingual" site. And some probs:
To provide support for mulitple languages, I've added a new resx file to
my project (gave it the same "root" name as the project =
myproject.resx, to make it the default/fallback resource) and for
testing purpose, defined a string resource LBL_TEST with a default value
of "Hello World".
After that, I created a second resx file and named it
myproject.de-DE.resx and added the same string resource with a german
value. Whenever I now try to load this string from the ResourceManager I
get a MissingManifestResourceException telling me, that the resources
for the specified culture couldn't be found. I should make sure, it
suggests, that the resources are properly compiled/linked into the dll.
Here is the code that I'm using to load the resource-string:
ResourceManager res = new ResourceManager("myproject",
Assembly.GetExecutingAssembly());
Label1.Text = res.GetString("LBL_TEST");
When selecting the resource file in the SolutionExplorer and opening the
Properties, I see a "Namespace of the userdefined tool" (free
translation from german). I've changed this value to reflect my current
default namespace but it did not help.
Can anyone help?
on the way to create a "multilingual" site. And some probs:
To provide support for mulitple languages, I've added a new resx file to
my project (gave it the same "root" name as the project =
myproject.resx, to make it the default/fallback resource) and for
testing purpose, defined a string resource LBL_TEST with a default value
of "Hello World".
After that, I created a second resx file and named it
myproject.de-DE.resx and added the same string resource with a german
value. Whenever I now try to load this string from the ResourceManager I
get a MissingManifestResourceException telling me, that the resources
for the specified culture couldn't be found. I should make sure, it
suggests, that the resources are properly compiled/linked into the dll.
Here is the code that I'm using to load the resource-string:
ResourceManager res = new ResourceManager("myproject",
Assembly.GetExecutingAssembly());
Label1.Text = res.GetString("LBL_TEST");
When selecting the resource file in the SolutionExplorer and opening the
Properties, I see a "Namespace of the userdefined tool" (free
translation from german). I've changed this value to reflect my current
default namespace but it did not help.
Can anyone help?