mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Finalize text changes
This commit is contained in:
parent
90c75ca4c5
commit
482fa51e9e
@ -38,7 +38,7 @@ let FileDragAndDropErrorDialog = React.createClass({
|
|||||||
return (
|
return (
|
||||||
<div className='file-drag-and-drop-error'>
|
<div className='file-drag-and-drop-error'>
|
||||||
<h4>Let us help you</h4>
|
<h4>Let us help you</h4>
|
||||||
<p>{getLangText('Still having problems? Send us a message!')}</p>
|
<p>{getLangText('Still having problems? Send us a message.')}</p>
|
||||||
{this.getRetryButton('Contact us', true)}
|
{this.getRetryButton('Contact us', true)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -95,10 +95,9 @@ import { getLangText } from '../utils/lang_utils';
|
|||||||
const ErrorClasses = {
|
const ErrorClasses = {
|
||||||
'upload': {
|
'upload': {
|
||||||
'requestTimeTooSkewed': {
|
'requestTimeTooSkewed': {
|
||||||
'prettifiedText': getLangText('Check your time and date preferences. Sometimes being off by even ' +
|
'prettifiedText': getLangText('Check your time and date preferences and select "set date and time ' +
|
||||||
'a few minutes from our servers can cause a glitch preventing your ' +
|
'automatically." Being off by a few minutes from our servers can ' +
|
||||||
'upload. For a quick fix, make sure that you have the “set date and ' +
|
'prevent your upload.'),
|
||||||
'time automatically” option selected.'),
|
|
||||||
'test': {
|
'test': {
|
||||||
'xhr': {
|
'xhr': {
|
||||||
'response': 'RequestTimeTooSkewed'
|
'response': 'RequestTimeTooSkewed'
|
||||||
@ -112,20 +111,16 @@ const ErrorClasses = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Fallback error tips
|
// Fallback error tips
|
||||||
'slowConnection': {
|
'largeFileSize': {
|
||||||
'prettifiedText': getLangText('Are you on a slow or unstable network? Uploading large files requires a fast Internet connection.')
|
'prettifiedText': getLangText('We handle files up to 25GB but your Internet connection may not. With ' +
|
||||||
|
'large files and limited bandwith, it may take some time to complete. If ' +
|
||||||
|
'it doesn’t seem to progress at all, try restarting the process.')
|
||||||
},
|
},
|
||||||
'tryDifferentBrowser': {
|
'tryDifferentBrowser': {
|
||||||
'prettifiedText': getLangText("We're still having trouble uploading your file. It might be your " +
|
'prettifiedText': getLangText("We're still having trouble uploading your file. It might be your " +
|
||||||
"browser; try a different browser or make sure you’re using the " +
|
"browser; try a different browser or make sure you’re using the " +
|
||||||
'latest version.')
|
'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 doesn’t 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.")
|
||||||
},
|
},
|
||||||
|
@ -8,11 +8,11 @@ import { ErrorClasses } from '../constants/error_constants.js';
|
|||||||
|
|
||||||
class ErrorQueueStore {
|
class ErrorQueueStore {
|
||||||
constructor() {
|
constructor() {
|
||||||
const { upload: { largeFileSize, slowConnection, tryDifferentBrowser } } = ErrorClasses;
|
const { upload: { largeFileSize, tryDifferentBrowser } } = ErrorClasses;
|
||||||
|
|
||||||
this.errorQueues = {
|
this.errorQueues = {
|
||||||
'upload': {
|
'upload': {
|
||||||
queue: [slowConnection, tryDifferentBrowser, largeFileSize],
|
queue: [largeFileSize, tryDifferentBrowser],
|
||||||
loop: true
|
loop: true
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user