added internationalization
This commit is contained in:
parent
538bf77cbe
commit
b2c4a7f0e0
|
@ -95,7 +95,7 @@ function spawnWebsocket(pa) {
|
||||||
if (data.part + 1 === data.total) {
|
if (data.part + 1 === data.total) {
|
||||||
var blob = new Blob(a, {type: data.type});
|
var blob = new Blob(a, {type: data.type});
|
||||||
|
|
||||||
notify('File downloaded', data.name);
|
notify(i18n.fileDownloaded, data.name);
|
||||||
$('#please-wait').remove();
|
$('#please-wait').remove();
|
||||||
$('#loading').remove();
|
$('#loading').remove();
|
||||||
|
|
||||||
|
|
|
@ -477,7 +477,7 @@ function updateProgressBar(data) {
|
||||||
console.log('Error on WebSocket connection but file has been fully send, so we don\'t care.');
|
console.log('Error on WebSocket connection but file has been fully send, so we don\'t care.');
|
||||||
}
|
}
|
||||||
|
|
||||||
notify('File uploaded', data.name);
|
notify(i18n.fileUploaded, data.name);
|
||||||
|
|
||||||
$('#parts-'+window.fc).remove();
|
$('#parts-'+window.fc).remove();
|
||||||
var n = $('#name-'+window.fc);
|
var n = $('#name-'+window.fc);
|
||||||
|
|
|
@ -28,6 +28,8 @@ var i18n = {
|
||||||
noLimit: '<%= l('No expiration delay') %>',
|
noLimit: '<%= l('No expiration delay') %>',
|
||||||
sending: '<%= l('Sending part XX1 of XX2. Please, be patient, the progress bar can take a while to move.') %>',
|
sending: '<%= l('Sending part XX1 of XX2. Please, be patient, the progress bar can take a while to move.') %>',
|
||||||
wsProblem: '<%= l('Websocket communication error') %>',
|
wsProblem: '<%= l('Websocket communication error') %>',
|
||||||
|
fileDownloaded: '<%= l('File downloaded') %>',
|
||||||
|
fileUploaded: '<%= l('File uploaded') %>',
|
||||||
};
|
};
|
||||||
var maxSize = <%= config('max_file_size') || 0 %>;
|
var maxSize = <%= config('max_file_size') || 0 %>;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue