|
Hello,
I created a new MVVM light application and experience some problems with
WPF localization extension in Visual Studio 2010 Premium.
In the project i created a map called "Lang" and in that map I created "Lang.resx" and "Lang.en-US.resx". Lang.resx has acces modifier "internal" while Lang.en-US has "no code generated".
Now in the main window I put:
xmlns:lex="http://wpflocalizeextension.codeplex.com"
lex:LocalizeDictionary.DesignCulture="en-US"
lex:ResxLocalizationProvider.DefaultAssembly="VisitorRegistration"
lex:ResxLocalizationProvider.DefaultDictionary="Lang"
in the <Window> tag.
The problem is: it completely ignores the en-US design culture and only uses the resources from Lang.resx. In my App.xaml.cs I use the line "LocalizeDictionary.Instance.Culture = CultureInfo.GetCultureInfo("en-US");" in static App(){}
to set the culture to "en-US" but when I run it, it still only uses the resources from "Lang.resx".
Any help would be appreciated, I really can't figure it out on my own. Thanks.
|