Mercurial > SimpleWebPresenter
diff accept-language.inc @ 53:2e6ba7259281
Merge
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Thu, 11 Oct 2012 00:54:54 +0200 |
| parents | 3898353ed1d8 2cfea6e84694 |
| children | f938b292f046 |
line wrap: on
line diff
--- a/accept-language.inc Thu Oct 11 00:48:46 2012 +0200 +++ b/accept-language.inc Thu Oct 11 00:54:54 2012 +0200 @@ -1,7 +1,23 @@ <?php +<<<<<<< local class Language { function acceptedLanguages() { $langs = array(); +======= +/** + * @file + * Functionality for determining language use + */ + +/** + * Extracts the accepted languages from the GET query, sorted by + * preference(q-value). + * + * @return associative array of language codes with q value + */ +function acceptedLanguages() { + $langs = array(); +>>>>>>> other if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { // break up string into pieces (languages and q factors)
