diff --git a/gulpfile.js b/gulpfile.js index 40aa30a6..e855f72f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -2,7 +2,7 @@ * @Author: prpr * @Date: 2016-07-21 13:38:26 * @Last Modified by: printempw -* @Last Modified time: 2016-12-30 23:03:17 +* @Last Modified time: 2016-12-31 13:14:31 */ var gulp = require('gulp'), @@ -22,7 +22,6 @@ var vendor_js = [ 'bootstrap/dist/js/bootstrap.min.js', 'AdminLTE/dist/js/app.min.js', 'bootstrap-fileinput/js/fileinput.min.js', - 'bootstrap-fileinput/js/locales/zh.js', 'AdminLTE/plugins/datatables/jquery.dataTables.min.js', 'AdminLTE/plugins/datatables/dataTables.bootstrap.min.js', 'iCheck/icheck.min.js', diff --git a/resources/lang/zh_CN/locale.js b/resources/lang/zh_CN/locale.js index 5fd64925..960c08e0 100644 --- a/resources/lang/zh_CN/locale.js +++ b/resources/lang/zh_CN/locale.js @@ -172,4 +172,63 @@ } } }; + + $.fn.fileinputLocales['zh_CN'] = { + fileSingle: '文件', + filePlural: '多个文件', + browseLabel: '选择 …', + removeLabel: '移除', + removeTitle: '清除选中文件', + cancelLabel: '取消', + cancelTitle: '取消进行中的上传', + uploadLabel: '上传', + uploadTitle: '上传选中文件', + msgNo: '没有', + msgNoFilesSelected: '', + msgCancelled: '取消', + msgZoomModalHeading: '详细预览', + msgSizeTooLarge: '文件 "{name}" ({size} KB) 超过了允许大小 {maxSize} KB.', + msgFilesTooLess: '你必须选择最少 {n} {files} 来上传. ', + msgFilesTooMany: '选择的上传文件个数 ({n}) 超出最大文件的限制个数 {m}.', + msgFileNotFound: '文件 "{name}" 未找到!', + msgFileSecured: '安全限制,为了防止读取文件 "{name}".', + msgFileNotReadable: '文件 "{name}" 不可读.', + msgFilePreviewAborted: '取消 "{name}" 的预览.', + msgFilePreviewError: '读取 "{name}" 时出现了一个错误.', + msgInvalidFileType: '不正确的类型 "{name}". 只支持 "{types}" 类型的文件.', + msgInvalidFileExtension: '不正确的文件扩展名 "{name}". 只支持 "{extensions}" 的文件扩展名.', + msgUploadAborted: '该文件上传被中止', + msgUploadThreshold: 'Processing...', + msgValidationError: '验证错误', + msgLoading: '加载第 {index} 文件 共 {files} …', + msgProgress: '加载第 {index} 文件 共 {files} - {name} - {percent}% 完成.', + msgSelected: '{n} {files} 选中', + msgFoldersNotAllowed: '只支持拖拽文件! 跳过 {n} 拖拽的文件夹.', + msgImageWidthSmall: '宽度的图像文件的"{name}"的必须是至少{size}像素.', + msgImageHeightSmall: '图像文件的"{name}"的高度必须至少为{size}像素.', + msgImageWidthLarge: '宽度的图像文件"{name}"不能超过{size}像素.', + msgImageHeightLarge: '图像文件"{name}"的高度不能超过{size}像素.', + msgImageResizeError: '无法获取的图像尺寸调整。', + msgImageResizeException: '错误而调整图像大小。
{errors}
', + dropZoneTitle: '拖拽文件到这里 …', + dropZoneClickTitle: '
(or click to select {files})', + fileActionSettings: { + removeTitle: '删除文件', + uploadTitle: '上传文件', + zoomTitle: '查看详情', + dragTitle: 'Move / Rearrange', + indicatorNewTitle: '没有上传', + indicatorSuccessTitle: '上传', + indicatorErrorTitle: '上传错误', + indicatorLoadingTitle: '上传 ...' + }, + previewZoomButtonTitles: { + prev: 'View previous file', + next: 'View next file', + toggleheader: 'Toggle header', + fullscreen: 'Toggle full screen', + borderless: 'Toggle borderless mode', + close: 'Close detailed preview' + } + }; })(window.jQuery); diff --git a/resources/views/skinlib/upload.tpl b/resources/views/skinlib/upload.tpl index 28a93bd5..1bf91e50 100644 --- a/resources/views/skinlib/upload.tpl +++ b/resources/views/skinlib/upload.tpl @@ -64,7 +64,7 @@ label[for="type-cape"] {
- +