add tooltips and en translations

This commit is contained in:
Mario Pesch
2021-05-17 15:51:57 +02:00
parent 44d48997d4
commit 531db63b85
4 changed files with 67 additions and 56 deletions
@@ -18,7 +18,6 @@ Blockly.Arduino.sensebox_phyphox_experiment = function () {
""
);
var title = this.getFieldValue("title").replace(/[^a-zA-Z0-9]/g, "");
var category = this.getFieldValue("category");
var description = this.getFieldValue("description");
var branch = Blockly.Arduino.statementToCode(this, "view");
Blockly.Arduino.phyphoxSetupCode_[
@@ -28,8 +27,8 @@ Blockly.Arduino.sensebox_phyphox_experiment = function () {
`setTitle_${title}`
] = `${experimentname}.setTitle("${title}");`;
Blockly.Arduino.phyphoxSetupCode_[
`setCategory_${category}`
] = `${experimentname}.setCategory("${category}");`;
`setCategory_senseBoxExperiments}`
] = `${experimentname}.setCategory("senseBox Experimente");`;
Blockly.Arduino.phyphoxSetupCode_[
`setDescription_${description}`
] = `${experimentname}.setDescription("${description}");`;
@@ -59,11 +58,6 @@ Blockly.Arduino["sensebox_phyphox_channel"] = function () {
return [code, Blockly.Arduino.ORDER_ATOMIC];
};
Blockly.Arduino.sensebox_phyphox_view = function () {
//var code = `${branch}`;
//return code;
};
Blockly.Arduino.sensebox_phyphox_sendchannel = function (block) {
var channel = this.getFieldValue("channel");
var value =