Ticket #155 (new Improvement)
Opened 3 years ago
Detect language and location preferences from HTTP Accept header sent by browser
| Reported by: | js@… | Owned by: | |
|---|---|---|---|
| Priority: | Minor | Milestone: | |
| Component: | Version: | 1.2 | |
| Keywords: | Cc: |
Description
[jira2trac import : issue created on May 23, 2005 3:13:00 PM CEST http://issues.cocoondev.org/browse/DSY-155 ]
It would be nice if the language and location preference would be
defaulted from the HTTP Accept headers that the browsers sends. E.g. if in
the browser you have German(Germany) and English(US) configured as your
preference and it therefore sends:
Accept-Language: de-de,de;q=0.8,en;q=0.5,en-us;q=0.3,
Daisy should automatically try to satisfy my language preference of:
1. German (Germany)
2. German (any)
3. English (any)
4. English (US)
for the menu language and date formats etc. You could still change it in
the Daisy menu if desired to change the locale stored in a cookie.
For a defintion of the Accept-Language header see
http://www.w3.org/Protocols/rfc2616/rfc2616.html
There may already be code in version 1.3M1 that does this, if not this
feature would even be more useful with the (language) variants.