Luc Didry c2e926
% # vim:set sts=4 sw=4 ts=4 ft=javascript expandtab:
Luc Didry 25ab7e
var ws_url = '<%= url_for('download')->to_abs().stash('file') %>';
Luc Didry c2e926
var i18n   = {
Luc Didry 659e43
    aborted1:       '<%= l('Download aborted.') %>',
Luc Didry 659e43
    aborted2:       '<%= l('Click here to refresh the page and restart the download.') %>',
Luc Didry 659e43
    badkey:         '<%= l('It seems that the key in your URL is incorrect. Please, verify your URL.') %>',
Luc Didry 659e43
    confirmExit:    '<%= l('You have attempted to leave this page. The download will be canceled. Are you sure?') %>',
Luc Didry 659e43
    download:       '<%= l('Get the file') %>',
Luc Didry 25cba3
    fileDownloaded: '<%= l('File downloaded') %>',
Luc Didry 659e43
    loading:        '<%= l('Asking for file part XX1 of %1', stash('nbslices')) %>',
Luc Didry 659e43
    nokey:          '<%= l('You don\'t seem to have a key in your URL. You won\'t be able to decrypt the file. Download canceled.') %>',
Luc Didry 074729
    showZipContent: '<%= l('Show zip content') %>',
Luc Didry 074729
    zipContent:     '<%= l('Zip content:') %>'
Luc Didry c2e926
}