示例#1
0
文件: output.php 项目: pihizi/qf
 static function &T($str, $args = NULL, $options = NULL)
 {
     if (is_array($str)) {
         foreach ($str as &$s) {
             $s = T($s, $args, $options);
         }
         return $str;
     }
     //如果有I18N模块反调用I18N
     if (class_exists('I18N', false)) {
         $str = I18N::convert($str, $options);
     }
     if ($args) {
         return stripcslashes(strtr($str, $args));
     } else {
         return stripcslashes($str);
     }
 }