Skip to content

Commit 64bcebc

Browse files
committed
Separate Ardublockly from blockly language strings
1 parent 7c5ffcf commit 64bcebc

17 files changed

+901
-826
lines changed

blockly/msg/json/en.json

Lines changed: 1 addition & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -370,123 +370,5 @@
370370
"PROCEDURES_CREATE_DO": "Create '%1'",
371371
"PROCEDURES_IFRETURN_TOOLTIP": "If a value is true, then return a second value.",
372372
"PROCEDURES_IFRETURN_HELPURL": "http://c2.com/cgi/wiki?GuardClause",
373-
"PROCEDURES_IFRETURN_WARNING": "Warning: This block may be used only within a function definition.",
374-
"ARD_TYPE_CHAR": "Character",
375-
"ARD_TYPE_TEXT": "Text",
376-
"ARD_TYPE_BOOL": "Boolean",
377-
"ARD_TYPE_SHORT": "Short Number",
378-
"ARD_TYPE_NUMBER": "Number",
379-
"ARD_TYPE_LONG": "Large Number",
380-
"ARD_TYPE_DECIMAL": "Decimal",
381-
"ARD_TYPE_ARRAY": "Array",
382-
"ARD_TYPE_NULL": "Null",
383-
"ARD_TYPE_UNDEF": "Undefined",
384-
"ARD_TYPE_CHILDBLOCKMISSING": "ChildBlockMissing",
385-
"ARD_HIGH": "HIGH",
386-
"ARD_LOW": "LOW",
387-
"ARD_ANALOGREAD": "read analog pin#",
388-
"ARD_ANALOGREAD_TIP": "Return value between 0 and 1024",
389-
"ARD_ANALOGWRITE": "set analog pin#",
390-
"ARD_ANALOGWRITE_TIP": "Write analog value between 0 and 255 to a specific PWM Port",
391-
"ARD_HIGHLOW_TIP": "Set a pin state logic High or Low.",
392-
"ARD_DIGITALREAD": "read digital pin#",
393-
"ARD_DIGITALREAD_TIP": "Read digital value on a pin: HIGH or LOW",
394-
"ARD_DIGITALWRITE": "set digitial pin#",
395-
"ARD_WRITE_TO": "to",
396-
"ARD_DIGITALWRITE_TIP": "Write digital value HIGH or LOW to a specific Port",
397-
"ARD_BUILTIN_LED": "set built-in LED",
398-
"ARD_BUILTIN_LED_TIP": "Light on or off for the built-in LED of the Arduino",
399-
"ARD_DEFINE": "Define",
400-
"ARD_TONE_PIN": "Tone PIN#",
401-
"ARD_TONE_FREQ": "frequency",
402-
"ARD_TONE_PIN_TIP": "Generate audio tones on a pin",
403-
"ARD_NOTONE_PIN": "No tone PIN#",
404-
"ARD_NOTONE_PIN_TIP": "Stop generating a tone on a pin",
405-
"ARD_MAP": "Map",
406-
"ARD_MAP_VAL": "value to [0-",
407-
"ARD_MAP_TIP": "Re-maps a number from [0-1024] to another.",
408-
"ARD_FUN_RUN_SETUP": "Arduino run first:",
409-
"ARD_FUN_RUN_LOOP": "Arduino loop forever:",
410-
"ARD_FUN_RUN_TIP": "Defines the Arduino setup() and loop() functions.",
411-
"ARD_PIN_WARN1": "Pin %1 is needed for %2 as pin %3. Already used as %4.",
412-
"ARD_SERIAL_SETUP": "Setup",
413-
"ARD_SERIAL_SPEED": ": speed to",
414-
"ARD_SERIAL_BPS": "bps",
415-
"ARD_SERIAL_SETUP_TIP": "Selects the speed for a specific Serial peripheral",
416-
"ARD_SERIAL_PRINT": "print",
417-
"ARD_SERIAL_PRINT_NEWLINE": "add new line",
418-
"ARD_SERIAL_PRINT_TIP": "Prints data to the console/serial port as human-readable ASCII text.",
419-
"ARD_SERIAL_PRINT_WARN": "A setup block for %1 must be added to the workspace to use this block!",
420-
"ARD_SERVO_WRITE": "set SERVO from Pin",
421-
"ARD_SERVO_WRITE_TO": "to",
422-
"ARD_SERVO_WRITE_DEG_180": "Degrees (0~180)",
423-
"ARD_SERVO_WRITE_TIP": "Set a Servo to an specified angle",
424-
"ARD_SERVO_READ": "read SERVO from PIN#",
425-
"ARD_SERVO_READ_TIP": "Read a Servo angle",
426-
"ARD_SPI_SETUP": "Setup",
427-
"ARD_SPI_SETUP_CONF": "configuration:",
428-
"ARD_SPI_SETUP_SHIFT": "data shift",
429-
"ARD_SPI_SETUP_MSBFIRST": "MSBFIRST",
430-
"ARD_SPI_SETUP_LSBFIRST": "LSBFIRST",
431-
"ARD_SPI_SETUP_DIVIDE": "clock divide",
432-
"ARD_SPI_SETUP_MODE": "SPI mode (idle - edge)",
433-
"ARD_SPI_SETUP_MODE0": "0 (Low - Falling)",
434-
"ARD_SPI_SETUP_MODE1": "1 (Low - Rising)",
435-
"ARD_SPI_SETUP_MODE2": "2 (High - Falling)",
436-
"ARD_SPI_SETUP_MODE3": "3 (High - Rising)",
437-
"ARD_SPI_SETUP_TIP": "Configures the SPI peripheral.",
438-
"ARD_SPI_TRANS_NONE": "none",
439-
"ARD_SPI_TRANS_VAL": "transfer",
440-
"ARD_SPI_TRANS_SLAVE": "to slave pin",
441-
"ARD_SPI_TRANS_TIP": "Send a SPI message to an specified slave device.",
442-
"ARD_SPI_TRANS_WARN1": "A setup block for %1 must be added to the workspace to use this block!",
443-
"ARD_SPI_TRANS_WARN2": "Old pin value %1 is no longer available.",
444-
"ARD_SPI_TRANSRETURN_TIP": "Send a SPI message to an specified slave device and get data back.",
445-
"ARD_STEPPER_SETUP": "Setup stepper motor",
446-
"ARD_STEPPER_MOTOR": "stepper motor:",
447-
"ARD_STEPPER_DEFAULT_NAME": "MyStepper",
448-
"ARD_STEPPER_NUMBER_OF_PINS": "Number of pins",
449-
"ARD_STEPPER_TWO_PINS": "2",
450-
"ARD_STEPPER_FOUR_PINS": "4",
451-
"ARD_STEPPER_PIN1": "pin1#",
452-
"ARD_STEPPER_PIN2": "pin2#",
453-
"ARD_STEPPER_PIN3": "pin3#",
454-
"ARD_STEPPER_PIN4": "pin4#",
455-
"ARD_STEPPER_REVOLVS": "how many steps per revolution",
456-
"ARD_STEPPER_SPEED": "set speed (rpm) to",
457-
"ARD_STEPPER_SETUP_TIP": "Configures a stepper motor pinout and other settings.",
458-
"ARD_STEPPER_STEP": "move stepper",
459-
"ARD_STEPPER_STEPS": "steps",
460-
"ARD_STEPPER_STEP_TIP": "Turns the stepper motor a specific number of steps.",
461-
"ARD_STEPPER_COMPONENT": "stepper",
462-
"ARD_COMPONENT_WARN1": "A %1 configuration block with the same %2 name must be added to use this block!",
463-
"ARD_TIME_DELAY": "wait",
464-
"ARD_TIME_MS": "milliseconds",
465-
"ARD_TIME_DELAY_TIP": "Wait specific time in milliseconds",
466-
"ARD_TIME_DELAY_MICROS": "microseconds",
467-
"ARD_TIME_DELAY_MICRO_TIP": "Wait specific time in microseconds",
468-
"ARD_TIME_MILLIS": "current elapsed Time (milliseconds)",
469-
"ARD_TIME_MILLIS_TIP": "Returns the number of milliseconds since the Arduino board began running the current program. Has to be stored in a positive long integer",
470-
"ARD_TIME_MICROS": "current elapsed Time (microseconds)",
471-
"ARD_TIME_MICROS_TIP": "Returns the number of microseconds since the Arduino board began running the current program. Has to be stored in a positive long integer",
472-
"ARD_TIME_INF": "wait forever (end program)",
473-
"ARD_TIME_INF_TIP": "Wait indefinitely, stopping the program.",
474-
"ARD_VAR_AS": "as",
475-
"ARD_VAR_AS_TIP": "Sets a value to a specific type",
476-
"ARD_PULSEREAD": "Read",
477-
"ARD_PULSEON": "pulse on pin #",
478-
"ARD_PULSETIMEOUT": "timeout after",
479-
"ARD_PULSETIMEOUT_MS": "",
480-
"ARD_PULSE_TIP": "Measures the duration of a pulse on the selected pin.",
481-
"ARD_PULSETIMEOUT_TIP": "Measures the duration of a pulse on the selected pin, if it is within the timeout.",
482-
"ARD_SETTONE": "Set tone on pin #",
483-
"ARD_TONEFREQ": "at frequency",
484-
"ARD_TONE_TIP": "Sets tone on pin to specified frequency within range 31 - 65535",
485-
"ARD_TONE_WARNING": "Frequency must be in range 31 - 65535",
486-
"ARD_NOTONE": "Turn off tone on pin #",
487-
"ARD_NOTONE_TIP": "Turns the tone off on the selected pin",
488-
"NEW_INSTANCE": "New instance...",
489-
"RENAME_INSTANCE": "Rename instance...",
490-
"NEW_INSTANCE_TITLE": "New instance name:",
491-
"RENAME_INSTANCE_TITLE": "Rename all '%1' instances to:"
373+
"PROCEDURES_IFRETURN_WARNING": "Warning: This block may be used only within a function definition."
492374
}
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
{
2+
"@metadata": {
3+
"authors": [
4+
"carlosperate"
5+
],
6+
"locale": "en",
7+
"messagedocumentation" : "qqq"
8+
},
9+
"ARD_TYPE_CHAR": "Character",
10+
"ARD_TYPE_TEXT": "Text",
11+
"ARD_TYPE_BOOL": "Boolean",
12+
"ARD_TYPE_SHORT": "Short Number",
13+
"ARD_TYPE_NUMBER": "Number",
14+
"ARD_TYPE_LONG": "Large Number",
15+
"ARD_TYPE_DECIMAL": "Decimal",
16+
"ARD_TYPE_ARRAY": "Array",
17+
"ARD_TYPE_NULL": "Null",
18+
"ARD_TYPE_UNDEF": "Undefined",
19+
"ARD_TYPE_CHILDBLOCKMISSING": "ChildBlockMissing",
20+
"ARD_HIGH": "HIGH",
21+
"ARD_LOW": "LOW",
22+
"ARD_ANALOGREAD": "read analog pin#",
23+
"ARD_ANALOGREAD_TIP": "Return value between 0 and 1024",
24+
"ARD_ANALOGWRITE": "set analog pin#",
25+
"ARD_ANALOGWRITE_TIP": "Write analog value between 0 and 255 to a specific PWM Port",
26+
"ARD_HIGHLOW_TIP": "Set a pin state logic High or Low.",
27+
"ARD_DIGITALREAD": "read digital pin#",
28+
"ARD_DIGITALREAD_TIP": "Read digital value on a pin: HIGH or LOW",
29+
"ARD_DIGITALWRITE": "set digitial pin#",
30+
"ARD_WRITE_TO": "to",
31+
"ARD_DIGITALWRITE_TIP": "Write digital value HIGH or LOW to a specific Port",
32+
"ARD_BUILTIN_LED": "set built-in LED",
33+
"ARD_BUILTIN_LED_TIP": "Light on or off for the built-in LED of the Arduino",
34+
"ARD_DEFINE": "Define",
35+
"ARD_TONE_PIN": "Tone PIN#",
36+
"ARD_TONE_FREQ": "frequency",
37+
"ARD_TONE_PIN_TIP": "Generate audio tones on a pin",
38+
"ARD_NOTONE_PIN": "No tone PIN#",
39+
"ARD_NOTONE_PIN_TIP": "Stop generating a tone on a pin",
40+
"ARD_MAP": "Map",
41+
"ARD_MAP_VAL": "value to [0-",
42+
"ARD_MAP_TIP": "Re-maps a number from [0-1024] to another.",
43+
"ARD_FUN_RUN_SETUP": "Arduino run first:",
44+
"ARD_FUN_RUN_LOOP": "Arduino loop forever:",
45+
"ARD_FUN_RUN_TIP": "Defines the Arduino setup() and loop() functions.",
46+
"ARD_PIN_WARN1": "Pin %1 is needed for %2 as pin %3. Already used as %4.",
47+
"ARD_SERIAL_SETUP": "Setup",
48+
"ARD_SERIAL_SPEED": ": speed to",
49+
"ARD_SERIAL_BPS": "bps",
50+
"ARD_SERIAL_SETUP_TIP": "Selects the speed for a specific Serial peripheral",
51+
"ARD_SERIAL_PRINT": "print",
52+
"ARD_SERIAL_PRINT_NEWLINE": "add new line",
53+
"ARD_SERIAL_PRINT_TIP": "Prints data to the console/serial port as human-readable ASCII text.",
54+
"ARD_SERIAL_PRINT_WARN": "A setup block for %1 must be added to the workspace to use this block!",
55+
"ARD_SERVO_WRITE": "set SERVO from Pin",
56+
"ARD_SERVO_WRITE_TO": "to",
57+
"ARD_SERVO_WRITE_DEG_180": "Degrees (0~180)",
58+
"ARD_SERVO_WRITE_TIP": "Set a Servo to an specified angle",
59+
"ARD_SERVO_READ": "read SERVO from PIN#",
60+
"ARD_SERVO_READ_TIP": "Read a Servo angle",
61+
"ARD_SPI_SETUP": "Setup",
62+
"ARD_SPI_SETUP_CONF": "configuration:",
63+
"ARD_SPI_SETUP_SHIFT": "data shift",
64+
"ARD_SPI_SETUP_MSBFIRST": "MSBFIRST",
65+
"ARD_SPI_SETUP_LSBFIRST": "LSBFIRST",
66+
"ARD_SPI_SETUP_DIVIDE": "clock divide",
67+
"ARD_SPI_SETUP_MODE": "SPI mode (idle - edge)",
68+
"ARD_SPI_SETUP_MODE0": "0 (Low - Falling)",
69+
"ARD_SPI_SETUP_MODE1": "1 (Low - Rising)",
70+
"ARD_SPI_SETUP_MODE2": "2 (High - Falling)",
71+
"ARD_SPI_SETUP_MODE3": "3 (High - Rising)",
72+
"ARD_SPI_SETUP_TIP": "Configures the SPI peripheral.",
73+
"ARD_SPI_TRANS_NONE": "none",
74+
"ARD_SPI_TRANS_VAL": "transfer",
75+
"ARD_SPI_TRANS_SLAVE": "to slave pin",
76+
"ARD_SPI_TRANS_TIP": "Send a SPI message to an specified slave device.",
77+
"ARD_SPI_TRANS_WARN1": "A setup block for %1 must be added to the workspace to use this block!",
78+
"ARD_SPI_TRANS_WARN2": "Old pin value %1 is no longer available.",
79+
"ARD_SPI_TRANSRETURN_TIP": "Send a SPI message to an specified slave device and get data back.",
80+
"ARD_STEPPER_SETUP": "Setup stepper motor",
81+
"ARD_STEPPER_MOTOR": "stepper motor:",
82+
"ARD_STEPPER_DEFAULT_NAME": "MyStepper",
83+
"ARD_STEPPER_NUMBER_OF_PINS": "Number of pins",
84+
"ARD_STEPPER_TWO_PINS": "2",
85+
"ARD_STEPPER_FOUR_PINS": "4",
86+
"ARD_STEPPER_PIN1": "pin1#",
87+
"ARD_STEPPER_PIN2": "pin2#",
88+
"ARD_STEPPER_PIN3": "pin3#",
89+
"ARD_STEPPER_PIN4": "pin4#",
90+
"ARD_STEPPER_REVOLVS": "how many steps per revolution",
91+
"ARD_STEPPER_SPEED": "set speed (rpm) to",
92+
"ARD_STEPPER_SETUP_TIP": "Configures a stepper motor pinout and other settings.",
93+
"ARD_STEPPER_STEP": "move stepper",
94+
"ARD_STEPPER_STEPS": "steps",
95+
"ARD_STEPPER_STEP_TIP": "Turns the stepper motor a specific number of steps.",
96+
"ARD_STEPPER_COMPONENT": "stepper",
97+
"ARD_COMPONENT_WARN1": "A %1 configuration block with the same %2 name must be added to use this block!",
98+
"ARD_TIME_DELAY": "wait",
99+
"ARD_TIME_MS": "milliseconds",
100+
"ARD_TIME_DELAY_TIP": "Wait specific time in milliseconds",
101+
"ARD_TIME_DELAY_MICROS": "microseconds",
102+
"ARD_TIME_DELAY_MICRO_TIP": "Wait specific time in microseconds",
103+
"ARD_TIME_MILLIS": "current elapsed Time (milliseconds)",
104+
"ARD_TIME_MILLIS_TIP": "Returns the number of milliseconds since the Arduino board began running the current program. Has to be stored in a positive long integer",
105+
"ARD_TIME_MICROS": "current elapsed Time (microseconds)",
106+
"ARD_TIME_MICROS_TIP": "Returns the number of microseconds since the Arduino board began running the current program. Has to be stored in a positive long integer",
107+
"ARD_TIME_INF": "wait forever (end program)",
108+
"ARD_TIME_INF_TIP": "Wait indefinitely, stopping the program.",
109+
"ARD_VAR_AS": "as",
110+
"ARD_VAR_AS_TIP": "Sets a value to a specific type",
111+
"ARD_PULSEREAD": "Read",
112+
"ARD_PULSEON": "pulse on pin #",
113+
"ARD_PULSETIMEOUT": "timeout after",
114+
"ARD_PULSETIMEOUT_MS": "",
115+
"ARD_PULSE_TIP": "Measures the duration of a pulse on the selected pin.",
116+
"ARD_PULSETIMEOUT_TIP": "Measures the duration of a pulse on the selected pin, if it is within the timeout.",
117+
"ARD_SETTONE": "Set tone on pin #",
118+
"ARD_TONEFREQ": "at frequency",
119+
"ARD_TONE_TIP": "Sets tone on pin to specified frequency within range 31 - 65535",
120+
"ARD_TONE_WARNING": "Frequency must be in range 31 - 65535",
121+
"ARD_NOTONE": "Turn off tone on pin #",
122+
"ARD_NOTONE_TIP": "Turns the tone off on the selected pin",
123+
"NEW_INSTANCE": "New instance...",
124+
"RENAME_INSTANCE": "Rename instance...",
125+
"NEW_INSTANCE_TITLE": "New instance name:",
126+
"RENAME_INSTANCE_TITLE": "Rename all '%1' instances to:"
127+
}

