move translation file from app.js to locale.js
This commit is contained in:
parent
2250b00c0a
commit
b861dbc0b5
@ -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',
|
||||
|
@ -172,4 +172,63 @@
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.fileinputLocales['zh_CN'] = {
|
||||
fileSingle: '文件',
|
||||
filePlural: '多个文件',
|
||||
browseLabel: '选择 …',
|
||||
removeLabel: '移除',
|
||||
removeTitle: '清除选中文件',
|
||||
cancelLabel: '取消',
|
||||
cancelTitle: '取消进行中的上传',
|
||||
uploadLabel: '上传',
|
||||
uploadTitle: '上传选中文件',
|
||||
msgNo: '没有',
|
||||
msgNoFilesSelected: '',
|
||||
msgCancelled: '取消',
|
||||
msgZoomModalHeading: '详细预览',
|
||||
msgSizeTooLarge: '文件 "{name}" (<b>{size} KB</b>) 超过了允许大小 <b>{maxSize} KB</b>.',
|
||||
msgFilesTooLess: '你必须选择最少 <b>{n}</b> {files} 来上传. ',
|
||||
msgFilesTooMany: '选择的上传文件个数 <b>({n})</b> 超出最大文件的限制个数 <b>{m}</b>.',
|
||||
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: '错误而调整图像大小。<pre>{errors}</pre>',
|
||||
dropZoneTitle: '拖拽文件到这里 …',
|
||||
dropZoneClickTitle: '<br>(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);
|
||||
|
@ -64,7 +64,7 @@ label[for="type-cape"] {
|
||||
|
||||
<div class="form-group">
|
||||
<label for="file">{{ trans('skinlib.upload.select-file') }}</label>
|
||||
<input id="file" type="file" data-show-upload="false" data-language="zh" class="file" accept="image/png" />
|
||||
<input id="file" type="file" data-show-upload="false" data-language="{{ config('app.locale') }}" class="file" accept="image/png" />
|
||||
</div>
|
||||
|
||||
<div class="callout callout-info" id="msg" style="display: none;">
|
||||
|
Loading…
Reference in New Issue
Block a user