I have dotnetnuke application and I made a custom login module. And everything works fine except loading user proffered locale. If user default language is set to German I want to change language from english to german after login. I write this code bellow but it works on my local instalation but not on the real server 🙁
string p = this.UserInfo.Profile.PreferredLocale;
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(p);
Ha, I get it 🙂