private function isHandlingLanguage($code, $allLanguages)
    {
        if ($code == $this->baselanguage) {
            return false;
        }

        if ($allLanguages) {
            return true;
        }

        return in_array(substr($code, 0, 2), $this->languages);
    }
private function isHandlingLanguage($code, $allLanguages)
    {
        if ($code == $this->baselanguage) {
            return false;
        }

        if ($allLanguages) {
            return true;
        }

        return in_array(substr($code, 0, 2), $this->languages);
    }
private function isHandlingLanguage ( $ code , $ allLanguages ) { if ( $ code == $ this -> baselanguage ) { return false ; } if ( $ allLanguages ) { return true ; } return in_array ( substr ( $ code , 0 , 2 ) , $ this -> languages ) ; }
Check if we want to handle the given language code.

@param string $code         The language code.

@param bool   $allLanguages Flag telling if all languages shall be handled.

@return bool
Check if we want to handle the given language code .