I\'m trying to build multilangual site.
I use this piece of code to detect users language. If you havent chosen a language, it will include your language file based
You can use: Locale::acceptFromHttp().
Tries to find locale that can satisfy the language list that is requested by the HTTP "Accept-Language" header.