public static function setLanguage($language)
    {
        if (in_array($language, self::$languages)) {
            self::$language = $language;
            self::$strings = self::loadLanguage();
            return true;
        }

        return false;
    }
public static function setLanguage($language)
    {
        if (in_array($language, self::$languages)) {
            self::$language = $language;
            self::$strings = self::loadLanguage();
            return true;
        }

        return false;
    }
public static function setLanguage ( $ language ) { if ( in_array ( $ language , self :: $ languages ) ) { self :: $ language = $ language ; self :: $ strings = self :: loadLanguage ( ) ; return true ; } return false ; }
Try and load a language, and if successful, set it for use throughout the system.

@param $language

@return bool
Try and load a language and if successful set it for use throughout the system .