@@ -21,22 +21,22 @@ Blockly.Translate =
21
21
} ;
22
22
23
23
/// --- SendTo gotify --------------------------------------------------
24
- Blockly . Words [ "googleSpreadsheet " ] = { en : "Google Spreadsheet" , de : "Google Tabelle" } ;
25
- Blockly . Words [ "googleSpreadsheet_message " ] = { en : "message" , de : "Meldung" } ;
24
+ Blockly . Words [ "google-spreadsheet " ] = { en : "Google Spreadsheet" , de : "Google Tabelle" } ;
25
+ Blockly . Words [ "google-spreadsheet_message " ] = { en : "message" , de : "Meldung" } ;
26
26
27
27
28
- Blockly . Words [ "googleSpreadsheet_anyInstance " ] = { en : "all instances" , de : "Alle Instanzen" } ;
29
- Blockly . Words [ "googleSpreadsheet_tooltip " ] = {
28
+ Blockly . Words [ "google-spreadsheet_anyInstance " ] = { en : "all instances" , de : "Alle Instanzen" } ;
29
+ Blockly . Words [ "google-spreadsheet_tooltip " ] = {
30
30
en : "Append data to a google spreadsheet" ,
31
31
de : "Daten an eine Google Tabelle anhängen" ,
32
32
} ;
33
- Blockly . Words [ "googleSpreadsheet_help " ] = {
33
+ Blockly . Words [ "google-spreadsheet_help " ] = {
34
34
en : "https://github.com/ThomasPohl/ioBroker.google-spreadsheet/blob/master/README.md" ,
35
35
de : "https://github.com/ThomasPohl/ioBroker.google-spreadsheet/blob/master/README.md" ,
36
36
} ;
37
37
38
- Blockly . Sendto . blocks [ "googleSpreadsheet " ] =
39
- '<block type="googleSpreadsheet ">' +
38
+ Blockly . Sendto . blocks [ "google-spreadsheet " ] =
39
+ '<block type="google-spreadsheet ">' +
40
40
' <value name="INSTANCE">' +
41
41
" </value>" +
42
42
' <value name="MESSAGE">' +
@@ -46,9 +46,9 @@ Blockly.Sendto.blocks["googleSpreadsheet"] =
46
46
" </value>" +
47
47
"</block>" ;
48
48
49
- Blockly . Blocks [ "googleSpreadsheet " ] = {
49
+ Blockly . Blocks [ "google-spreadsheet " ] = {
50
50
init : function ( ) {
51
- var options = [ [ Blockly . Translate ( "googleSpreadsheet_anyInstance " ) , "" ] ] ;
51
+ var options = [ [ Blockly . Translate ( "google-spreadsheet_anyInstance " ) , "" ] ] ;
52
52
if ( typeof main !== "undefined" && main . instances ) {
53
53
for ( var i = 0 ; i < main . instances . length ; i ++ ) {
54
54
var m = main . instances [ i ] . match ( / ^ s y s t e m .a d a p t e r .g o o g l e - s p r e a d s h e e t .( \d + ) $ / ) ;
@@ -66,10 +66,10 @@ Blockly.Blocks["googleSpreadsheet"] = {
66
66
}
67
67
68
68
this . appendDummyInput ( "INSTANCE" )
69
- . appendField ( Blockly . Translate ( "googleSpreadsheet " ) )
69
+ . appendField ( Blockly . Translate ( "google-spreadsheet " ) )
70
70
. appendField ( new Blockly . FieldDropdown ( options ) , "INSTANCE" ) ;
71
71
72
- this . appendValueInput ( "MESSAGE" ) . appendField ( Blockly . Translate ( "googleSpreadsheet_message " ) ) ;
72
+ this . appendValueInput ( "MESSAGE" ) . appendField ( Blockly . Translate ( "google-spreadsheet_message " ) ) ;
73
73
74
74
/* if (input && input.connection) {
75
75
input.connection._optional = true;
@@ -80,12 +80,12 @@ Blockly.Blocks["googleSpreadsheet"] = {
80
80
this . setNextStatement ( true , null ) ;
81
81
82
82
this . setColour ( Blockly . Sendto . HUE ) ;
83
- this . setTooltip ( Blockly . Translate ( "googleSpreadsheet_tooltip " ) ) ;
84
- this . setHelpUrl ( Blockly . Translate ( "googleSpreadsheet_help " ) ) ;
83
+ this . setTooltip ( Blockly . Translate ( "google-spreadsheet_tooltip " ) ) ;
84
+ this . setHelpUrl ( Blockly . Translate ( "google-spreadsheet_help " ) ) ;
85
85
} ,
86
86
} ;
87
87
88
- Blockly . JavaScript [ "googleSpreadsheet " ] = function ( block ) {
88
+ Blockly . JavaScript [ "google-spreadsheet " ] = function ( block ) {
89
89
var dropdown_instance = block . getFieldValue ( "INSTANCE" ) ;
90
90
var message = Blockly . JavaScript . valueToCode ( block , "MESSAGE" , Blockly . JavaScript . ORDER_ATOMIC ) ;
91
91
var text = "{\n" ;
0 commit comments