This commit is contained in:
coderkun 2015-04-27 16:42:05 +02:00
commit ffa705005e
4149 changed files with 1180197 additions and 16 deletions

View file

@ -186,6 +186,22 @@
}
/**
* Get languages from browser setting.
*
* @return string Browser setting for accepted languages.
*/
public function getBrowserLanguages()
{
if(array_key_exists('HTTP_ACCEPT_LANGUAGE', $_SERVER)) {
return $_SERVER['HTTP_ACCEPT_LANGUAGE'];
}
return null;
}
/**
* Add a URL-route.
*