/** * 重置所有设置 * * 将会清理掉所有已读取的语言包 * * @param null $project 指定项目,不设置则清理全部 */ public static function reset($project = null) { if ($project) { unset(self::$is_setup[$project]); unset(self::$lang[$project]); } else { self::$is_setup = array(); self::$lang = array(); self::$accept_language = null; } }