Success! Looks like we've fixed this one. According to our records the fix was applied for a bug in our system in a recent build.
  1. #1
    Ext JS Premium Member
    Join Date
    May 2007
    Location
    Aalborg, Denmark
    Posts
    14
    Vote Rating
    0
    chh is on a distinguished road

      0  

    Default ExtJs 4.1.0 Danish Date locale is wrong

    ExtJs 4.1.0 Danish Date locale is wrong


    Ext version tested:
    • Ext 4.1.0

    Browser versions tested against:
    • Chrome 19

    DOCTYPE tested against:
    • Strict

    Description:
    • The danish locale for the month numbers is incorrect.

    from ext-lang-da.js

    Code:
         // These are correct
         Ext.Date.monthNames = ["januar", "februar", "marts", "april", "maj", "juni", 
                                      "juli", "august", "september", "oktober", "november", "december"];
    
        // These are wrong, they start with uppercase - May should be maj and Oct should be okt 
            Ext.Date.monthNumbers = {
                Jan: 0,
                Feb: 1,
                Mar: 2,
                Apr: 3,
                May: 4,
                Jun: 5,
                Jul: 6,
                Aug: 7,
                Sep: 8,
                Oct: 9,
                Nov: 10,
                Dec: 11
            };
    
            // This is wrong too, the first letter should be lowercase
            Ext.Date.getMonthNumber = function(name) {
                return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
            };
    Possible fix:
    Code:
      Ext.Date.monthNumbers = {
                jan : 0,
                feb : 1,
                mar : 2,
                apr : 3,
                maj : 4,
                jun : 5,
                jul : 6,
                aug : 7,
                sep : 8,
                okt : 9,
                nov : 10,
                dec : 11
            };
    
            Ext.Date.getMonthNumber = function(name) {
                return Ext.Date.monthNumbers[name.substring(0, 3).toLowerCase()];
            };

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,004
    Vote Rating
    650
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Thanks for the report, we're aware the localization files are in various states of completedness, we're looking into how to best handle this going forward.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Ext JS Premium Member
    Join Date
    May 2007
    Location
    Aalborg, Denmark
    Posts
    14
    Vote Rating
    0
    chh is on a distinguished road

      0  

    Default


    Quote Originally Posted by evant View Post
    Thanks for the report, we're aware the localization files are in various states of completedness, we're looking into how to best handle this going forward.
    That sounds great, but in the meantime would you please just update the ext-lang-da.js file so we don't have to update it manually every time we upgrade.

Thread Participants: 1