add first translations

This commit is contained in:
Mario
2020-12-14 08:51:31 +01:00
parent 3d2a18c1db
commit 7d1d2409e4
20 changed files with 344 additions and 103 deletions
+10 -9
View File
@@ -6,31 +6,32 @@ import { withRouter } from 'react-router-dom';
import Button from '@material-ui/core/Button';
import Typography from '@material-ui/core/Typography';
import * as Blockly from 'blockly'
class NotFound extends Component {
render() {
return (
<div>
<Breadcrumbs content={[{link: this.props.location.pathname, title: 'Error'}]}/>
<Typography variant='h4' style={{marginBottom: '5px'}}>Die von Ihnen angeforderte Seite kann nicht gefunden werden.</Typography>
<Typography variant='body1'>Die gesuchte Seite wurde möglicherweise entfernt, ihr Name wurde geändert oder sie ist vorübergehend nicht verfügbar.</Typography>
<Breadcrumbs content={[{ link: this.props.location.pathname, title: 'Error' }]} />
<Typography variant='h4' style={{ marginBottom: '5px' }}>{Blockly.Msg.notfound_head}</Typography>
<Typography variant='body1'>{Blockly.Msg.notfound_text}</Typography>
{this.props.button ?
<Button
style={{marginTop: '20px'}}
style={{ marginTop: '20px' }}
variant="contained"
color="primary"
onClick={() => {this.props.history.push(this.props.button.link)}}
onClick={() => { this.props.history.push(this.props.button.link) }}
>
{this.props.button.title}
</Button>
:
:
<Button
style={{marginTop: '20px'}}
style={{ marginTop: '20px' }}
variant="contained"
color="primary"
onClick={() => {this.props.history.push('/')}}
onClick={() => { this.props.history.push('/') }}
>
Zurück zur Startseite
{Blockly.Msg.button_back}
</Button>
}
</div>