add translations and informations

This commit is contained in:
Mario Pesch
2021-11-03 12:22:51 +01:00
parent 0e33361ee8
commit d67cb74401
6 changed files with 50 additions and 12 deletions
+9 -4
View File
@@ -22,11 +22,16 @@ class OtaSelector extends Component {
render() {
return (
<div>
<Typography style={{ fontWeight: "bold" }}>OTA</Typography>
<Typography style={{ fontWeight: "bold" }}>
{Blockly.Msg.settings_ota_head}
</Typography>
<FormHelperText
style={{ color: "black", lineHeight: 1.3, marginBottom: "8px" }}
>
Aktiviere OTA Modus{" "}
{Blockly.Msg.settings_ota_text}
<a href="https://sensebox.de/app" target="_blank" rel="noreferrer">
https://sensebox.de/app
</a>
</FormHelperText>
<FormControl>
<InputLabel id="demo-simple-select-label">
@@ -38,8 +43,8 @@ class OtaSelector extends Component {
value={this.props.platform}
onChange={(e) => this.props.setPlatform(e.target.value)}
>
<MenuItem value={true}>true</MenuItem>
<MenuItem value={false}>false</MenuItem>
<MenuItem value={true}>{Blockly.Msg.settings_ota_on}</MenuItem>
<MenuItem value={false}>{Blockly.Msg.settings_ota_off}</MenuItem>
</Select>
</FormControl>
</div>