1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-28 16:48:04 +02:00

Change uploader error text

This commit is contained in:
Brett Sun 2015-12-09 17:08:47 +01:00
parent e7cf9a44a0
commit 90c75ca4c5
2 changed files with 16 additions and 9 deletions

View File

@ -95,11 +95,10 @@ import { getLangText } from '../utils/lang_utils';
const ErrorClasses = { const ErrorClasses = {
'upload': { 'upload': {
'requestTimeTooSkewed': { 'requestTimeTooSkewed': {
'prettifiedText': getLangText('It appears that the time set on your computer is too ' + 'prettifiedText': getLangText('Check your time and date preferences. Sometimes being off by even ' +
'inaccurate compared to your current local time. As a security ' + 'a few minutes from our servers can cause a glitch preventing your ' +
'measure, we check to make sure that our users are not falsifying ' + 'upload. For a quick fix, make sure that you have the “set date and ' +
"their registration times. Please synchronize your computer's " + 'time automatically” option selected.'),
'clock and try again.'),
'test': { 'test': {
'xhr': { 'xhr': {
'response': 'RequestTimeTooSkewed' 'response': 'RequestTimeTooSkewed'
@ -107,7 +106,7 @@ const ErrorClasses = {
} }
}, },
'chunkSignatureError': { 'chunkSignatureError': {
'prettifiedText': getLangText('We are experiencing some problems with uploads at the moment and ' + 'prettifiedText': getLangText("We're experiencing some problems with uploads at the moment and " +
'are working to resolve them. Please try again in a few hours.'), 'are working to resolve them. Please try again in a few hours.'),
'test': 'Problem signing the chunk' 'test': 'Problem signing the chunk'
}, },
@ -117,7 +116,15 @@ const ErrorClasses = {
'prettifiedText': getLangText('Are you on a slow or unstable network? Uploading large files requires a fast Internet connection.') 'prettifiedText': getLangText('Are you on a slow or unstable network? Uploading large files requires a fast Internet connection.')
}, },
'tryDifferentBrowser': { 'tryDifferentBrowser': {
'prettifiedText': getLangText("We still can't seem to upload your file. Maybe try another browser?") 'prettifiedText': getLangText("We're still having trouble uploading your file. It might be your " +
"browser; try a different browser or make sure youre using the " +
'latest version.')
},
'largeFileSize': {
'prettifiedText': getLangText('We handle files up to 25GB but your Internet connection may not. ' +
'If your file is large and your bandwidth is limited, it may take ' +
'some time to complete. If your upload doesnt seem to be in ' +
'progress at all, try restarting the process.')
}, },
'contactUs': { 'contactUs': {
'prettifiedText': getLangText("We're having a really hard time with your upload. Please contact us for more help.") 'prettifiedText': getLangText("We're having a really hard time with your upload. Please contact us for more help.")

View File

@ -8,11 +8,11 @@ import { ErrorClasses } from '../constants/error_constants.js';
class ErrorQueueStore { class ErrorQueueStore {
constructor() { constructor() {
const { upload: { slowConnection, tryDifferentBrowser } } = ErrorClasses; const { upload: { largeFileSize, slowConnection, tryDifferentBrowser } } = ErrorClasses;
this.errorQueues = { this.errorQueues = {
'upload': { 'upload': {
queue: [slowConnection, tryDifferentBrowser], queue: [slowConnection, tryDifferentBrowser, largeFileSize],
loop: true loop: true
} }
}; };