@@ -18,7 +18,7 @@ Blockly.Blocks['lora_send'] = {
1818 this . appendValueInput ( "data" )
1919 . setCheck ( null )
2020 . appendField ( new Blockly . FieldVariable ( "lora" ) , "lora" )
21- . appendField ( "傳送字串" ) ;
21+ . appendField ( Blockly . Msg . WEBDUINO_LORA_SEND_STRING ) ;
2222 this . setPreviousStatement ( true , null ) ;
2323 this . setNextStatement ( true , null ) ;
2424 this . setColour ( 65 ) ;
@@ -33,13 +33,13 @@ Blockly.Blocks['lora_send_ack'] = {
3333 this . appendValueInput ( "data" )
3434 . setCheck ( null )
3535 . appendField ( new Blockly . FieldVariable ( "lora" ) , "lora" )
36- . appendField ( "傳送字串" ) ;
36+ . appendField ( Blockly . Msg . WEBDUINO_LORA_SEND_STRING ) ;
3737 this . appendStatementInput ( "send_ok" )
3838 . setCheck ( null )
39- . appendField ( "成功後執行" ) ;
39+ . appendField ( Blockly . Msg . WEBDUINO_LORA_SUCCESS_CALLBACK ) ;
4040 this . appendStatementInput ( "send_failure" )
4141 . setCheck ( null )
42- . appendField ( "失敗後執行" ) ;
42+ . appendField ( Blockly . Msg . WEBDUINO_LORA_FAIL_CALLBACK ) ;
4343 this . setPreviousStatement ( true , null ) ;
4444 this . setNextStatement ( true , null ) ;
4545 this . setColour ( 65 ) ;
@@ -54,7 +54,7 @@ Blockly.Blocks['lora_recv_ack'] = {
5454 this . appendStatementInput ( "recv_ok" )
5555 . setCheck ( null )
5656 . appendField ( new Blockly . FieldVariable ( "lora" ) , "lora" )
57- . appendField ( "接收字串後執行" ) ;
57+ . appendField ( Blockly . Msg . WEBDUINO_LORA_RECEIVE_CALLBACK ) ;
5858 this . setPreviousStatement ( true , null ) ;
5959 this . setNextStatement ( true , null ) ;
6060 this . setColour ( 65 ) ;
@@ -68,7 +68,7 @@ Blockly.Blocks['lora_recv_data'] = {
6868 init : function ( ) {
6969 this . appendDummyInput ( )
7070 . appendField ( new Blockly . FieldVariable ( "lora" ) , "lora" )
71- . appendField ( "接收的字串" ) ;
71+ . appendField ( Blockly . Msg . WEBDUINO_LORA_RECEIVED_STRING ) ;
7272 this . setOutput ( true , null ) ;
7373 this . setColour ( 65 ) ;
7474 this . setTooltip ( '' ) ;
0 commit comments