I am using Dojo 1.0.2 with Lotus Domino 8.0 and Firefox 2.0.0.11.
I am using the dijit.form.DateTextBox and all works correctly except one thing: The display of the Date Picker itself. This displays the days as Sun-Sat, not the UK format of Mon-Sun.
Using Firebug I can see that /dojo/cldr/nls/en-gb/gregorian.js is being loaded as the correct locale for me, so all seems ok so far, but looking at the actual JS file I can see that it has all the correct formats for the UK but the entries for weeks seem wrong to me:
"days-standAlone-narrow" : ["S", "M", "T", "W", "T", "F", "S"]
"days-format-abbr": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
I am not sure if these are just labels, or they actually drive the display of the widget, but surely these should read MON-SUN??
Using the older 0.4 dojo release I had access to parameters like 'weekstartson' to correctly display the drop down calendar, but now I seem to be stuck with US formats, even though I appear to be using a UK locale.
Any advice to tell me how to get round this problem would be appreciated.
Regards.

cldr data is separate from first day of week
you'll always see that localization data transferred as Sun-Sat.
The table that chooses a first day of the week (and index in that list to start from) can be found here
http://trac.dojotoolkit.org/browser/dojo/trunk/cldr/supplemental.js
it seems to think that Sunday (0) is the place to start for Great Britain (gb) Is that not right?
Great Britain first day of the week
No Sunday is not the first day of the week in Great Britain. Its Monday, and has been for a very long time. All printed calendars show Monday thru Sunday. This is also the European standard I believe.
If you look at http://en.wikipedia.org/wiki/ISO_8601 you will see even there they display a date picker as Mon-Sun. http://trac.dojotoolkit.org/browser/dojo/trunk/cldr/supplemental.js also states that "default is 1=Monday"
The ISO 8601 standard (which Dojo is laudably trying to obey) states "The ISO year starts at the first day (Monday) of week 01 and ends at the Sunday before the new ISO year'
So it seems to me the date picker is not only wrong for en-gb, but many other localizations too.
Do I need to make reference to http://trac.dojotoolkit.org/browser/dojo/trunk/cldr/supplemental.js somehow in my calls to dijit.form.DateTextBox? I would assume that if the correct locale is being selected, then this would not be necessary?
the supplemental code is
the supplemental code is being called based on the locale, as presented by the browser (the book has a chapter that explains the locale setting) So, if you patch the supplemental.js file (in this case, remove the entry gb:0) you should get the results you want. I see that the unicode.org source we use cites GB=Sun as "draft" variant with some Oxford reference. I guess that really meant it wasn't supposed to be used?
Please file a ticket in trac and ask that this be fixed. If you have specific information on other settings in that table which are wrong, please state that in the ticket as well and I'll pursue with the CLDR team.
Dojo currently implements a subset of ISO 8601 for dojo.date.stamp which does not touch on the day of the week issue. This is totally unrelated to the localized formats. We used to have code to do week # representation in ISO 8601, but it was relatively complicated, not commonly used, and we pushed it off to dojox. I don't remember what the state of that code is.
-Adam
Thanks Adam. Ticket 5533
Thanks Adam.
Ticket 5533 Raised for this.
Regards, Travis
Update
I have modified my Domino copy of http://trac.dojotoolkit.org/browser/dojo/trunk/cldr/supplemental.js.
The line gb:0,
now reads gb:1,
And the date picker now displays properly.
I do believe that lots of entries in the supplemental.js file are incorrect. The UK certainly uses Monday as the first day of the week, as does most of Europe I believe.
and most of Europe is not mentioned in that table
so for those countries, the default of '1' will be used.
The problem we're going to have is that IE uses just 'en' for the locale, I think, so if the major English users have different behavior here, the defaults are going to surprise a large number of users.
My change seems to work fine
My change seems to work fine for both Firefox 2.0.0.11 and IE 7.0