Hi,
I'm working on a quite simple Webpage (MVC2), using localisation based on ResourceFiles.
I have the MVC2 Project and the Resources in a seperate Assembly.
The Resources contains 3 languages (Resource.resx, Resource.de.resx, Resource.en.resx, Resource.ja.resx) and I'm querying them via the ResourceManager.
Call from the .aspx
<% Resources.Res resman = new Resources.Res(); %>
<%=resman.GetString("String1", new System.Globalization.CultureInfo("en")) %><br />
<%=resman.GetString("String1", new System.Globalization.CultureInfo("ja")) %><br />
<%=resman.GetString("String1", new System.Globalization.CultureInfo("de")) %><br />
ResourceManager:
public class Res
{
private readonly ResourceManager Manager = Resources.Resource1.ResourceManager;
public string GetString(string id, CultureInfo info)
{
return Manager.GetString(id, info);
}
}
And for the compiled Version in VS2008 I get smth like this:
String1EN
String1JA
String1DE
Compiled in Visual Studio 2008, this works fine: but I'm having Troubles if I compile the Solution in Visual Studio 2010 (also 3.5 as TargetFramework).
There the result shows smth like:
String1DEFAULT
String1JA
String1DEFAULT
I don't know what it can be: is this still a bug from the VS2010 RC or am I doing smth. wrong here?