@@ -3463,7 +3463,7 @@ Blockly.Blocks['adxl345_on'] = {
34633463 init : function ( ) {
34643464 this . appendDummyInput ( )
34653465 . appendField ( new Blockly . FieldVariable ( "adxl" ) , "name_" )
3466- . appendField ( Blockly . Msg . WEBDUINO_ADXL345_ON , "開始偵測" ) ;
3466+ . appendField ( Blockly . Msg . WEBDUINO_START_DETECTING , "開始偵測" ) ;
34673467 this . appendStatementInput ( "on_" )
34683468 . appendField ( Blockly . Msg . WEBDUINO_ADXL345_DO , "執行:" ) ;
34693469 this . setPreviousStatement ( true ) ;
@@ -3498,7 +3498,7 @@ Blockly.Blocks['adxl345_off'] = {
34983498 init : function ( ) {
34993499 this . appendDummyInput ( )
35003500 . appendField ( new Blockly . FieldVariable ( "adxl" ) , "name_" )
3501- . appendField ( Blockly . Msg . WEBDUINO_ADXL345_OFF , "停止偵測" ) ;
3501+ . appendField ( Blockly . Msg . WEBDUINO_STOP_DETECTING , "停止偵測" ) ;
35023502 this . setPreviousStatement ( true ) ;
35033503 this . setNextStatement ( true ) ;
35043504 this . setColour ( 65 ) ;
@@ -3511,7 +3511,7 @@ Blockly.Blocks['adxl345_off'] = {
35113511Blockly . Blocks [ 'joystick_new' ] = {
35123512 init : function ( ) {
35133513 this . appendDummyInput ( )
3514- . appendField ( "搖桿, X")
3514+ . appendField ( Blockly . Msg . WEBDUINO_JOYSTICK + " X" , "搖桿 X")
35153515 . appendField ( new Blockly . FieldDropdown ( [
35163516 [ "A0" , "0" ] ,
35173517 [ "A1" , "1" ] ,
@@ -3561,9 +3561,9 @@ Blockly.Blocks['joystick_on'] = {
35613561 init : function ( ) {
35623562 this . appendDummyInput ( )
35633563 . appendField ( new Blockly . FieldVariable ( "joystick" ) , "name_" )
3564- . appendField ( "開始偵測" ) ;
3564+ . appendField ( Blockly . Msg . WEBDUINO_START_DETECTING , "開始偵測" ) ;
35653565 this . appendStatementInput ( "on_" )
3566- . appendField ( "執行:" ) ;
3566+ . appendField ( Blockly . Msg . WEBDUINO_JOYSTICK_DO , "執行:" ) ;
35673567 this . setPreviousStatement ( true ) ;
35683568 this . setNextStatement ( true ) ;
35693569 this . setColour ( 65 ) ;
@@ -3576,13 +3576,12 @@ Blockly.Blocks['joystick_val'] = {
35763576 init : function ( ) {
35773577 this . appendDummyInput ( )
35783578 . appendField ( new Blockly . FieldVariable ( "joystick" ) , "name_" )
3579- . appendField ( "的 ")
3579+ . appendField ( Blockly . Msg . WEBDUINO_JOYSTICK_VALUE , "數值: ")
35803580 . appendField ( new Blockly . FieldDropdown ( [
35813581 [ "X" , "_x" ] ,
35823582 [ "Y" , "_y" ] ,
35833583 [ "SW" , "_z" ]
35843584 ] ) , "val_" )
3585- . appendField ( "數值" ) ;
35863585 this . setOutput ( true ) ;
35873586 this . setTooltip ( '' ) ;
35883587 this . setColour ( 35 ) ;
@@ -3594,7 +3593,7 @@ Blockly.Blocks['joystick_off'] = {
35943593 init : function ( ) {
35953594 this . appendDummyInput ( )
35963595 . appendField ( new Blockly . FieldVariable ( "joystick" ) , "name_" )
3597- . appendField ( "停止偵測" ) ;
3596+ . appendField ( Blockly . Msg . WEBDUINO_STOP_DETECTING , "停止偵測" ) ;
35983597 this . setPreviousStatement ( true ) ;
35993598 this . setNextStatement ( true ) ;
36003599 this . setColour ( 65 ) ;
0 commit comments