contao/import — Issue #2361: Language detection may fail
Author: importer
Created: 2011-11-29 19:26:26+00:00
State: open
Labels: Defect, frontend

Hi,

regarding to RFC 2616 section 14.4 the header "accept-language" may contain a set of languages and associated quality value that are preferred as a response to the request.
Contao use only the primary language setting and therefore the language detection may fail and a "wrong" language was returned.

You can reproduce this if you select in your browser spanish as prinary lanuage and french as secondary.
Then create a web site in two languages. First in french and second in english wich was defined as fallback.
Cause only the primary lanuage was used, the server response the english site, even if a french version is available.

--- _Originally created by styx7 on July 27th, 2010, at 07:27pm (ID 2361)_