Skip to content

Commit

Permalink
fix bug in variable
Browse files Browse the repository at this point in the history
  • Loading branch information
SebCanet committed Oct 23, 2020
1 parent 0d20eaa commit 0d2fa74
Show file tree
Hide file tree
Showing 21 changed files with 62 additions and 12 deletions.
12 changes: 5 additions & 7 deletions blocks/BlocklyArduino/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,14 @@ Blockly.Blocks['variables_const'] = {
this.appendValueInput("VAL_CONST")
.appendField(Blockly.Msg.VARIABLES_SET_CONST)
.appendField(new Blockly.FieldVariable(Blockly.Msg.VARIABLES_DEFAULT_NAME), 'VAR')
.appendField(Blockly.Msg.VARIABLES_AS)
.appendField(new Blockly.FieldDropdown(Blockly.Types.getValidTypeArray()), 'VARIABLE_SETTYPE_TYPE')
.appendField(Blockly.Msg.VARIABLES_SET_CONST_AT);
this.setColour(Blockly.Blocks.variables.HUE);
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
this.setTooltip(Blockly.Msg.ARDUINO_VAR_CONST_tooltip);
this.setHelpUrl(Blockly.Msg.HELPURL);
this.setTooltip(Blockly.Msg.VARIABLES_SET_CONST_TOOLTIP);
this.setHelpUrl(Blockly.Msg.VARIABLES_SET_CONST_HELPURL);
this.contextMenuMsg_ = Blockly.Msg.VARIABLES_SET_CREATE_GET;
},
},
contextMenuType_: 'variables_get',
customContextMenu: Blockly.Blocks['variables_get'].customContextMenu,
/**
Expand All @@ -177,8 +175,8 @@ Blockly.Blocks['variables_set_init'] = {
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
this.setColour(Blockly.Blocks.variables.HUE);
this.setHelpUrl(Blockly.Msg.var_set_init_helpurl);
this.setTooltip(Blockly.Msg.var_set_init_tooltip);
this.setHelpUrl(Blockly.Msg.VARIABLES_SET_INIT_HELPURL);
this.setTooltip(Blockly.Msg.VARIABLES_SET_INIT_TOOLTIP);
this.contextMenuMsg_ = Blockly.Msg.VARIABLES_SET_CREATE_GET;
},
contextMenuType_: 'variables_get',
Expand Down
10 changes: 10 additions & 0 deletions core/Ardublockly/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ Blockly.Types.ARRAY = new Blockly.Type({
typeMsgName: 'ARD_TYPE_ARRAY',
compatibleTypes: []
});
/** Array/List of character. */
Blockly.Types.ARRAY_CHAR = new Blockly.Type({
typeId: 'ArrayChar',
typeMsgName: 'ARD_TYPE_ARRAY_CHAR',
compatibleTypes: []
});

