Author: igorz
Date: 2007-12-25 06:02:14 -0500 (Tue, 25 Dec 2007)
New Revision: 91874
Modified:
trunk/mcs/class/System.Web/System.Web/ChangeLog
trunk/mcs/class/System.Web/System.Web/HttpApplication.cs
Log:
2007-12-25 Igor Zelmanovich <[EMAIL PROTECTED]>
* HttpApplication.cs: initialize culture each request.
makes it consider culture settings from nested web.config
Modified: trunk/mcs/class/System.Web/System.Web/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web/ChangeLog 2007-12-25 10:17:47 UTC
(rev 91873)
+++ trunk/mcs/class/System.Web/System.Web/ChangeLog 2007-12-25 11:02:14 UTC
(rev 91874)
@@ -1,3 +1,8 @@
+2007-12-25 Igor Zelmanovich <[EMAIL PROTECTED]>
+
+ * HttpApplication.cs: initialize culture each request.
+ makes it consider culture settings from nested web.config
+
2007-12-19 Juraj Skripsky <[EMAIL PROTECTED]>
* HttpContext.cs, HttpApplication.cs: Move timeout tracking from
Modified: trunk/mcs/class/System.Web/System.Web/HttpApplication.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/HttpApplication.cs 2007-12-25
10:17:47 UTC (rev 91873)
+++ trunk/mcs/class/System.Web/System.Web/HttpApplication.cs 2007-12-25
11:02:14 UTC (rev 91874)
@@ -197,22 +197,6 @@
HttpApplicationFactory.AttachEvents
(this);
Init ();
}
-
-#if NET_2_0
- GlobalizationSection cfg;
- cfg = (GlobalizationSection)
WebConfigurationManager.GetSection ("system.web/globalization");
- app_culture = cfg.GetCulture();
- autoCulture = cfg.IsAutoCulture;
- appui_culture = cfg.GetUICulture();
- autoUICulture = cfg.IsAutoUICulture;
-#else
- GlobalizationConfiguration cfg;
- cfg = GlobalizationConfiguration.GetInstance
(null);
- if (cfg != null) {
- app_culture = cfg.Culture;
- appui_culture = cfg.UICulture;
- }
-#endif
}
}
@@ -1130,6 +1114,22 @@
void PreStart ()
{
+#if NET_2_0
+ GlobalizationSection cfg;
+ cfg = (GlobalizationSection)
WebConfigurationManager.GetSection ("system.web/globalization");
+ app_culture = cfg.GetCulture ();
+ autoCulture = cfg.IsAutoCulture;
+ appui_culture = cfg.GetUICulture ();
+ autoUICulture = cfg.IsAutoUICulture;
+#else
+ GlobalizationConfiguration cfg;
+ cfg = GlobalizationConfiguration.GetInstance (null);
+ if (cfg != null) {
+ app_culture = cfg.Culture;
+ appui_culture = cfg.UICulture;
+ }
+#endif
+
#if !TARGET_J2EE
context.StartTimeoutTimer ();
#endif
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches