diff --git a/app/ui/archiveTile.js b/app/ui/archiveTile.js index 7ef0063c..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'); @@ -265,12 +265,9 @@ module.exports.wip = function(state, emit) { onblur="${blur}" onchange="${add}" /> - - - ${state.translate('signInSizeBump', { size: bytes(1000000) })} - + ${upsell} `; diff --git a/app/ui/copyDialog.js b/app/ui/copyDialog.js index 93e4efcc..42f06a91 100644 --- a/app/ui/copyDialog.js +++ b/app/ui/copyDialog.js @@ -7,7 +7,9 @@ module.exports = function(name, url) { -

${state.translate('notifyUploadDone')}

+

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

${state.translate('copyUrlFormLabel')}
${name} diff --git a/app/utils.js b/app/utils.js index 4933a808..4f2fa648 100644 --- a/app/utils.js +++ b/app/utils.js @@ -57,7 +57,7 @@ const LOCALIZE_NUMBERS = !!( ); const UNITS = ['B', 'kB', 'MB', 'GB']; -function bytes(num) { +function bytes(num, decimalDigits = 1) { if (num < 1) { return '0B'; } @@ -68,8 +68,8 @@ function bytes(num) { try { const locale = document.querySelector('html').lang; nStr = n.toLocaleString(locale, { - minimumFractionDigits: 1, - maximumFractionDigits: 1 + minimumFractionDigits: decimalDigits, + maximumFractionDigits: decimalDigits }); } catch (e) { // fall through diff --git a/public/locales/en-US/send.ftl b/public/locales/en-US/send.ftl index b75b542f..e649e94a 100644 --- a/public/locales/en-US/send.ftl +++ b/public/locales/en-US/send.ftl @@ -147,6 +147,7 @@ maxPasswordLength = Maximum password length: { $length } # A short status message shown when there was an error setting the password 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