[Mono-bugs] [Bug 76189][Wis] Changed - Web.Config uiCulture setting
doe not allow "en"
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Sep 23 05:30:10 EDT 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by ximian_bugzilla at davekelly.me.uk.
http://bugzilla.ximian.com/show_bug.cgi?id=76189
--- shadow/76189 2005-09-22 16:24:22.000000000 -0400
+++ shadow/76189.tmp.24240 2005-09-23 05:30:09.000000000 -0400
@@ -1,13 +1,13 @@
Bug#: 76189
Product: Mono: Class Libraries
Version: 1.1
OS: other
OS Details: Fedora Core 3
-Status: RESOLVED
-Resolution: NOTABUG
+Status: REOPENED
+Resolution:
Severity: Unknown
Priority: Wishlist
Component: Sys.Web
AssignedTo: gonzalo at ximian.com
ReportedBy: ximian_bugzilla at davekelly.me.uk
QAContact: mono-bugs at ximian.com
@@ -97,6 +97,38 @@
------- Additional Comments From gonzalo at ximian.com 2005-09-22 16:24 -------
did you actually read the link you posted?
"The Culture value can only be set to specific cultures such as en-US
or en-GB. This prevents the problem of identifying the correct
currency symbol to use for "en", where en-US and en-GB have different
currency symbols."
+
+------- Additional Comments From ximian_bugzilla at davekelly.me.uk 2005-09-23 05:30 -------
+Yes, I did. We are talking about the uiCulture setting. Not the Culture
+setting.
+
+Examples they give on the same page:
+
+culture="en-US"
+uiCulture="de"
+
+and:
+
+<%@ Page UICulture="de" Culture="en-US"...%>
+
+and:
+
+"The following example sets both the CurrentCulture and the
+CurrentUICulture properties to the culture specified in the browser's
+Accept-Language header. Note that the CurrentCulture property is set
+using the CreateSpecificCulture method, since this property must be set
+to a specific culture and not a neutral culture."
+
+Thread.CurrentThread.CurrentCulture =
+CultureInfo.CreateSpecificCulture(Request.UserLanguages[0]);
+Thread.CurrentThread.CurrentUICulture = new
+CultureInfo(Request.UserLanguages[0]);
+
+(Which I understand to mean that CreateSpecificCulture creates a
+specific culture whereas CurrentUICulture creates one without taking
+account of the GB part (for example). Of course, I could be wrong there.
+
+
More information about the mono-bugs
mailing list