Culture name 'da-da' is not supported.

  1. #1

    Culture name 'da-da' is not supported.

    Hi

    I have just find a minor language bug in Ext.Net.ResourceManager.get_CurrentLocale()

    When IE6 is configured to use Danish [da] an error is thrown in some cases
    Quick fix is to use custom language "da-DK"

    IE8 is having Danish [da-DK] as selected language it's working ok

    Snippet from the exception caught
     
    Culture name 'da-da' is not supported.
    Parameter name: name
    (..)
     
    Stack Trace: 
     
    [ArgumentException: Culture name 'da-da' is not supported.
    Parameter name: name]
       System.Globalization.CultureTableRecord..ctor(String cultureName, Boolean useUserOverride) +7481609
       System.Globalization.CultureTableRecord.GetCultureTableRecord(String name, Boolean useUserOverride) +213
       System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride) +45
       Ext.Net.ResourceManager.get_CurrentLocale() +455
       Ext.Net.NumberFieldBase.get_DecimalSeparator() +96
       Ext.Net.NumberFieldBase.get_ConfigOptions() +877
       Ext.Net.NumberField.get_ConfigOptions() +16
       Ext.Net.ClientConfig.Process(Object obj) +115
    Thanks /Peter
    Last edited by plykkegaard; Jan 17, 2011 at 9:29 PM.
  2. #2
    Hi,

    Is it IE6 only problem? Is it reproducible under IE8?
  3. #3
    Hi,

    I tried to set 'Danish [da]' in IE6 but I did not see any exceptions
  4. #4
    Quote Originally Posted by Vladimir View Post
    Is it IE6 only problem? Is it reproducible under IE8?
    I belive it's IE6 only or at least only a problem where the selected language/culture is not fully qualified

    rgds /Peter
  5. #5
    Quote Originally Posted by Vladimir View Post
    I tried to set 'Danish [da]' in IE6 but I did not see any exceptions
    Do you have an "Ext.Net.NumberField" in you test file?

    rgds /Peter
  6. #6
    Hi,

    I also can't reproduce.
    When IE6 is configured to use Danish [da] an error is thrown in some cases
    What are some cases?

    Here is my test case. IE6 language is Danish[da].

    Example
    <%@ Page Language="C#" %>
    
    <%@ 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>Ext.Net Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" Locale="client">
                <Listeners>
                    <DocumentReady Handler="Ext.Msg.confirm('Test', 'Just to ensure that danish script is loaded.')" />
                </Listeners>
            </ext:ResourceManager>
            <ext:NumberField runat="server" />
        </form>
    </body>
    </html>
  7. #7
    Quote Originally Posted by Daniil View Post
    I also can't reproduce.
    Thanks, I'll have a look at it
    As far as I remember I got the error when I started to introduce numberfields in my grid
    I will work through your snippet
    There's a problem with the dot/comma decimal separator, I suppose an empty numberfield won't throw an exception

    If I fail to reproduce I can enable you to download full sourcecode with backup of a simplefied database and steps to reproduce the error
    I am not sure though that'll be helpfull as it's a rather complex/generic solution

    - Peter
  8. #8
    Lets wait for RC2. Hope, it will be released soon.
  9. #9
    I have the same problem in RC2 but now with neutral culture "da"

     
    [NotSupportedException: Kulturen 'da' er en neutral kultur. Den kan ikke bruges til formatering og parsing og kan derfor ikke indstilles som trådens aktuelle kultur.]
       System.Globalization.CultureInfo.CheckNeutral(CultureInfo culture) +7484386
       System.Globalization.CultureInfo.get_DateTimeFormat() +28
       Ext.Net.Utilities.DateTimeUtils.ConvertNetToPHP(String format, CultureInfo culture) +209
       Ext.Net.Utilities.DateTimeUtils.ConvertNetToPHP(String format) +44
       Ext.Net.DateFilter.get_FormatProxy() +17
       Ext.Net.DateFilter.get_ConfigOptions() +422
       Ext.Net.ClientConfig.Process(Object obj) +111
      (..)
    I will see if I can reproduce the problem

    [EDIT:]
    I am setting the culture on the page object to get prober formated date and numeric
    Page.UICulture = Request.UserLanguages[0];
    [/EDIT:]

    I can easily fix it by settings language in IE to "da-Dk" (or hardcode the darn thing)
    Standard is "da" in IE and it will unfortunately require some additional labour to have the users change the settings to "da-Dk" :-)
    Last edited by plykkegaard; Jun 19, 2011 at 9:02 PM. Reason: Added information
  10. #10
    I still can't to reproduce.

    Waiting for the sample code.

Similar Threads

  1. [CLOSED] Which accessibility standard supported by Ext.Net
    By leon_tang in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 11, 2012, 5:11 PM
  2. Element 'listeners' is not supported.
    By bayoglu in forum 1.x Help
    Replies: 0
    Last Post: Apr 23, 2012, 12:53 PM
  3. Replies: 4
    Last Post: Apr 15, 2011, 3:53 PM
  4. [CLOSED] [1.0] Officially supported browsers
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 22, 2010, 12:55 PM
  5. Method not supported
    By Kaido in forum 1.x Help
    Replies: 4
    Last Post: Sep 17, 2009, 11:20 AM

Posting Permissions