18
18
< meta name ="description " content ="File Upload widget with multiple file selection, drag&drop support, progress bar and preview images for jQuery. Supports cross-domain, chunked and resumable file uploads. Works with any server-side platform (Google App Engine, PHP, Python, Ruby on Rails, Java, etc.) that supports standard HTML form file uploads. ">
19
19
<!-- Bootstrap CSS Toolkit styles -->
20
20
< link rel ="stylesheet " href ="http://blueimp.github.com/cdn/css/bootstrap.min.css ">
21
- < style > body {padding-top : 60px ;}</ style >
21
+ <!-- Generic page styles -->
22
+ < link rel ="stylesheet " href ="css/style.css ">
22
23
<!-- Bootstrap styles for responsive website layout, supporting different screen sizes -->
23
24
< link rel ="stylesheet " href ="http://blueimp.github.com/cdn/css/bootstrap-responsive.min.css ">
24
25
<!-- Bootstrap CSS fixes for IE6 -->
@@ -125,17 +126,6 @@ <h3 class="modal-title"></h3>
125
126
< a class ="btn modal-download " target ="_blank "> < i class ="icon-download "> </ i > Download</ a >
126
127
</ div >
127
128
</ div >
128
- <!-- Error messages for the upload/download templates -->
129
- < script >
130
- var fileUploadErrors = {
131
- maxFileSize : 'File is too big' ,
132
- minFileSize : 'File is too small' ,
133
- acceptFileTypes : 'Filetype not allowed' ,
134
- maxNumberOfFiles : 'Max number of files exceeded' ,
135
- uploadedBytes : 'Uploaded bytes exceed file size' ,
136
- emptyResult : 'Empty file upload result'
137
- } ;
138
- </ script >
139
129
<!-- The template to display files available for upload -->
140
130
< script id ="template-upload " type ="text/x-tmpl ">
141
131
{ % for ( var i = 0 , files = o . files , l = files . length , file = files [ 0 ] ; i < l ; file = files [ ++ i ] ) { % }
@@ -144,22 +134,22 @@ <h3 class="modal-title"></h3>
144
134
< td class = "name" > { %= file . name % } </ td >
145
135
< td class = "size" > { %= o . formatFileSize ( file . size ) % } </ td >
146
136
{ % if ( file . error ) { % }
147
- < td class = "error" colspan = "2" > < span class = "label label-important" > Error </ span > { %= fileUploadErrors [ file . error ] || file . error % } </ td >
137
+ < td class = "error" colspan = "2" > < span class = "label label-important" > { %= locale . fileupload . error % } </ span > { %= locale . fileupload . errors [ file . error ] || file . error % } </ td >
148
138
{ % } else if (o.files.valid && ! i ) { % }
149
139
< td >
150
140
< div class = "progress progress-success progress-striped active" > < div class = "bar" style = "width:0%;" > </ div > </ div >
151
141
</ td >
152
142
< td class = "start" > { % if ( ! o . options . autoUpload ) { % }
153
143
< button class = "btn btn-primary" >
154
- < i class = "icon-upload icon-white" > </ i > Start
144
+ < i class = "icon-upload icon-white" > </ i > { %= locale . fileupload . start % }
155
145
</ button >
156
146
{ % } % } </ td >
157
147
{ % } else { % }
158
148
< td colspan = "2" > </ td >
159
149
{ % } %}
160
150
< td class = "cancel" > { % if ( ! i ) { % }
161
151
< button class = "btn btn-warning" >
162
- < i class = "icon-ban-circle icon-white" > </ i > Cancel
152
+ < i class = "icon-ban-circle icon-white" > </ i > { %= locale . fileupload . cancel % }
163
153
</ button >
164
154
{ % } % } </ td >
165
155
</ tr >
@@ -173,7 +163,7 @@ <h3 class="modal-title"></h3>
173
163
< td > </ td >
174
164
< td class = "name" > { %= file . name % } </ td >
175
165
< td class = "size" > { %= o . formatFileSize ( file . size ) % } </ td >
176
- < td class = "error" colspan = "2" > < span class = "label label-important" > Error </ span > { %= fileUploadErrors [ file . error ] || file . error % } </ td >
166
+ < td class = "error" colspan = "2" > < span class = "label label-important" > { %= locale . fileupload . error % } </ span > { %= locale . fileupload . errors [ file . error ] || file . error % } </ td >
177
167
{ % } else { % }
178
168
< td class = "preview" > { % if ( file . thumbnail_url ) { % }
179
169
< a href = "{%=file.url%}" title = "{%=file.name%}" rel = "gallery" download = "{%=file.name%}" > < img src = "{%=file.thumbnail_url%}" > </ a >
@@ -186,7 +176,7 @@ <h3 class="modal-title"></h3>
186
176
{ % } %}
187
177
< td class = "delete" >
188
178
< button class = "btn btn-danger" data-type = "{%=file.delete_type%}" data-url = "{%=file.delete_url%}" >
189
- < i class = "icon-trash icon-white" > </ i > Delete
179
+ < i class = "icon-trash icon-white" > </ i > { %= locale . fileupload . destroy % }
190
180
</ button >
191
181
< input type = "checkbox" name = "delete" value = "1" >
192
182
</ td >
@@ -213,6 +203,8 @@ <h3 class="modal-title"></h3>
213
203
< script src ="js/jquery.fileupload-ip.js "> </ script >
214
204
<!-- The File Upload user interface plugin -->
215
205
< script src ="js/jquery.fileupload-ui.js "> </ script >
206
+ <!-- The localization script -->
207
+ < script src ="js/locale.js "> </ script >
216
208
<!-- The main application script -->
217
209
< script src ="js/main.js "> </ script >
218
210
<!-- The XDomainRequest Transport is included for cross-domain file deletion for IE8+ -->
0 commit comments