File tree Expand file tree Collapse file tree 5 files changed +19
-4
lines changed Expand file tree Collapse file tree 5 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ const EVENT_HANDLER = {
215
215
}
216
216
}
217
217
if ( ! foundRobotEvent ) {
218
- warnings . push ( 'This block is an event handler for an event that no longer exists.' ) ;
218
+ warnings . push ( Blockly . Msg . EVENT_HANDLER_ROBOT_EVENT_NOT_FOUND ) ;
219
219
}
220
220
}
221
221
@@ -266,15 +266,15 @@ const EVENT_HANDLER = {
266
266
}
267
267
}
268
268
if ( ! foundMechanismEvent ) {
269
- warnings . push ( 'This block is an event handler for an event that no longer exists.' ) ;
269
+ warnings . push ( Blockly . Msg . EVENT_HANDLER_MECHANISM_EVENT_NOT_FOUND ) ;
270
270
}
271
271
272
272
// Since we found the mechanism, we can break out of the loop.
273
273
break ;
274
274
}
275
275
}
276
276
if ( ! foundMechanism ) {
277
- warnings . push ( 'This block is an event handler for an event in a mechanism that no longer exists.' ) ;
277
+ warnings . push ( Blockly . Msg . EVENT_HANDLER_MECHANISM_NOT_FOUND ) ;
278
278
}
279
279
}
280
280
}
Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ export function customTokens(t: (key: string) => string): typeof Blockly.Msg {
37
37
t ( 'BLOCKLY.PARAMETERS_CAN_ONLY_GO_IN_THEIR_METHODS_BLOCK' ) ,
38
38
EVENT_HANDLER_ALREADY_ON_WORKSPACE :
39
39
t ( 'BLOCKLY.EVENT_HANDLER_ALREADY_ON_WORKSPACE' ) ,
40
+ EVENT_HANDLER_ROBOT_EVENT_NOT_FOUND :
41
+ t ( 'BLOCKLY.EVENT_HANDLER_ROBOT_EVENT_NOT_FOUND' ) ,
42
+ EVENT_HANDLER_MECHANISM_EVENT_NOT_FOUND :
43
+ t ( 'BLOCKLY.EVENT_HANDLER_MECHANISM_EVENT_NOT_FOUND' ) ,
44
+ EVENT_HANDLER_MECHANISM_NOT_FOUND :
45
+ t ( 'BLOCKLY.EVENT_HANDLER_MECHANISM_NOT_FOUND' ) ,
40
46
MECHANISMS : t ( 'MECHANISMS' ) ,
41
47
OPMODES : t ( 'OPMODES' ) ,
42
48
COMPONENTS : t ( 'BLOCKLY.COMPONENTS' ) ,
@@ -103,4 +109,4 @@ export function customTokens(t: (key: string) => string): typeof Blockly.Msg {
103
109
MRC_CATEGORY_TEST : t ( 'BLOCKLY.CATEGORY.TEST' ) ,
104
110
MRC_PRINT : t ( 'BLOCKLY.PRINT' ) ,
105
111
}
106
- } ;
112
+ } ;
Original file line number Diff line number Diff line change 78
78
"PARAMETER" : " parameter" ,
79
79
"PARAMETERS_CAN_ONLY_GO_IN_THEIR_METHODS_BLOCK" : " Parameters can only go in their method's block" ,
80
80
"EVENT_HANDLER_ALREADY_ON_WORKSPACE" : " This event handler is already on the workspace." ,
81
+ "EVENT_HANDLER_ROBOT_EVENT_NOT_FOUND" : " This block is an event handler for an event that no longer exists." ,
82
+ "EVENT_HANDLER_MECHANISM_EVENT_NOT_FOUND" : " This block is an event handler for an event that no longer exists." ,
83
+ "EVENT_HANDLER_MECHANISM_NOT_FOUND" : " This block is an event handler for an event in a mechanism that no longer exists." ,
81
84
"COMPONENTS" : " Components" ,
82
85
"PRIVATE_COMPONENTS" : " Private Components" ,
83
86
"EVENTS" : " Events" ,
Original file line number Diff line number Diff line change 79
79
"PARAMETER" : " parámetro" ,
80
80
"PARAMETERS_CAN_ONLY_GO_IN_THEIR_METHODS_BLOCK" : " Los parámetros solo pueden ir en el bloque de su método" ,
81
81
"EVENT_HANDLER_ALREADY_ON_WORKSPACE" : " Este controlador de eventos ya está en el área de trabajo." ,
82
+ "EVENT_HANDLER_ROBOT_EVENT_NOT_FOUND" : " Este bloque es un controlador de eventos para un evento que ya no existe." ,
83
+ "EVENT_HANDLER_MECHANISM_EVENT_NOT_FOUND" : " Este bloque es un controlador de eventos para un evento que ya no existe." ,
84
+ "EVENT_HANDLER_MECHANISM_NOT_FOUND" : " Este bloque es un controlador de eventos para un evento en un mecanismo que ya no existe." ,
82
85
"COMPONENTS" : " Componentes" ,
83
86
"PRIVATE_COMPONENTS" : " Componentes Privados" ,
84
87
"EVENTS" : " Eventos" ,
Original file line number Diff line number Diff line change 78
78
"PARAMETER" : " פרמטר" ,
79
79
"PARAMETERS_CAN_ONLY_GO_IN_THEIR_METHODS_BLOCK" : " פרמטרים יכולים להופיע רק בתוך הבלוק של המתודה שלהם." ,
80
80
"EVENT_HANDLER_ALREADY_ON_WORKSPACE" : " מנהל האירועים הזה כבר נמצא בסביבת העבודה." ,
81
+ "EVENT_HANDLER_ROBOT_EVENT_NOT_FOUND" : " הבלוק הזה הוא מנהל אירועים לאירוע שכבר לא קיים." ,
82
+ "EVENT_HANDLER_MECHANISM_EVENT_NOT_FOUND" : " הבלוק הזה הוא מנהל אירועים לאירוע שכבר לא קיים." ,
83
+ "EVENT_HANDLER_MECHANISM_NOT_FOUND" : " הבלוק הזה הוא מנהל אירועים לאירוע במנגנון שכבר לא קיים." ,
81
84
"COMPONENTS" : " רכיבים" ,
82
85
"PRIVATE_COMPONENTS" : " רכיבים פרטיים" ,
83
86
"EVENTS" : " אירועים" ,
You can’t perform that action at this time.
0 commit comments