uploadify3.0提示文字换成中文

使用:

1.建一个js文件

2.把如下内容贴入js文件中,当然中文的内容可以改成你需要的

// this file must be in UTF-8 format

var uploadifyLang = new Array();

uploadifyLang['buttonText'] = '选择文件';
uploadifyLang['fileTypeDesc'] = 'All Files (*.*)';
uploadifyLang['replaceMsg1'] = '文件';
uploadifyLang['replaceMsg2'] = '已经在上传队列中';
uploadifyLang['replaceMsg3'] = '是否继续上传?';
uploadifyLang['existsMsg1'] = '文件';
uploadifyLang['existsMsg2'] = '已经上传服务器';
uploadifyLang['existsMsg3'] = '是否继续上传?';
uploadifyLang['errorMsg1'] = '选择的文件不符合要求:';
uploadifyLang['errorMsg2'] = '上传文件的大小总和超过限制';
uploadifyLang['errorMsg3'] = '上传文件的数目超过限制';
uploadifyLang['errorMsg4'] = '文件';
uploadifyLang['errorMsg5'] = '大小超过设定的最大值';
uploadifyLang['errorMsg6'] = '是空的';
uploadifyLang['errorMsg7'] = '不是允许上传的文件类型';
uploadifyLang['errorString1'] = '异常';
uploadifyLang['errorString2'] = 'HTTP 错误';
uploadifyLang['errorString3'] = '上传的URL地址错误';
uploadifyLang['errorString4'] = 'I/O异常';
uploadifyLang['errorString5'] = '安全异常';
uploadifyLang['errorString6'] = '上传已达到极限';
uploadifyLang['errorString7'] = '超过上传限制';
uploadifyLang['errorString8'] = '失败';
uploadifyLang['errorString9'] = '文件找不到';
uploadifyLang['errorString10'] = '验证错误';
uploadifyLang['errorString11'] = '已结束';
uploadifyLang['errorString12'] = '停止';
uploadifyLang['uploadComplete'] = "完成";

 

3.文件用UTF-8格式保存文件


4.设置langFile参数

$("#FileInputId").uploadify({
  langFile:"语言包.js文件的路径",
     ......
});


posted @ 2011-12-16 22:01  罗虎  阅读(3814)  评论(2编辑  收藏  举报