Sep 12, 2012, 2:22 PM
[CLOSED] Resourcemanager.Locale is case sensitive
I realize that this come from Extjs, but is it really necessary?
If I set Locale to be "en-gb", Resource manager goes to default "en-en". This was not evcident until I came across the the issue described below:
In the resultant datefield produced in this code enter the date "08/09/2012" and hit TAB. Note that Locale is set to "en-gb". The date will change to "09/08/12"
If you now explicitly set Resourcemanger Locale to "en-GB", and repeat, the date will be in the expected format: "08/09/12"
IS there a good reason to maintain case sensitivity here?
If I set Locale to be "en-gb", Resource manager goes to default "en-en". This was not evcident until I came across the the issue described below:
In the resultant datefield produced in this code enter the date "08/09/2012" and hit TAB. Note that Locale is set to "en-gb". The date will change to "09/08/12"
If you now explicitly set Resourcemanger Locale to "en-GB", and repeat, the date will be in the expected format: "08/09/12"
<%@ Page Language="VB" AutoEventWireup="false" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<ext:ResourceManager ID="ResourceManager1" runat="server" Locale="en-gb" />
<ext:Container runat="server">
<Items>
<ext:DateField ID="DateField1" runat="server" SelectOnFocus="true" Format="dd/MM/yy" >
</ext:DateField>
<ext:DateField ID="DateField2" runat="server" >
</ext:DateField>
</Items>
</ext:Container>
</body>
</html>
A by-product of this is that you will get HttpException invalid webresource errors because en-gb is not recognized. IS there a good reason to maintain case sensitivity here?
Last edited by Daniil; Sep 18, 2012 at 12:28 PM.
Reason: [CLOSED]