public function setCurrentLanguage($language)
    {
        if (empty(self::$supported_languages[$language])) {
            return false;
        }
        
        self::$current_language = $language;
        
        session()->vars()[self::$context . "_language"] = $language;
        
        setcookie(self::$context . "_language", $language, time() + 365 * 24 * 3600);
        
        return true;
    }