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;
    }