From 7449d1c35129be23152f983ae58a61e51874813f Mon Sep 17 00:00:00 2001
From: John Gruen
Date: Fri, 22 Feb 2019 16:42:08 +0100
Subject: [PATCH 1/2] update strings
---
app/fileSender.js | 6 ++++--
app/ui/archiveTile.js | 38 ++++++++++++++++++++++++-----------
app/ui/copyDialog.js | 7 ++++---
app/ui/download.js | 17 ++++++++++++----
app/ui/notFound.js | 15 ++++++++------
app/ui/signupDialog.js | 21 +++++++++----------
app/ui/unsupported.js | 2 +-
public/locales/en-US/send.ftl | 38 ++++++++++++++++++-----------------
8 files changed, 87 insertions(+), 57 deletions(-)
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..7ef0063c 100644
--- a/app/ui/archiveTile.js
+++ b/app/ui/archiveTile.js
@@ -265,9 +265,12 @@ module.exports.wip = function(state, emit) {
onblur="${blur}"
onchange="${add}"
/>
-
+ ${state.translate('addFilesButtonWithSize', {
+ size: bytes(1000000)
+ })}
+
- ${state.translate('totalSize', { size: bytes(state.archive.size) })}
+ ${state.translate('totalSizeUpdate', {
+ size: bytes(state.archive.size)
+ })}
@@ -370,8 +377,8 @@ module.exports.uploading = function(state, emit) {
`;
@@ -398,8 +405,8 @@ module.exports.empty = function(state, emit) {
>
${state.translate('uploadDropDragMessage')}
-
- ${state.translate('uploadDropClickMessage')}
+
+ ${state.translate('uploadDropButtonMessage')}
- ${state.translate('addFilesButton')}
+ ${state.translate('addFilesButtonWithSize', {
+ size: bytes(1000000)
+ })}
+
+ ${state.translate('signInSizeBump', { size: bytes(1000000) })}
+
`;
diff --git a/app/ui/copyDialog.js b/app/ui/copyDialog.js
index 0d2e6485..93e4efcc 100644
--- a/app/ui/copyDialog.js
+++ b/app/ui/copyDialog.js
@@ -9,7 +9,8 @@ module.exports = function(name, url) {
>
${state.translate('notifyUploadDone')}
- ${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('accountBenefitLargeFiles', {
- size: bytes(LIMITS.MAX_FILE_SIZE)
- })}
- - ${state.translate('accountBenefitExpiry')}
- - ${state.translate('accountBenefitSync')}
-
-
+ ${state.translate('accountBenefitTitle')}
+
+ - ${state.translate('accountBenefitLargeFiles', {
+ size: bytes(LIMITS.MAX_FILE_SIZE)
+ })}
+ - ${state.translate('accountBenefitExpiry')}
+ - ${state.translate('accountBenefitExpiryTwo')}
+ - ${state.translate('accountBenefitSync')}
+