I have three resx files that i use in application. By default it's english, but when i want to change application language only UI is changed. Controllers seems to stay fixed on english, did i overlook something?
Resource file properties (set to public)
I change language on _ViewStart.cshtml like this (language is EN or DE)
Culture = UICulture = language;
I also tried to change language in controller upon login but it doesn't have any effect (if i comment out ViewStart code following lines do nothing, application is still on english)
Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("de-DE");
Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de-DE");
I don't have anything language related in web.config atm. But if i put globalization attribute on German application language is changed but i need to change it from within application so i can't use globalization attribute. Any ideas?
As an example, if i use this in my view @Resource.Language i will always get correctly selected user language, but if i use same line in controller and sent string to my view it's always on english (ignores user choice)