finished l10n
This commit is contained in:
parent
7ed30f497b
commit
8c4cb90b3a
@ -47,8 +47,11 @@ $(document).ready(function() {
|
||||
//on complete
|
||||
if (percent === 1) {
|
||||
fileReceiver.removeAllListeners('progress');
|
||||
notify('Your download has finished.');
|
||||
$('.title').html('Download Complete');
|
||||
document.l10n.formatValues('downloadNotification', 'downloadFinish')
|
||||
.then(translated => {
|
||||
notify(translated[0]);
|
||||
$('.title').html(translated[1]);
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
@ -73,9 +76,10 @@ $(document).ready(function() {
|
||||
fileReceiver
|
||||
.download()
|
||||
.catch(() => {
|
||||
$('.title').text(
|
||||
'This link has expired or never existed in the first place.'
|
||||
);
|
||||
document.l10n.formatValue('expiredPageHeader')
|
||||
.then(translated => {
|
||||
$('.title').text(translated);
|
||||
})
|
||||
$('#download-btn').hide();
|
||||
$('#expired-img').show();
|
||||
console.log('The file has expired, or has already been deleted.');
|
||||
|
@ -45,6 +45,8 @@ downloadFileSize = ({ $size })
|
||||
downloadMessage = Your friend is sending you a file with Firefox Send, a service that allows you to share files with a safe, private, and encrypted link that automatically expires to ensure your stuff does not remain online forever.
|
||||
downloadButtonLabel = Download
|
||||
.title = {downloadButtonLabel}
|
||||
downloadNotification = Your download has completed.
|
||||
downloadFinish = Download Complete
|
||||
|
||||
sendYourFilesLink = Try Firefox Send
|
||||
.title = {sendYourFilesLink}
|
||||
|
Loading…
Reference in New Issue
Block a user