Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#14673 closed defect (invalid)

Undefined locale in FF9 en-GB

Reported by: Maastermedia Owned by: Adam Peller
Priority: undecided Milestone: tbd
Component: Internationalization Version: 1.7.1
Keywords: Cc:
Blocked By: Blocking:

Description

If dojoConfig has no locale specified, Dojo should set it from browser. My Firefox 9 has navigator.language set to "en-GB", however dojo.config.locale is undefined.

Change History (6)

comment:1 Changed 7 years ago by Adam Peller

I think that's correct behavior, given that you didn't specify it in dojoConfig. what is dojo.locale?

comment:2 Changed 7 years ago by bill

IIRC dojo/_base/sniff.js has a line setting dojo.config.locale, but I didn't carry it over into dojo/sniff since it isn't part of browser sniffing.

comment:3 Changed 7 years ago by Maastermedia

Yes, dojo.locale works as expected. Then I think there will be some "after bug reports" for this. For instance dijit/form/DateTextBox uses fullYear constraint which won't work if dojo.config.locale is undefined.

comment:4 Changed 7 years ago by Adam Peller

Resolution: invalid
Status: newclosed

Yeah, if code is accessing dojo.config.locale directly to determine locale, then it's a bug. I don't see that in DateTextBox?, but do follow up in a separate ticket if you do.

comment:5 Changed 7 years ago by Maastermedia

Just as a side note (I still do not properly understand all the dtk) IE on the other hand has dojo.config.locale set to something by default (en-us, sl in my case) or whatever locale the browser is set to.

comment:6 Changed 7 years ago by Maastermedia

My bad ... Never mind my notes on IE:)

Note: See TracTickets for help on using tickets.