Pokaż
Ignoruj:
Data:
2009-11-24 12:21:39 (16 years ago)
Autor:
sylwek
Opis:

Re #195 merged with latest trunk

Lokalizacja:
branches/Emisje
Pliki:
2 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • branches/Emisje

    • Property svn:mergeinfo
      •  

        old new  
         1/branches/Abonament:701-884 
        12/branches/AutoShopper:815-818 
        23/branches/ReklamaReorganizacja:568-731 
        34/tags/BazaReklam_1.1.28:831 
        4 /trunk:774-868 
         5/trunk:774-893 
  • branches/Emisje/eCard/eCardMVC/Platnosci/Global.asax.cs

    r866 r895  
    77using System.Threading; 
    88using System.Globalization; 
     9using System.Configuration; 
    910 
    1011namespace Platnosci 
     
    1718        public static void RegisterRoutes(RouteCollection routes) 
    1819        { 
     20            routes.IgnoreRoute("elmah.axd"); 
    1921            routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 
    20  
     22            string lang = Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName.ToLower(); 
     23            
    2124            routes.MapRoute( 
    22                 "eCard",                                            // Route name 
    23                 "eCard/Status.aspx",                                // URL with parameters 
    24                 new { controller = "Platnosc", action = "Status" }  // Parameter defaults 
    25             ); 
    26  
     25                "eCard",                                             
     26                "eCard/Status.aspx",                                 
     27                new { controller = "Platnosc", action = "Status" }   
     28            );             
    2729            routes.MapRoute( 
    28                 "Default",                                                               // Route name 
    29                 "{language}/{controller}/{action}/{id}",                                 // URL with parameters 
    30                 new { language = "pl", controller = "Home", action = "Index", id = "" }  // Parameter defaults 
    31             ); 
    32  
     30                "Default",                                                                
     31                "{language}/{controller}/{action}/{id}",                                  
     32                new { language = lang, controller = "Home", action = "Index", id = "" }   
     33            );             
    3334        } 
    34  
    3535        protected void Application_Start() 
    3636        { 
    3737            RegisterRoutes(RouteTable.Routes); 
    3838        } 
     39      
    3940    } 
    4041}