@@ -18,7 +18,7 @@ Blockly.Blocks['lora_send'] = {
18
18
this . appendValueInput ( "data" )
19
19
. setCheck ( null )
20
20
. appendField ( new Blockly . FieldVariable ( "lora" ) , "lora" )
21
- . appendField ( "傳送字串" ) ;
21
+ . appendField ( Blockly . Msg . WEBDUINO_LORA_SEND_STRING ) ;
22
22
this . setPreviousStatement ( true , null ) ;
23
23
this . setNextStatement ( true , null ) ;
24
24
this . setColour ( 65 ) ;
@@ -33,13 +33,13 @@ Blockly.Blocks['lora_send_ack'] = {
33
33
this . appendValueInput ( "data" )
34
34
. setCheck ( null )
35
35
. appendField ( new Blockly . FieldVariable ( "lora" ) , "lora" )
36
- . appendField ( "傳送字串" ) ;
36
+ . appendField ( Blockly . Msg . WEBDUINO_LORA_SEND_STRING ) ;
37
37
this . appendStatementInput ( "send_ok" )
38
38
. setCheck ( null )
39
- . appendField ( "成功後執行" ) ;
39
+ . appendField ( Blockly . Msg . WEBDUINO_LORA_SUCCESS_CALLBACK ) ;
40
40
this . appendStatementInput ( "send_failure" )
41
41
. setCheck ( null )
42
- . appendField ( "失敗後執行" ) ;
42
+ . appendField ( Blockly . Msg . WEBDUINO_LORA_FAIL_CALLBACK ) ;
43
43
this . setPreviousStatement ( true , null ) ;
44
44
this . setNextStatement ( true , null ) ;
45
45
this . setColour ( 65 ) ;
@@ -54,7 +54,7 @@ Blockly.Blocks['lora_recv_ack'] = {
54
54
this . appendStatementInput ( "recv_ok" )
55
55
. setCheck ( null )
56
56
. appendField ( new Blockly . FieldVariable ( "lora" ) , "lora" )
57
- . appendField ( "接收字串後執行" ) ;
57
+ . appendField ( Blockly . Msg . WEBDUINO_LORA_RECEIVE_CALLBACK ) ;
58
58
this . setPreviousStatement ( true , null ) ;
59
59
this . setNextStatement ( true , null ) ;
60
60
this . setColour ( 65 ) ;
@@ -68,7 +68,7 @@ Blockly.Blocks['lora_recv_data'] = {
68
68
init : function ( ) {
69
69
this . appendDummyInput ( )
70
70
. appendField ( new Blockly . FieldVariable ( "lora" ) , "lora" )
71
- . appendField ( "接收的字串" ) ;
71
+ . appendField ( Blockly . Msg . WEBDUINO_LORA_RECEIVED_STRING ) ;
72
72
this . setOutput ( true , null ) ;
73
73
this . setColour ( 65 ) ;
74
74
this . setTooltip ( '' ) ;
0 commit comments