Langue du navigateur : ne prend en compte que la 1er langue déclaré

bug relatif à #908 (closed) et #910 (closed)

Actuellement

Actuellement, seul la 1er langue déclarée dans l'entête HTTP Accept-Language est pris en compte :

curl -i -H "Accept-Language: fr" http://localhost:8282/
     HTTP/1.1 301 Moved Permanently
     Location: http://localhost:8282/fr/

curl -i -H "Accept-Language: de,fr-CA;q=0.9" http://localhost:8282/
     HTTP/1.1 301 Moved Permanently
     Location: http://localhost:8282/en/

curl -i -H "Accept-Language: de,fr-CA;q=0.9,fr;q=0.8" http://localhost:8282/
     HTTP/1.1 301 Moved Permanently
     Location: http://localhost:8282/en/

Comportement attendu

Utiliser comme langue de l'application une des langues de la liste présente dans l'entête HTTP Accept-Language et ne pas regarder uniquement la 1er langue déclarée :

curl -i -H "Accept-Language: fr" http://localhost:8282/
     HTTP/1.1 301 Moved Permanently
     Location: http://localhost:8282/fr/

curl -i -H "Accept-Language: de,fr-CA;q=0.9" http://localhost:8282/
     HTTP/1.1 301 Moved Permanently
     Location: http://localhost:8282/fr/

curl -i -H "Accept-Language: de,fr-CA;q=0.9,fr;q=0.8" http://localhost:8282/
     HTTP/1.1 301 Moved Permanently
     Location: http://localhost:8282/fr/