1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 09:23:13 +01:00

Finalize text changes

This commit is contained in:
Brett Sun 2015-12-10 18:56:19 +01:00
parent 90c75ca4c5
commit 482fa51e9e
3 changed files with 10 additions and 15 deletions

View File

@ -38,7 +38,7 @@ let FileDragAndDropErrorDialog = React.createClass({
return (
<div className='file-drag-and-drop-error'>
<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)}
</div>
);

View File

@ -95,10 +95,9 @@ import { getLangText } from '../utils/lang_utils';
const ErrorClasses = {
'upload': {
'requestTimeTooSkewed': {
'prettifiedText': getLangText('Check your time and date preferences. Sometimes being off by even ' +
'a few minutes from our servers can cause a glitch preventing your ' +
'upload. For a quick fix, make sure that you have the “set date and ' +
'time automatically” option selected.'),
'prettifiedText': getLangText('Check your time and date preferences and select "set date and time ' +
'automatically." Being off by a few minutes from our servers can ' +
'prevent your upload.'),
'test': {
'xhr': {
'response': 'RequestTimeTooSkewed'
@ -112,20 +111,16 @@ const ErrorClasses = {
},
// Fallback error tips
'slowConnection': {
'prettifiedText': getLangText('Are you on a slow or unstable network? Uploading large files requires a fast Internet connection.')
'largeFileSize': {
'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 doesnt seem to progress at all, try restarting the process.')
},
'tryDifferentBrowser': {
'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': {
'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 {
constructor() {
const { upload: { largeFileSize, slowConnection, tryDifferentBrowser } } = ErrorClasses;
const { upload: { largeFileSize, tryDifferentBrowser } } = ErrorClasses;
this.errorQueues = {
'upload': {
queue: [slowConnection, tryDifferentBrowser, largeFileSize],
queue: [largeFileSize, tryDifferentBrowser],
loop: true
}
};