blockly/msg/json/es.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,5 @@
319319
"PROCEDURES_HIGHLIGHT_DEF": "Destacar definición de la función",
320320
"PROCEDURES_CREATE_DO": "Crear '%1'",
321321
"PROCEDURES_IFRETURN_TOOLTIP": "Si un valor es verdadero, entonces devuelve un segundo valor.",
322-
"PROCEDURES_IFRETURN_WARNING": "Advertencia: Este bloque solo puede ser utilizado dentro de la definición de una función.",
323-
"NEW_INSTANCE": "Nueva instancia...",
324-
"RENAME_INSTANCE": "Renombrar la instancia...",
325-
"NEW_INSTANCE_TITLE": "Nueva nombre de la instance:",
326-
"RENAME_INSTANCE_TITLE": "Renombrar todas las instancias '%1' a:"
322+
"PROCEDURES_IFRETURN_WARNING": "Advertencia: Este bloque solo puede ser utilizado dentro de la definición de una función."
327323
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"@metadata": {
3+
"authors": [
4+
"carlosperate"
5+
]
6+
},
7+
"NEW_INSTANCE": "Nueva instancia...",
8+
"RENAME_INSTANCE": "Renombrar la instancia...",
9+
"NEW_INSTANCE_TITLE": "Nueva nombre de la instance:",
10+
"RENAME_INSTANCE_TITLE": "Renombrar todas las instancias '%1' a:"
11+
}

0 commit comments

Comments
 (0)