fix translations in complie screen (tablet mode)

This commit is contained in:
fbruc03 2022-11-17 18:12:32 +01:00
parent 360169c8c9
commit 3959de86f4
4 changed files with 18 additions and 12 deletions

View File

@ -99,11 +99,14 @@ export const UI = {
* Tablet Dialog * Tablet Dialog
*/ */
tabletDialog_connect: "senseBox Connect App öffnen",
tabletDialog_headline: "Tablet Modus ist aktiviert!", tabletDialog_headline: "Tablet Modus ist aktiviert!",
tabletDialog_text: tabletDialog_text:
"Der Tablet Modus wurde aktiviert. Du kannst nun Programmcodes über die senseBox Connect App auf deine senseBox kopieren. Der Tablet Modus kann in den Einstellungen deaktiviert werden", "Der Tablet Modus wurde aktiviert. Du kannst nun Programmcodes über die senseBox Connect App auf deine senseBox kopieren. Der Tablet Modus kann in den Einstellungen deaktiviert werden",
tabletDialog_more: tabletDialog_more:
"Weitere Informationen und den Link zum Download der App findest du unter: ", "Weitere Informationen und den Link zum Download der App findest du unter: ",
compiledialog_process: "Dein Code wird compiliert!",
compiledialog_instructions: "Übertrage ihn anschließend mithlfe der senseBoxConnect-App..",
/** /**
* Reset Dialog * Reset Dialog
@ -132,7 +135,7 @@ export const UI = {
* Compile Dialog * Compile Dialog
* *
*/ */
compiledialog_success: "Dein Programm wurde erfolgreich kompiliert.",
compiledialog_headline: "Fehler", compiledialog_headline: "Fehler",
compiledialog_text: compiledialog_text:
"Beim kompilieren ist ein Fehler aufgetreten. Überprüfe deine Blöcke und versuche es erneut", "Beim kompilieren ist ein Fehler aufgetreten. Überprüfe deine Blöcke und versuche es erneut",

View File

@ -101,6 +101,7 @@ export const UI = {
"Tablet mode has been activated. You can now copy program codes to your senseBox via the senseBox Connect app. Tablet mode can be deactivated in the settings", "Tablet mode has been activated. You can now copy program codes to your senseBox via the senseBox Connect app. Tablet mode can be deactivated in the settings",
tabletDialog_more: tabletDialog_more:
"For more information and the link to download the app, please visit: ", "For more information and the link to download the app, please visit: ",
tabletDialog_connect: "Open senseBox Connect App",
/** /**
* Reset Dialog * Reset Dialog
@ -128,10 +129,12 @@ export const UI = {
* Compile Dialog * Compile Dialog
* *
*/ */
compiledialog_success: "Your code has been compiled successfully.",
compiledialog_headline: "Error", compiledialog_headline: "Error",
compiledialog_text: compiledialog_text:
"While compiling an error occured. Please check your blocks and try again", "While compiling an error occured. Please check your blocks and try again",
compiledialog_process: "Your code is being compiled!",
compiledialog_instructions: "After that, transfer it using the senseBoxConnect app.",
/** /**
* Buttons * Buttons

View File

@ -68,7 +68,7 @@ class Compile extends Component {
}; };
} }
componentDidMount() {} componentDidMount() { }
componentDidUpdate(props) { componentDidUpdate(props) {
if (props.name !== this.props.name) { if (props.name !== this.props.name) {
@ -232,8 +232,8 @@ class Compile extends Component {
> >
<div className="overlay"> <div className="overlay">
{/* <img src={Copy} width="400" alt="copyimage"></img> */} {/* <img src={Copy} width="400" alt="copyimage"></img> */}
<h2>Dein Code wird kompiliert!</h2> <h2>{Blockly.Msg.compiledialog_process}</h2>
<p>übertrage ihn anschließend mithlfe der senseBoxConnect-App</p> <p>{Blockly.Msg.compiledialog_instructions}</p>
<p> <p>
{Blockly.Msg.compile_overlay_help} {Blockly.Msg.compile_overlay_help}
<a href="/faq" target="_blank"> <a href="/faq" target="_blank">
@ -291,7 +291,7 @@ class Compile extends Component {
button={Blockly.Msg.button_close} button={Blockly.Msg.button_close}
> >
<div> <div>
<p>Dein Code wurde erfolgreich kompiliert</p> <p>{Blockly.Msg.compiledialog_success}</p>
<a href={this.state.link}> <a href={this.state.link}>
<Button <Button
style={{ color: "white" }} style={{ color: "white" }}
@ -303,7 +303,7 @@ class Compile extends Component {
icon={faClipboardCheck} icon={faClipboardCheck}
style={{ marginRight: "5px" }} style={{ marginRight: "5px" }}
/>{" "} />{" "}
Starte Übertragung {Blockly.Msg.tabletDialog_connect}
</Button> </Button>
</a> </a>
</div> </div>

View File

@ -68,7 +68,7 @@ class Compile extends Component {
}; };
} }
componentDidMount() {} componentDidMount() { }
componentDidUpdate(props) { componentDidUpdate(props) {
if (props.name !== this.props.name) { if (props.name !== this.props.name) {
@ -232,8 +232,8 @@ class Compile extends Component {
> >
<div className="overlay"> <div className="overlay">
{/* <img src={Copy} width="400" alt="copyimage"></img> */} {/* <img src={Copy} width="400" alt="copyimage"></img> */}
<h2>Dein Code wird kompiliert!</h2> <h2>{Blockly.Msg.compiledialog_process}</h2>
<p>übertrage ihn anschließend mithlfe der senseBoxConnect-App</p> <p>{Blockly.Msg.compiledialog_instructions}</p>
<p> <p>
{Blockly.Msg.compile_overlay_help} {Blockly.Msg.compile_overlay_help}
<a href="/faq" target="_blank"> <a href="/faq" target="_blank">
@ -291,7 +291,7 @@ class Compile extends Component {
button={Blockly.Msg.button_close} button={Blockly.Msg.button_close}
> >
<div> <div>
<p>Dein Code wurde erfolgreich kompiliert</p> <p>{Blockly.Msg.compiledialog_success}</p>
<a href={this.state.link}> <a href={this.state.link}>
<Button <Button
style={{ color: "white" }} style={{ color: "white" }}
@ -303,7 +303,7 @@ class Compile extends Component {
icon={faClipboardCheck} icon={faClipboardCheck}
style={{ marginRight: "5px" }} style={{ marginRight: "5px" }}
/>{" "} />{" "}
Starte Übertragung {Blockly.Msg.tabletDialog_connect}
</Button> </Button>
</a> </a>
</div> </div>