protected function detectLanguage($acceptLanguage)
    {
        // Parse the accepted encodings.
        $this->languages = array_map('trim', (array) explode(',', $acceptLanguage));

        // Mark this detection routine as run.
        $this->detection['acceptLanguage'] = true;
    }
protected function detectLanguage($acceptLanguage)
    {
        // Parse the accepted encodings.
        $this->languages = array_map('trim', (array) explode(',', $acceptLanguage));

        // Mark this detection routine as run.
        $this->detection['acceptLanguage'] = true;
    }
protected function detectLanguage ( $ acceptLanguage ) { // Parse the accepted encodings. $ this -> languages = array_map ( 'trim' , ( array ) explode ( ',' , $ acceptLanguage ) ) ; // Mark this detection routine as run. $ this -> detection [ 'acceptLanguage' ] = true ; }
Method to detect the accepted languages by the client.

@param   mixed $acceptLanguage The client accept language string to parse.

@return  void

@since   2.0
Method to detect the accepted languages by the client .