Why does Symfony ignore the browsers locale-setting (HTTP-Request Accept-Language Header)?
问题 i am currently trying to enable the translator in Symfony 2.0. Symfony is ignoring the Accept-Language Header variable and is using default_locale (and when that is not defined the fallback). My request looks like: Accept-Language de-DE,de;q=0.8,en-us;q=0.5,en;q=0.3 but $this->getRequest()->getLocale(); gets me en with that same request. Can somebody tell me what may be wrong? Yes, I have tried to clear the cache and deleting my cookies (omnomnom) :) 回答1: This is the expected behaviour.