public function setCurrentLanguage($language)
    {
        if (!$this->isAvailable($language)) {
            return false;
        }

        $this->session->put('language', $language);

        $this->setLanguage($language);

        return true;
    }
public function setCurrentLanguage($language)
    {
        if (!$this->isAvailable($language)) {
            return false;
        }

        $this->session->put('language', $language);

        $this->setLanguage($language);

        return true;
    }
public function setCurrentLanguage ( $ language ) { if ( ! $ this -> isAvailable ( $ language ) ) { return false ; } $ this -> session -> put ( 'language' , $ language ) ; $ this -> setLanguage ( $ language ) ; return true ; }
Set the current language

@param  string $language
@return bool
Set the current language