diff --git a/app/fileSender.js b/app/fileSender.js index 47955068..7fabc4bf 100644 --- a/app/fileSender.js +++ b/app/fileSender.js @@ -17,7 +17,9 @@ export default class FileSender extends Nanobus { } get progressIndefinite() { - return ['fileSizeProgress', 'notifyUploadDone'].indexOf(this.msg) === -1; + return ( + ['fileSizeProgress', 'notifyUploadEncryptDone'].indexOf(this.msg) === -1 + ); } get sizes() { @@ -75,7 +77,7 @@ export default class FileSender extends Nanobus { try { const result = await this.uploadRequest.result; const time = Date.now() - start; - this.msg = 'notifyUploadDone'; + this.msg = 'notifyUploadEncryptDone'; this.uploadRequest = null; this.progress = [1, 1]; const secretKey = arrayToB64(this.keychain.rawSecret); diff --git a/app/ui/archiveTile.js b/app/ui/archiveTile.js index 56eff232..556b194a 100644 --- a/app/ui/archiveTile.js +++ b/app/ui/archiveTile.js @@ -1,4 +1,4 @@ -/* global Android */ +/* global Android LIMITS */ const html = require('choo/html'); const raw = require('choo/html/raw'); @@ -266,8 +266,8 @@ module.exports.wip = function(state, emit) { onchange="${add}" />
@@ -370,8 +372,8 @@ module.exports.uploading = function(state, emit) { `; @@ -383,6 +385,15 @@ module.exports.uploading = function(state, emit) { }; module.exports.empty = function(state, emit) { + const upsell = state.user.loggedIn + ? '' + : html` +

+ ${state.translate('signInSizeBump', { + size: bytes(LIMITS.MAX_FILE_SIZE, 0) + })} +

+ `; return html` ${state.translate('uploadDropDragMessage')} -
- ${state.translate('uploadDropClickMessage')} +
+ ${state.translate('uploadDropButtonMessage')}
- ${state.translate('addFilesButton')} + ${state.translate('addFilesButtonWithSize', { + size: bytes(state.user.maxSize, 0) + })} + ${upsell} `; diff --git a/app/ui/copyDialog.js b/app/ui/copyDialog.js index 0d2e6485..42f06a91 100644 --- a/app/ui/copyDialog.js +++ b/app/ui/copyDialog.js @@ -7,9 +7,12 @@ module.exports = function(name, url) { -

${state.translate('notifyUploadDone')}

+

+ ${state.translate('notifyUploadEncryptDone')} +

- ${state.translate('copyUrlFormLabelWithName', { filename: name })} + ${state.translate('copyUrlFormLabel')}
+ ${name}

- ${state.translate('copyUrlFormButton')} + ${state.translate('copyUrlFormButtonText')}
`; diff --git a/app/ui/signupDialog.js b/app/ui/signupDialog.js index 0182cfea..cc77a5aa 100644 --- a/app/ui/signupDialog.js +++ b/app/ui/signupDialog.js @@ -9,16 +9,15 @@ module.exports = function(trigger) { let submitting = false; return html` -

- ${state.translate('accountBenefitTitle')} -

-

+

${state.translate('accountBenefitTitle')}

+ @@ -26,7 +25,7 @@ module.exports = function(trigger) { id="email-input" type="text" class="${hidden} border rounded-lg w-full px-2 py-1 h-12 mb-4 text-lg text-grey-darker leading-loose" - placeholder=${state.translate('emailEntryPlaceholder')} /> + placeholder=${state.translate('emailEntryPlaceholderUpdate')} /> [one] 1 file *[other] { $num } files } -totalSize = Total Size: { $size } -copyUrlFormLabelWithName = Copy and share the link to send your file: { $filename } -copyUrlFormButton = Copy to clipboard +totalSize = Total size: { $size } +copyUrlFormLabel = Copy the link to share your file: +copyUrlFormButtonText = Copy link copiedUrl = Copied! deleteFileButton = Delete file sendAnotherFileLink = Send another file @@ -71,13 +70,15 @@ downloadFileSize = ({ $size }) unlockInputLabel = Enter Password unlockInputPlaceholder = Password unlockButtonLabel = Unlock -downloadFileTitle = Download Encrypted File +downloadFilesTitle = Download Files +downloadFileText = {$name} was encrypted with Firefox Send, and will expire after { $timeSpan } or { $downloadCount }. # Firefox Send is a brand name and should not be localized. 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. # Text and title used on the download link/button (indicates an action). downloadButtonLabel = Download downloadNotification = Your download has completed. downloadFinish = Download Complete +downloadFinishText = Try Firefox Send for simple, safe file sharing. # This message is displayed when uploading or downloading a file, e.g. "(1,3 MB of 10 MB)". fileSizeProgress = ({ $partialSize } of { $totalSize }) # Firefox Send is a brand name and should not be localized. @@ -98,10 +99,10 @@ tooManyArchives = { $count -> *[other] Only { $count } archives are allowed. } linkExpiredAlt = Link expired -expiredPageHeader = This link has expired or never existed in the first place! +expiredPageHeaderUpdate = This link has expired. notSupportedHeader = Your browser is not supported. # Firefox Send is a brand name and should not be localized. -notSupportedDetail = Unfortunately this browser does not support the web technology that powers Firefox Send. You’ll need to try another browser. We recommend Firefox! +notSupportedDetailUpdate = Firefox Send will not work with this browser. Send works best with the latest version of Firefox, and will work with the current version of most browsers. notSupportedLink = Why is my browser not supported? notSupportedOutdatedDetail = Unfortunately this version of Firefox does not support the web technology that powers Firefox Send. You’ll need to update your browser. updateFirefox = Update Firefox @@ -121,8 +122,6 @@ deletePopupCancel = Cancel deleteButtonHover = Delete copyUrlHover = Copy URL footerLinkLegal = Legal -# Test Pilot is a proper name and should not be localized. -footerLinkAbout = About Test Pilot footerLinkPrivacy = Privacy footerLinkTerms = Terms footerLinkPrivacyAndTerms = Privacy & Terms @@ -149,9 +148,10 @@ maxPasswordLength = Maximum password length: { $length } passwordSetError = This password could not be set pageHeaderCredits = from the makers of Firefox addFilesButton = Add file(s) +addFilesButtonWithSize = Add file(s) up to { $size } uploadFilesButton = Upload uploadDropDragMessage = Drop files here -uploadDropClickMessage = or click to select a file +uploadDropButtonMessage = or click to select files addPasswordMessage = Protect with password addPasswordLabel = Password: copyUrlLabel = Copy and share this link: @@ -162,15 +162,18 @@ signInLearnMore = Learn more! downloadProgressButton = Downloading... { $progress } downloadMessage2 = Firefox Send lets you share files with a safe, private, and encrypted link that automatically expires to ensure your stuff does not remain online forever. signInEmailEnter = Enter your Email -emailEntryPlaceholder = Email +emailEntryPlaceholder = Enter your email +signInSizeBump = Sign in to send up to {$size} signInContinueMessage = to continue to Firefox Send signInContinueButton = Continue signInMenuOption = Sign in/up +signInNextOption = Continue accountMenuOption = Firefox Account -accountBenefitTitle = With a free Firefox Account with Send you can: -accountBenefitLargeFiles = Upload larger files (up to { $size }) -accountBenefitExpiry = Have more expiry options -accountBenefitSync = Manage your uploads across devices +accountBenefitTitle = Create a Firefox Account or sign in to: +accountBenefitLargeFiles = Share files up to { $size} +accountBenefitExpiry = Share files with more people +accountBenefitExpiryTwo = Keep links active for up to { days } days +accountBenefitSync = Manage shared files from any device manageAccount = Manage Account logOut = Sign Out okButton = Ok