File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 27
27
package blocks {
28
28
import scratch.* ;
29
29
import util.* ;
30
+ import translation.* ;
30
31
31
32
public class BlockIO {
32
33
@@ -295,10 +296,10 @@ public class BlockIO {
295
296
if ((b . args . length == 2 ) && (b . args [ 1 ] is BlockArg)) arg = b . args [ 1 ];
296
297
if (arg) {
297
298
var oldVal: String = arg. argValue;
298
- if (( oldVal == 'edge' ) || ( oldVal == '_edge_' )) arg. setArgValue('_edge_' , 'edge' );
299
- if (( oldVal == 'mouse' ) || ( oldVal == '_mouse_' )) arg. setArgValue('_mouse_' , 'mouse-pointer' );
300
- if (oldVal == '_myself_' ) arg. setArgValue('_myself_' , 'myself' );
301
- if (oldVal == '_stage_' ) arg. setArgValue('_stage_' , 'Stage' );
299
+ if (oldVal == 'edge' || oldVal == '_edge_' ) arg. setArgValue('_edge_' , Translator . map ( 'edge' ) );
300
+ if (oldVal == 'mouse' || oldVal == '_mouse_' ) arg. setArgValue('_mouse_' , Translator . map ( 'mouse-pointer' ) );
301
+ if (oldVal == '_myself_' ) arg. setArgValue('_myself_' , Translator . map ( 'myself' ) );
302
+ if (oldVal == '_stage_' ) arg. setArgValue('_stage_' , Translator . map ( 'Stage' ) );
302
303
}
303
304
}
304
305
You can’t perform that action at this time.
0 commit comments