On the user's first visit, default language from HTTP_ACCEPT_LANGUAGE
author Chris Han
()
committer Chris Han
()
commit dc0bda47f80a1516ecdf2ae9e2d16cacf21d60aa
tree 2b903b563330afa9a458170ec253961b2355dd0d
parent efcc3783e8bc2d225795f2372b18cd20e639eeeb
On the user's first visit, default language from HTTP_ACCEPT_LANGUAGE

On the very first visit when no language preference cookie is set,
attempt to guess what the user wants from their HTTP_ACCEPT_LANGUAGE
setting from their browser. (Their OS language)
This will attempt to match the preferences in the order they're
specified by the browser, which should be the user's order of
preference.
For full language + country code preferences (eg en_US) it
will attempt to match the whole thing. For just language preferences
(eg en) it will match the first locale with that same language code.
include/Resource.class.php
index.php
comments