diff --git a/themes/default/public/js/lufi-down.js b/themes/default/public/js/lufi-down.js index 1560d3e..54d0c87 100644 --- a/themes/default/public/js/lufi-down.js +++ b/themes/default/public/js/lufi-down.js @@ -95,7 +95,7 @@ function spawnWebsocket(pa) { if (data.part + 1 === data.total) { var blob = new Blob(a, {type: data.type}); - notify('File downloaded', data.name); + notify(i18n.fileDownloaded, data.name); $('#please-wait').remove(); $('#loading').remove(); diff --git a/themes/default/public/js/lufi-up.js b/themes/default/public/js/lufi-up.js index 2cb1050..8776fde 100644 --- a/themes/default/public/js/lufi-up.js +++ b/themes/default/public/js/lufi-up.js @@ -477,7 +477,7 @@ function updateProgressBar(data) { 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(); var n = $('#name-'+window.fc); diff --git a/themes/default/templates/partial/index.js.ep b/themes/default/templates/partial/index.js.ep index 6fc6d76..525eecd 100644 --- a/themes/default/templates/partial/index.js.ep +++ b/themes/default/templates/partial/index.js.ep @@ -28,6 +28,8 @@ var i18n = { noLimit: '<%= l('No expiration delay') %>', sending: '<%= l('Sending part XX1 of XX2. Please, be patient, the progress bar can take a while to move.') %>', wsProblem: '<%= l('Websocket communication error') %>', + fileDownloaded: '<%= l('File downloaded') %>', + fileUploaded: '<%= l('File uploaded') %>', }; var maxSize = <%= config('max_file_size') || 0 %>;