-
28 Jun 2012 4:28 AM #1
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
Possible fix: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()]; };
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()]; };
-
28 Jun 2012 4:39 AM #2
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!
-
28 Jun 2012 11:45 PM #3
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.


Reply With Quote
