mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Merge pull request #192 from nathan/transate-self-mouse
Fixed translation of "edge", "myself", "Stage", and "mouse-pointer" in block inputs
This commit is contained in:
commit
7217d8c0ca
1 changed files with 5 additions and 4 deletions
|
@ -27,6 +27,7 @@
|
|||
package blocks {
|
||||
import scratch.*;
|
||||
import util.*;
|
||||
import translation.*;
|
||||
|
||||
public class BlockIO {
|
||||
|
||||
|
@ -295,10 +296,10 @@ public class BlockIO {
|
|||
if ((b.args.length == 2) && (b.args[1] is BlockArg)) arg = b.args[1];
|
||||
if (arg) {
|
||||
var oldVal:String = arg.argValue;
|
||||
if ((oldVal == 'edge') || (oldVal == '_edge_')) arg.setArgValue('_edge_', 'edge');
|
||||
if ((oldVal == 'mouse') || (oldVal == '_mouse_')) arg.setArgValue('_mouse_', 'mouse-pointer');
|
||||
if (oldVal == '_myself_') arg.setArgValue('_myself_', 'myself');
|
||||
if (oldVal == '_stage_') arg.setArgValue('_stage_', 'Stage');
|
||||
if (oldVal == 'edge' || oldVal == '_edge_') arg.setArgValue('_edge_', Translator.map('edge'));
|
||||
if (oldVal == 'mouse' || oldVal == '_mouse_') arg.setArgValue('_mouse_', Translator.map('mouse-pointer'));
|
||||
if (oldVal == '_myself_') arg.setArgValue('_myself_', Translator.map('myself'));
|
||||
if (oldVal == '_stage_') arg.setArgValue('_stage_', Translator.map('Stage'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue