Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
4 Points
7 Posts
May 21, 2009 10:05 AM|LINK
I guess localization support is in the todo list.
My default culture language is "es". To make it work with the current database records I had to change these bits in the HomeController.cs:
public ActionResult Index(string slug) { slug = slug ?? "/"; //this.CurrentPage = _cmsRepository.GetPage(slug, System.Globalization.CultureInfo.CurrentCulture.TwoLetterISOLanguageName); this.CurrentPage = _cmsRepository.GetPage(slug, "en"); return View(); }
Not sure if there are some other places in the application where the default culture info matters...
HTH,
Eduard
eriera1@gmai...
Member
4 Points
7 Posts
Re: Httpcontext is null Exception ocurr
May 21, 2009 10:05 AM|LINK
I guess localization support is in the todo list.
My default culture language is "es". To make it work with the current database records I had to change these bits in the HomeController.cs:
public ActionResult Index(string slug) {
slug = slug ?? "/";
//this.CurrentPage = _cmsRepository.GetPage(slug, System.Globalization.CultureInfo.CurrentCulture.TwoLetterISOLanguageName);
this.CurrentPage = _cmsRepository.GetPage(slug, "en");
return View();
}
Not sure if there are some other places in the application where the default culture info matters...
HTH,
Eduard