Unverified Commit d37f1050 authored by Justus's avatar Justus Committed by Jeffrey I. Schiller

Fix Blockly Verification with Other Languages

Change-Id: Ic5f7f2c42d47b960bc106c46fd7d70e3e37b3f69
parent ce6a3600
......@@ -300,7 +300,7 @@ Blockly.Blocks.component_event = {
for (var x = 0; x < varList.length; ++x) {
var found = false;
for (var i = 0, param; param = params[i]; ++i) {
if (param.name == varList[x]) {
if (window.parent.BlocklyPanel_getLocalizedParameterName(param.name) == varList[x]) {
found = true;
break;
}
......@@ -580,7 +580,7 @@ Blockly.Blocks.component_method = {
for (var x = 0; x < argList.length; ++x) {
var found = false;
for (var i = 0, param; param = params[i]; ++i) {
if (param.name == argList[x]) {
if (window.parent.BlocklyPanel_getLocalizedParameterName(param.name) == argList[x]) {
var input = argInputList[argList[x]];
if (!input || !input.connection) {
modifiedParameters = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment