diff --git a/web/Controllers/HomeController.cs b/web/Controllers/HomeController.cs index c4e54ffb..c972236a 100644 --- a/web/Controllers/HomeController.cs +++ b/web/Controllers/HomeController.cs @@ -68,7 +68,9 @@ namespace Yavsc.Controllers public void InitCulture() { CultureInfo culture = null; string defaultCulture = "fr"; - + if (Request.UserLanguages==null) + culture = CultureInfo.CreateSpecificCulture(defaultCulture); + else if (Request.UserLanguages.Length > 0) { try { culture = new CultureInfo (Request.UserLanguages [0]); diff --git a/web/Global.asax.cs b/web/Global.asax.cs index d42253d7..73321a12 100644 --- a/web/Global.asax.cs +++ b/web/Global.asax.cs @@ -30,8 +30,8 @@ namespace Yavsc routes.MapRoute ( "Default", - "{controller}/{action}/{id}", - new { controller = "Home", action = "Index", id = "" } + "{controller}/{action}/{user}", + new { controller = "Home", action = "Index", user="" } ); } diff --git a/web/Controllers/T.cs b/web/Helpers/T.cs similarity index 100% rename from web/Controllers/T.cs rename to web/Helpers/T.cs diff --git a/web/Models/App.master b/web/Models/App.master index 538e5478..27290821 100644 --- a/web/Models/App.master +++ b/web/Models/App.master @@ -59,6 +59,11 @@ + +