/** Null indicate there is no type. */
Blockly.Types.NULL = new Blockly.Type({
Expand Down Expand Up @@ -160,6 +166,10 @@ Blockly.Types.VOLATIL_NUMBER.addCompatibleTypes([
Blockly.Types.LARGE_NUMBER,
Blockly.Types.UNS_NUMBER,
Blockly.Types.NUMBER]);

Blockly.Types.ARRAY_CHAR.addCompatibleTypes([
Blockly.Types.CHARACTER,
Blockly.Types.TEXT]);

/**
* Adds another type to the Blockly.Types collection.
Expand Down
4 changes: 1 addition & 3 deletions generators/BlocklyArduino/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,11 @@ Blockly.Arduino.variables_const = function(block) {
var varName = Blockly.Arduino.variableDB_.getName(block.getFieldValue('VAR'), Blockly.Variables.NAME_TYPE);
var typeBlock = Blockly.Arduino.getArduinoType_(Blockly.Types.getChildBlockType(block));
Blockly.Arduino.variables_[varName] = 'const ' + typeBlock + ' ' + varName + ' = ' + argument0 + ';';
return '';
};

Blockly.Arduino['variables_set_init'] = function(block){
var argument0 = Blockly.Arduino.valueToCode(block, 'VALUE', Blockly.Arduino.ORDER_ASSIGNMENT) || '0';
var varName = Blockly.Arduino.variableDB_.getName(block.getFieldValue('VAR'), Blockly.Variables.NAME_TYPE);
var varType = Blockly.Arduino.getArduinoType_(Blockly.Types.getChildBlockType(block));
var varType = Blockly.Arduino.getArduinoType_(Blockly.Types[block.getFieldValue('VARIABLE_SETTYPE_TYPE')]);
Blockly.Arduino.variables_[varName] = varType + ' ' + varName + ' = ' + argument0 + ';';
return '';
};
4 changes: 3 additions & 1 deletion generators/generator_arduino.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,14 @@ Blockly.Arduino.getArduinoType_ = function(typeBlockly) {
return 'String';
case Blockly.Types.CHARACTER.typeId:
return 'char';
case Blockly.Types.ARRAY_CHAR.typeId:
return 'char*';
case Blockly.Types.BOOLEAN.typeId:
return 'boolean';
case Blockly.Types.NULL.typeId:
return 'void';
case Blockly.Types.ARRAY.typeId:
return Blockly.Arduino.getArduinoType_(typeBlockly.arrayType);
return Blockly.Arduino.getArduinoType_(typeBlockly.arrayType);
case Blockly.Types.UNDEF.typeId:
return 'undefined';
case Blockly.Types.CHILD_BLOCK_MISSING.typeId:
Expand Down
3 changes: 3 additions & 0 deletions lang/BlocklyArduino_blocks/ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,12 @@ Blockly.Msg.PROCEDURES_DEFRETURN_TYPE = "من النوع" ;
Blockly.Msg.VARIABLES_AS = "من النوع" ;
Blockly.Msg.VARIABLES_SET_CONST = "الثابت %1 مثبت على %2";
Blockly.Msg.VARIABLES_SET_CONST_AT = "الثابت %1 مثبت على %2";
Blockly.Msg.VARIABLES_SET_CONST_TOOLTIP = "set a variable to non modifiable value";
Blockly.Msg.VARIABLES_SET_CONST_HELPURL = "https://www.arduino.cc/reference/en/language/variables/variable-scope-qualifiers/const/";
Blockly.Msg.ARD_TYPE_ARRAY = "الجدول (الصفيف)";
Blockly.Msg.ARD_TYPE_BOOL = "ثنائي (ToR)";
Blockly.Msg.ARD_TYPE_CHAR = "حرف";
Blockly.Msg.ARD_TYPE_ARRAY_CHAR = "حرفالجدول ";
Blockly.Msg.ARD_TYPE_CHILDBLOCKMISSING = "الكتابة مفقودة على كتلة";
Blockly.Msg.ARD_TYPE_DECIMAL = "رقم النقطة العائمة (عشري)";
Blockly.Msg.ARD_TYPE_LONG = "عدد صحيح طويل";
Expand Down
3 changes: 3 additions & 0 deletions lang/BlocklyArduino_blocks/bg.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,12 @@ Blockly.Msg.PROCEDURES_DEFRETURN_TYPE = "тип";
Blockly.Msg.VARIABLES_AS = "като";
Blockly.Msg.VARIABLES_SET_CONST = "константа";
Blockly.Msg.VARIABLES_SET_CONST_AT = "задай";
Blockly.Msg.VARIABLES_SET_CONST_TOOLTIP = "set a variable to non modifiable value";
Blockly.Msg.VARIABLES_SET_CONST_HELPURL = "https://www.arduino.cc/reference/en/language/variables/variable-scope-qualifiers/const/";
Blockly.Msg.ARD_TYPE_ARRAY = "Масив (Array)";
Blockly.Msg.ARD_TYPE_BOOL = "Булева (Boolean)";
Blockly.Msg.ARD_TYPE_CHAR = "Буква (Character)";
Blockly.Msg.ARD_TYPE_ARRAY_CHAR = "Буква Масив (Array of character)";
Blockly.Msg.ARD_TYPE_CHILDBLOCKMISSING = "ChildBlockMissing";
Blockly.Msg.ARD_TYPE_DECIMAL = "Десетичен (Decimal)";
Blockly.Msg.ARD_TYPE_LONG = "Голямо число (Large Number)";
Expand Down
3 changes: 3 additions & 0 deletions lang/BlocklyArduino_blocks/ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,12 @@ Blockly.Msg.PROCEDURES_DEFRETURN_TYPE = "tipus";
Blockly.Msg.VARIABLES_AS = "tipus";
Blockly.Msg.VARIABLES_SET_CONST = "constant";
Blockly.Msg.VARIABLES_SET_CONST_AT = "fixada a";
Blockly.Msg.VARIABLES_SET_CONST_TOOLTIP = "set a variable to non modifiable value";
Blockly.Msg.VARIABLES_SET_CONST_HELPURL = "https://www.arduino.cc/reference/en/language/variables/variable-scope-qualifiers/const/";
Blockly.Msg.ARD_TYPE_ARRAY = "matriu";
Blockly.Msg.ARD_TYPE_BOOL = "booleà";
Blockly.Msg.ARD_TYPE_CHAR = "caràcter";
Blockly.Msg.ARD_TYPE_ARRAY_CHAR = "caràcter matriu";
Blockly.Msg.ARD_TYPE_CHILDBLOCKMISSING = "bloc fill perdut";
Blockly.Msg.ARD_TYPE_DECIMAL = "decimal (float)";
Blockly.Msg.ARD_TYPE_LONG = "nombre enter llarg (long)";
Expand Down
3 changes: 3 additions & 0 deletions lang/BlocklyArduino_blocks/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,12 @@ Blockly.Msg.PROCEDURES_DEFRETURN_TYPE = "Typ:";
Blockly.Msg.VARIABLES_AS = "Als";
Blockly.Msg.VARIABLES_SET_CONST = "Setze Wert";
Blockly.Msg.VARIABLES_SET_CONST_AT = "auf";
Blockly.Msg.VARIABLES_SET_CONST_TOOLTIP = "set a variable to non modifiable value";
Blockly.Msg.VARIABLES_SET_CONST_HELPURL = "https://www.arduino.cc/reference/en/language/variables/variable-scope-qualifiers/const/";
Blockly.Msg.ARD_TYPE_ARRAY = "Array / Anordnung";
Blockly.Msg.ARD_TYPE_BOOL = "Schaltwert (Boole)";
Blockly.Msg.ARD_TYPE_CHAR = "Zeichen";
Blockly.Msg.ARD_TYPE_ARRAY_CHAR = "Zeichen array";
Blockly.Msg.ARD_TYPE_CHILDBLOCKMISSING = "ChildBlockMissing";
Blockly.Msg.ARD_TYPE_DECIMAL = "Dezimalzahl";
Blockly.Msg.ARD_TYPE_LONG = "Lange Zahl (Large-Zahlenwert)";
Expand Down
3 changes: 3 additions & 0 deletions lang/BlocklyArduino_blocks/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,12 @@ Blockly.Msg.PROCEDURES_DEFRETURN_TYPE = "type";
Blockly.Msg.VARIABLES_AS = "as";
Blockly.Msg.VARIABLES_SET_CONST = "constant";
Blockly.Msg.VARIABLES_SET_CONST_AT = "set";
Blockly.Msg.VARIABLES_SET_CONST_TOOLTIP = "set a variable to non modifiable value";
Blockly.Msg.VARIABLES_SET_CONST_HELPURL = "https://www.arduino.cc/reference/en/language/variables/variable-scope-qualifiers/const/";
Blockly.Msg.ARD_TYPE_ARRAY = "Array";
Blockly.Msg.ARD_TYPE_BOOL = "Boolean";
Blockly.Msg.ARD_TYPE_CHAR = "Character";
Blockly.Msg.ARD_TYPE_ARRAY_CHAR = "Character array";
Blockly.Msg.ARD_TYPE_CHILDBLOCKMISSING = "ChildBlockMissing";
Blockly.Msg.ARD_TYPE_DECIMAL = "Decimal";
Blockly.Msg.ARD_TYPE_LONG = "Large Number";
Expand Down
4 changes: 4 additions & 0 deletions lang/BlocklyArduino_blocks/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,13 @@ Blockly.Msg.PROCEDURES_DEFRETURN_TYPE = "tipo";

Blockly.Msg.VARIABLES_AS = "tipo";
Blockly.Msg.VARIABLES_SET_CONST = "constante %1 fixada a %2";
Blockly.Msg.VARIABLES_SET_CONST_AT = "";
Blockly.Msg.VARIABLES_SET_CONST_TOOLTIP = "set a variable to non modifiable value";
Blockly.Msg.VARIABLES_SET_CONST_HELPURL = "https://www.arduino.cc/reference/en/language/variables/variable-scope-qualifiers/const/";
Blockly.Msg.ARD_TYPE_ARRAY = "matriz";
Blockly.Msg.ARD_TYPE_BOOL = "booleano";
Blockly.Msg.ARD_TYPE_CHAR = "carácter";
Blockly.Msg.ARD_TYPE_ARRAY_CHAR = "matriz de carácter";
Blockly.Msg.ARD_TYPE_CHILDBLOCKMISSING = "bloque hijo perdido";
Blockly.Msg.ARD_TYPE_DECIMAL = "decimal (float)";
Blockly.Msg.ARD_TYPE_LONG = "número entero largo (long)";
Expand Down
3 changes: 3 additions & 0 deletions lang/BlocklyArduino_blocks/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,12 @@ Blockly.Msg.PROCEDURES_DEFRETURN_TYPE = "de type";
Blockly.Msg.VARIABLES_AS = "de type";
Blockly.Msg.VARIABLES_SET_CONST = "constante";
Blockly.Msg.VARIABLES_SET_CONST_AT = "fixée à";
Blockly.Msg.VARIABLES_SET_CONST_TOOLTIP = "créé une variable non modifiable à la valeur de ...";
Blockly.Msg.VARIABLES_SET_CONST_HELPURL = "https://www.arduino.cc/reference/en/language/variables/variable-scope-qualifiers/const/";
Blockly.Msg.ARD_TYPE_ARRAY = "tableau";
Blockly.Msg.ARD_TYPE_BOOL = "binaire (ToR)";
Blockly.Msg.ARD_TYPE_CHAR = "caractère";
Blockly.Msg.ARD_TYPE_ARRAY_CHAR = "tableau de caractères";
Blockly.Msg.ARD_TYPE_CHILDBLOCKMISSING = "typage manquant sur un bloc";
Blockly.Msg.ARD_TYPE_DECIMAL = "nombre à virgule (float)";
Blockly.Msg.ARD_TYPE_LONG = "nombre entier long (long)";
Expand Down
3 changes: 3 additions & 0 deletions lang/BlocklyArduino_blocks/jp.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,12 @@ Blockly.Msg.PROCEDURES_DEFRETURN_TYPE = "型";
Blockly.Msg.VARIABLES_AS = "型";
Blockly.Msg.VARIABLES_SET_CONST = " を定数に ";
Blockly.Msg.VARIABLES_SET_CONST_AT = " ";
Blockly.Msg.VARIABLES_SET_CONST_TOOLTIP = "set a variable to non modifiable value";
Blockly.Msg.VARIABLES_SET_CONST_HELPURL = "https://www.arduino.cc/reference/en/language/variables/variable-scope-qualifiers/const/";
Blockly.Msg.ARD_TYPE_ARRAY = "配列";
Blockly.Msg.ARD_TYPE_BOOL = "Boolean(真偽値)";
Blockly.Msg.ARD_TYPE_CHAR = "Char(文字)";
Blockly.Msg.ARD_TYPE_ARRAY_CHAR = "Char array(配列 文字)";
Blockly.Msg.ARD_TYPE_CHILDBLOCKMISSING = "子ブロックがありません";//"ChildBlockMissing"
Blockly.Msg.ARD_TYPE_DECIMAL = "Decimal(小数)";//"Decimal"
Blockly.Msg.ARD_TYPE_LONG = "Large Number(整数32bit長)";//"Large Number"
Expand Down
2 changes: 1 addition & 1 deletion lang/BlocklyArduino_msg/UI.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
var BlocklyArduinoMSG = {
span_version: "<i>version 05-10-2020 - v3.2.7</i>",
span_version: "<i>version 23-10-2020 - v3.2.8</i>",
};
3 changes: 3 additions & 0 deletions lang/Blockly_msg/ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ Blockly.Msg.VARIABLES_GET_CREATE_SET = "انشئ 'التعيين %1'";
Blockly.Msg.VARIABLES_GET_HELPURL = "https://github.com/google/blockly/wiki/Variables#get"; // untranslated
Blockly.Msg.VARIABLES_GET_TOOLTIP = "يرجع قيمة هذا المتغير.";
Blockly.Msg.VARIABLES_SET = "تعيين";
Blockly.Msg.VARIABLES_SET_INIT = "initialize";
Blockly.Msg.VARIABLES_SET_INIT_HELPURL = "https://www.arduino.cc/reference/en/language/variables/variable-scope-qualifiers/scope/";
Blockly.Msg.VARIABLES_SET_INIT_TOOLTIP = "set a variable to a first value, at the beginning of the programm";
Blockly.Msg.VARIABLES_SET_CREATE_GET = "انشئ 'احصل على %1'";
Blockly.Msg.VARIABLES_SET_HELPURL = "https://github.com/google/blockly/wiki/Variables#set"; // untranslated
Blockly.Msg.VARIABLES_SET_TOOLTIP = "تعيين هذا المتغير لتكون مساوية للقيمة المدخلة.";
Expand Down
2 changes: 2 additions & 0 deletions lang/Blockly_msg/bg.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@ Blockly.Msg.VARIABLES_GET_HELPURL = "https://github.com/google/blockly/wiki/Vari
Blockly.Msg.VARIABLES_GET_TOOLTIP = "Връща стойността на тази променлива.";
Blockly.Msg.VARIABLES_SET = "задай";
Blockly.Msg.VARIABLES_SET_INIT = "инициализирай";
Blockly.Msg.VARIABLES_SET_INIT_HELPURL = "https://www.arduino.cc/reference/en/language/variables/variable-scope-qualifiers/scope/";
Blockly.Msg.VARIABLES_SET_INIT_TOOLTIP = "set a variable to a first value, at the beginning of the programm";
Blockly.Msg.VARIABLES_SET_CREATE_GET = "Създай 'get %1'";
Blockly.Msg.VARIABLES_SET_HELPURL = "https://github.com/google/blockly/wiki/Variables#set";
Blockly.Msg.VARIABLES_SET_TOOLTIP = "Задава тази променлива да бъде равна на входа.";
Expand Down
2 changes: 2 additions & 0 deletions lang/Blockly_msg/ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,8 @@ Blockly.Msg.VARIABLES_GET_HELPURL = "https://github.com/google/blockly/wiki/Vari
Blockly.Msg.VARIABLES_GET_TOOLTIP = "Retorna el valor d'aquesta variable.";
Blockly.Msg.VARIABLES_SET = "estableix la variable";
Blockly.Msg.VARIABLES_SET_INIT = "inicialitza la variable ";
Blockly.Msg.VARIABLES_SET_INIT_HELPURL = "https://www.arduino.cc/reference/en/language/variables/variable-scope-qualifiers/scope/";
Blockly.Msg.VARIABLES_SET_INIT_TOOLTIP = "set a variable to a first value, at the beginning of the programm";
Blockly.Msg.VARIABLES_SET_CREATE_GET = "Crea 'obté %1'";
Blockly.Msg.VARIABLES_SET_HELPURL = "https://github.com/google/blockly/wiki/Variables#set"; // untranslated
Blockly.Msg.VARIABLES_SET_TOOLTIP = "Estableix aquesta variable per tal que sigui igual al valor de l'entrada.";
Expand Down
2 changes: 2 additions & 0 deletions lang/Blockly_msg/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@ Blockly.Msg.VARIABLES_GET_HELPURL = "https://github.com/google/blockly/wiki/Vari
Blockly.Msg.VARIABLES_GET_TOOLTIP = "Gibt den Inhalt der Variablen zurück.";
Blockly.Msg.VARIABLES_SET = "Setze die Variable";
Blockly.Msg.VARIABLES_SET_INIT = "Initialisiere";
Blockly.Msg.VARIABLES_SET_INIT_HELPURL = "https://www.arduino.cc/reference/en/language/variables/variable-scope-qualifiers/scope/";
Blockly.Msg.VARIABLES_SET_INIT_TOOLTIP = "set a variable to a first value, at the beginning of the programm";
Blockly.Msg.VARIABLES_SET_CREATE_GET = "Create 'get %1'";
Blockly.Msg.VARIABLES_SET_HELPURL = "https://github.com/google/blockly/wiki/Variables#set";
Blockly.Msg.VARIABLES_SET_TOOLTIP = "Setze einen festen Inhalt in die Variable ";
Expand Down
2 changes: 2 additions & 0 deletions lang/Blockly_msg/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@ Blockly.Msg.VARIABLES_GET_HELPURL = "https://github.com/google/blockly/wiki/Vari
Blockly.Msg.VARIABLES_GET_TOOLTIP = "Returns the value of this variable.";
Blockly.Msg.VARIABLES_SET = "set";
Blockly.Msg.VARIABLES_SET_INIT = "initialize";
Blockly.Msg.VARIABLES_SET_INIT_HELPURL = "https://www.arduino.cc/reference/en/language/variables/variable-scope-qualifiers/scope/";
Blockly.Msg.VARIABLES_SET_INIT_TOOLTIP = "set a variable to a first value, at the beginning of the programm";
Blockly.Msg.VARIABLES_SET_CREATE_GET = "Create 'get %1'";
Blockly.Msg.VARIABLES_SET_HELPURL = "https://github.com/google/blockly/wiki/Variables#set";
Blockly.Msg.VARIABLES_SET_TOOLTIP = "Sets this variable to be equal to the input.";
Expand Down
2 changes: 2 additions & 0 deletions lang/Blockly_msg/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,8 @@ Blockly.Msg.VARIABLES_GET_HELPURL = "https://github.com/google/blockly/wiki/Vari
Blockly.Msg.VARIABLES_GET_TOOLTIP = "Devuelve el valor de esta variable.";
Blockly.Msg.VARIABLES_SET = "establece la variable %1 a %2";
Blockly.Msg.VARIABLES_SET_INIT = "inicializa la variable ";
Blockly.Msg.VARIABLES_SET_INIT_HELPURL = "https://www.arduino.cc/reference/en/language/variables/variable-scope-qualifiers/scope/";
Blockly.Msg.VARIABLES_SET_INIT_TOOLTIP = "set a variable to a first value, at the beginning of the programm";
Blockly.Msg.VARIABLES_SET_CREATE_GET = "Crea 'get %1'";
Blockly.Msg.VARIABLES_SET_HELPURL = "https://github.com/google/blockly/wiki/Variables#set"; // untranslated
Blockly.Msg.VARIABLES_SET_TOOLTIP = "Establece esta variable para que sea igual al valor de la entrada.";
Expand Down
2 changes: 2 additions & 0 deletions lang/Blockly_msg/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@ Blockly.Msg.VARIABLES_GET_HELPURL = "https://github.com/google/blockly/wiki/Vari
Blockly.Msg.VARIABLES_GET_TOOLTIP = "Renvoie la valeur de cette variable.";
Blockly.Msg.VARIABLES_SET = "mettre la variable";
Blockly.Msg.VARIABLES_SET_INIT = "initialiser la variable ";
Blockly.Msg.VARIABLES_SET_INIT_HELPURL = "https://www.arduino.cc/reference/en/language/variables/variable-scope-qualifiers/scope/";
Blockly.Msg.VARIABLES_SET_INIT_TOOLTIP = "créé une variable avec une valeur fixée dès le départ du programme";
Blockly.Msg.VARIABLES_SET_CREATE_GET = "Créer 'obtenir %1'";
Blockly.Msg.VARIABLES_SET_HELPURL = "https://github.com/google/blockly/wiki/Variables#set"; // untranslated
Blockly.Msg.VARIABLES_SET_TOOLTIP = "Fixe cette variable pour qu’elle soit égale à la valeur de l’entrée.";
Expand Down
2 changes: 2 additions & 0 deletions lang/Blockly_msg/jp.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@ Blockly.Msg.VARIABLES_GET_HELPURL = "https://github.com/google/blockly/wiki/Vari
Blockly.Msg.VARIABLES_GET_TOOLTIP = "Returns the value of this variable.";
Blockly.Msg.VARIABLES_SET = "変数";
Blockly.Msg.VARIABLES_SET_INIT = "変数を初期化";
Blockly.Msg.VARIABLES_SET_INIT_HELPURL = "https://www.arduino.cc/reference/en/language/variables/variable-scope-qualifiers/scope/";
Blockly.Msg.VARIABLES_SET_INIT_TOOLTIP = "set a variable to a first value, at the beginning of the programm";
Blockly.Msg.VARIABLES_SET_CREATE_GET = "Create 'get %1'";
Blockly.Msg.VARIABLES_SET_HELPURL = "https://github.com/google/blockly/wiki/Variables#set";
Blockly.Msg.VARIABLES_SET_TOOLTIP = "変数を入力の値に設定";//"Sets this variable to be equal to the input."
Expand Down

0 comments on commit 0d2fa74

Please sign in to comment.