#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 10 years ago by
comment:2 Changed 10 years ago by
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 10 years ago by
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 10 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
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 10 years ago by
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.
I think that's correct behavior, given that you didn't specify it in dojoConfig. what is dojo.locale?