detection of language

detection of language based on $_SERVER['HTTP_ACCEPT_LANGUAGE']