From f522d269fe9fac35db531e4404a301e6852d9c88 Mon Sep 17 00:00:00 2001 From: bromagosa Date: Tue, 12 Jul 2016 11:42:13 +0200 Subject: [PATCH] PWM block fixed, again. --- snap/s4a/objects.js | 4 ++-- snap/s4a/s4a-lang-.js | 2 +- snap/s4a/s4a-lang-ca.js | 2 +- snap/s4a/s4a-lang-cs.js | 2 +- snap/s4a/s4a-lang-de.js | 2 +- snap/s4a/s4a-lang-es.js | 2 +- snap/s4a/s4a-lang-et.js | 2 +- snap/s4a/s4a-lang-he.js | 2 +- snap/s4a/s4a-lang-it.js | 2 +- snap/s4a/s4a-lang-nl.js | 2 +- snap/s4a/s4a-lang-pt.js | 2 +- snap/s4a/s4a-lang-pt_BR.js | 2 +- snap/s4a/s4a-lang-ru.js | 2 +- snap/s4a/s4a-lang-uk.js | 2 +- snap/s4a/s4a-lang-zh.js | 2 +- 15 files changed, 16 insertions(+), 16 deletions(-) diff --git a/snap/s4a/objects.js b/snap/s4a/objects.js index 41d4e49b..c268fd9d 100644 --- a/snap/s4a/objects.js +++ b/snap/s4a/objects.js @@ -83,8 +83,8 @@ SpriteMorph.prototype.initArduinoBlocks = function () { only: SpriteMorph, type: 'command', category: 'arduino', - spec: 'set pin %pwmPin to %n value', - defaults: [128], + spec: 'set pin %pwmPin to value %n', + defaults: [null, 128], translatable: true }; diff --git a/snap/s4a/s4a-lang-.js b/snap/s4a/s4a-lang-.js index 819bc8bc..6a3aae1f 100644 --- a/snap/s4a/s4a-lang-.js +++ b/snap/s4a/s4a-lang-.js @@ -112,7 +112,7 @@ s4aTempDict = { 'set servo %servoPin to %servoValue': '', - 'set pin %pwmPin to %n value': + 'set pin %pwmPin to value %n': '', 'Connecting board at port\n': diff --git a/snap/s4a/s4a-lang-ca.js b/snap/s4a/s4a-lang-ca.js index 55069ef8..e886fad8 100644 --- a/snap/s4a/s4a-lang-ca.js +++ b/snap/s4a/s4a-lang-ca.js @@ -111,7 +111,7 @@ s4aTempDict = { 'set servo %servoPin to %servoValue': 'posar el servo %servoPin a %servoValue', - 'set pin %pwmPin to %n value': + 'set pin %pwmPin to value %n': 'posar el pin analògic %pwmPin al valor %n', 'Connecting board at port\n': diff --git a/snap/s4a/s4a-lang-cs.js b/snap/s4a/s4a-lang-cs.js index 8f1be66b..71daab30 100644 --- a/snap/s4a/s4a-lang-cs.js +++ b/snap/s4a/s4a-lang-cs.js @@ -107,7 +107,7 @@ s4aTempDict = { 'set servo %servoPin to %servoValue': 'nastav servo %servoPin na %servoValue', - 'set pin %pwmPin to %n value': + 'set pin %pwmPin to value %n': 'nastav PWM pin %pwmPin na %n', 'Connecting board at port\n': diff --git a/snap/s4a/s4a-lang-de.js b/snap/s4a/s4a-lang-de.js index 9edfae24..61d27f0e 100644 --- a/snap/s4a/s4a-lang-de.js +++ b/snap/s4a/s4a-lang-de.js @@ -107,7 +107,7 @@ s4aTempDict = { 'set servo %servoPin to %servoValue': 'Setze Servo %servoPin auf %servoValue', - 'set pin %pwmPin to %n value': + 'set pin %pwmPin to value %n': 'Setze Pin %pwmPin auf %n', 'Connecting board at port\n': diff --git a/snap/s4a/s4a-lang-es.js b/snap/s4a/s4a-lang-es.js index 833b2b22..16a941ae 100644 --- a/snap/s4a/s4a-lang-es.js +++ b/snap/s4a/s4a-lang-es.js @@ -107,7 +107,7 @@ s4aTempDict = { 'set servo %servoPin to %servoValue': 'fijar servo %servoPin en %servoValue', - 'sset pin %pwmPin to %n value': + 'set pin %pwmPin to value %n': 'fijar pin %pwmPin al valor %n', 'Connecting board at port\n': diff --git a/snap/s4a/s4a-lang-et.js b/snap/s4a/s4a-lang-et.js index 56e35ac2..85da5b51 100644 --- a/snap/s4a/s4a-lang-et.js +++ b/snap/s4a/s4a-lang-et.js @@ -112,7 +112,7 @@ s4aTempDict = { 'set servo %servoPin to %servoValue': 'määra servoviigule %servoPin väärtus %servoValue', - 'set pin %pwmPin to %n value': + 'set pin %pwmPin to value %n': 'määra viigule %pwmPin väärtus %n', 'Connecting board at port\n': diff --git a/snap/s4a/s4a-lang-he.js b/snap/s4a/s4a-lang-he.js index ea3ab631..7a3baf25 100644 --- a/snap/s4a/s4a-lang-he.js +++ b/snap/s4a/s4a-lang-he.js @@ -68,7 +68,7 @@ 'set digital pin %digitalPin to %b': '%b -ל %digitalPin דיגיטליית רגל שנה', 'set servo %servoPin to %servoValue': '%servoValue -ל %servoPin ברגל מנוע הבא', - 'sset pin %pwmPin to %n value': '%n -ל %pwmPin ברגל PWM קבע', + 'set pin %pwmPin to value %n': '%n -ל %pwmPin ברגל PWM קבע', 'Connecting board at port\n': 'חבר לכניסה\n', 'An Arduino board has been connected. Happy prototyping!': 'ארדוינו חובר בהצלחה!', diff --git a/snap/s4a/s4a-lang-it.js b/snap/s4a/s4a-lang-it.js index 8951ab1f..0b4e9be1 100644 --- a/snap/s4a/s4a-lang-it.js +++ b/snap/s4a/s4a-lang-it.js @@ -110,7 +110,7 @@ s4aTempDict = { 'set servo %servoPin to %servoValue': 'imposta servo %servoPin a %servoValue', - 'set pin %pwmPin to %n value': + 'set pin %pwmPin to value %n': 'imposta il pin %pwmPin a %n', 'Connecting board at port\n': diff --git a/snap/s4a/s4a-lang-nl.js b/snap/s4a/s4a-lang-nl.js index 48d07de5..a860378f 100644 --- a/snap/s4a/s4a-lang-nl.js +++ b/snap/s4a/s4a-lang-nl.js @@ -107,7 +107,7 @@ s4aTempDict = { 'set servo %servoPin to %servoValue': 'zet servo %servoPin op %servoValue', - 'set pin %pwmPin to %n value': + 'set pin %pwmPin to value %n': 'zet pin %pwmPin op %n', 'Connecting board at port\n': diff --git a/snap/s4a/s4a-lang-pt.js b/snap/s4a/s4a-lang-pt.js index 1fb49139..57bbe132 100644 --- a/snap/s4a/s4a-lang-pt.js +++ b/snap/s4a/s4a-lang-pt.js @@ -111,7 +111,7 @@ s4aTempDict = { 'set servo %servoPin to %servoValue': 'coloca o servo %servoPin %servoValue', - 'set pin %pwmPin to %n value': + 'set pin %pwmPin to value %n': 'coloca no pino (PWM) %pwmPin o valor %n', 'Connecting board at port\n': diff --git a/snap/s4a/s4a-lang-pt_BR.js b/snap/s4a/s4a-lang-pt_BR.js index d6e74e3d..b3ed97bf 100644 --- a/snap/s4a/s4a-lang-pt_BR.js +++ b/snap/s4a/s4a-lang-pt_BR.js @@ -125,7 +125,7 @@ s4aTempDict = { 'set servo %servoPin to %servoValue': 'posicione o servo %servoPin em %servoValue', - 'set pin %pwmPin to %n value': + 'set pin %pwmPin to value %n': 'coloque no pino %pwmPin o valor %n', 'Connecting board at port\n': diff --git a/snap/s4a/s4a-lang-ru.js b/snap/s4a/s4a-lang-ru.js index 4cdc352a..6743d53a 100644 --- a/snap/s4a/s4a-lang-ru.js +++ b/snap/s4a/s4a-lang-ru.js @@ -100,7 +100,7 @@ s4aTempDict = { 'set servo %servoPin to %servoValue': 'изменить статус разъема серво %servoPin нa %servoValue', - 'set pin %pwmPin to %n value': + 'set pin %pwmPin to value %n': 'изменить статус разъема PWM %pwmPin на %n', 'Connecting board at port\n': diff --git a/snap/s4a/s4a-lang-uk.js b/snap/s4a/s4a-lang-uk.js index 1095c6aa..45d7945b 100644 --- a/snap/s4a/s4a-lang-uk.js +++ b/snap/s4a/s4a-lang-uk.js @@ -100,7 +100,7 @@ s4aTempDict = { 'set servo %servoPin to %servoValue': 'змінити статус роз\u2019єму серво %servoPin нa %servoValue', - 'set pin %pwmPin to %n value': + 'set pin %pwmPin to value %n': 'змінити статус роз\u2019єму PWM %pwmPin на %n', 'Connecting board at port\n': diff --git a/snap/s4a/s4a-lang-zh.js b/snap/s4a/s4a-lang-zh.js index 88535729..8f0004ef 100644 --- a/snap/s4a/s4a-lang-zh.js +++ b/snap/s4a/s4a-lang-zh.js @@ -68,7 +68,7 @@ s4aTempDict = { 'set servo %servoPin to %servoValue': '设置伺服针脚 %servoPin 为 %servoValue', - 'set pin %pwmPin to %n value': + 'set pin %pwmPin to value %n': '设置PWM %pwmPin 为 %n', 'Connecting board at port\n':