/** * Reset the translation object with a new language. * @param $lang_name the new language to use */ public static function reset($lang_name) { self::$lang_name = $lang_name; self::$lang_files = array(); self::$translates = array(); foreach (self::$path_list as $path) { self::loadLang($path); } }