08-06-2023, 04:56 PM
Following Symfony2 guide about [translation][1] i found that inferred locale from http headers (stored in `$this->get('session')->getLocale()`) is wrong (sent **it**, inferred **en**):
> Host localhost User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64;
> rv:7.0.1) Gecko/20100101 Firefox/7.0.1
> Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language it-it,it;q=0.8,en-us;q=0.5,en;q=0.3
Is this a normal behaviour? Or should i set something in order to get localization working out of the box?
[1]:
> Host localhost User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64;
> rv:7.0.1) Gecko/20100101 Firefox/7.0.1
> Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language it-it,it;q=0.8,en-us;q=0.5,en;q=0.3
Is this a normal behaviour? Or should i set something in order to get localization working out of the box?
[1]:
[To see links please register here]