Question

I want to get the preferred language of my users. I tried

$this->getRequest()->getPreferredLanguage()

However, it returns poor results:

How can I mix some parameters like IP, PreferredLanguage and other parameters?

Pas de solution correcte

Autres conseils

Maybe you just need something like

$this->getRequest()->getLocale()

instead of the getPreferredLanguage() method?

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top