Chrome problem detecting regional settings

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
9/11/2011 3:13:31 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Chrome problem detecting regional settings

I had some fun with date formats a while back in this thread

http://www.mojoportal.com/Forums/Thread.aspx?thread=8605&mid=34&pageid=5&ItemID=5

in which Joe pointed out that mojoPortal shows dates in the format suiting the browser. Recently however I've had a problem where the latest version of Chrome show US dates regardless.

In the "under the bonnet" section of Chrome's options, I have it set to "English (United Kingdom)" for both display and spell-checking. Yet dates still show in US format.

I sniffed the http requests and found that while IE sends this: 

Accept-Language: en-gb

Chrome sends this:

Accept-Language: en-US,en;q=0.8,en-GB;q=0.6

Is this the information used by mojoPortal?

In this case, since my users insist on British dates (and on using Chrome!) I have had to force the site like this in user.config:

<add key="site1culture" value="en-GB" />

<add key="UseCultureOverride" value="true" /> 

Is this a bug in Chrome? Do I have any other options? Worth a wee note on this page about language settings?

9/12/2011 2:20:35 PM
Gravatar
Total Posts 18439

Re: Chrome problem detecting regional settings

 

Chrome sends this:

Accept-Language: en-US,en;q=0.8,en-GB;q=0.6

browsers will let you set multiple languages, in your case it looks to me like you have both en-US and en-GB but en-US is higher in the list so it uses that instead of en-GB as the most preferred language. It may not be obvious in Chrome but the list is sortable you can drag en-GB to the top of the list and it will then be seen as your preferred language and you should see it reverse the order in the accept header it sends, the language on top of the list will always be first.

Hope that helps,

Joe

9/13/2011 12:31:06 AM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: Chrome problem detecting regional settings

Thanks Joe - it is true, my language settings had "English (United States)" top, then "English", and then "English (United Kingdom)".  And yes I see now these can be re-ordered by dragging. and yes, this does ensure the dates display in the correct format.

The silly thing is (re Chrome) that I had En-GB showing "Google Chrome is displayed in this language" and "This language is used for spell-checking", so as a user I felt there was nothing more I could do. I would have expected it to use that setting and send it as priority item in headers. It was not clear that re-ordering these items was possible or would make any difference to anything.

This is a Google issue not a mojoPortal one, but worth noting here because it has tripped us up and several users already. In effect we have had to hard wire the site to en-GB because of this (in user.config as shown below).

cheers

Crispin

 

 

9/13/2011 7:44:37 AM
Gravatar
Total Posts 18439

Re: Chrome problem detecting regional settings

I've updated the article Setting Browser Language Preferences with some notes about Chrome.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.