Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for HTTP Accept-Language
Allows site to auto-detect language based on HTTP Accept-Language header. Uses a lightly modified version of the parser from http://www.thefutureoftheweb.com/blog/use-accept-language-header. Also cleans up unnecessary direct use of $_COOKIE and $_GET, which are both covered by $_REQUEST, and uses a single language fallback instead of a default + fallback.
- Loading branch information
Showing
1 changed file
with
41 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters