Index: branches/Emisje/eCard/eCardMVC/Platnosci/Global.asax.cs
===================================================================
--- branches/Emisje/eCard/eCardMVC/Platnosci/Global.asax.cs (revision 866)
+++ branches/Emisje/eCard/eCardMVC/Platnosci/Global.asax.cs (revision 895)
@@ -7,4 +7,5 @@
 using System.Threading;
 using System.Globalization;
+using System.Configuration;
 
 namespace Platnosci
@@ -17,24 +18,24 @@
         public static void RegisterRoutes(RouteCollection routes)
         {
+            routes.IgnoreRoute("elmah.axd");
             routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
-
+            string lang = Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName.ToLower();
+           
             routes.MapRoute(
-                "eCard",                                            // Route name
-                "eCard/Status.aspx",                                // URL with parameters
-                new { controller = "Platnosc", action = "Status" }  // Parameter defaults
-            );
-
+                "eCard",                                            
+                "eCard/Status.aspx",                                
+                new { controller = "Platnosc", action = "Status" }  
+            );            
             routes.MapRoute(
-                "Default",                                                               // Route name
-                "{language}/{controller}/{action}/{id}",                                 // URL with parameters
-                new { language = "pl", controller = "Home", action = "Index", id = "" }  // Parameter defaults
-            );
-
+                "Default",                                                               
+                "{language}/{controller}/{action}/{id}",                                 
+                new { language = lang, controller = "Home", action = "Index", id = "" }  
+            );            
         }
-
         protected void Application_Start()
         {
             RegisterRoutes(RouteTable.Routes);
         }
+     
     }
 }
