Skip to content

Commit 5d07aee

Browse files
committed
Complete i18n
1 parent d8887f6 commit 5d07aee

File tree

4 files changed

+24
-27
lines changed

4 files changed

+24
-27
lines changed

blockly/blocks.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Blockly.Blocks['lora_send'] = {
1818
this.appendValueInput("data")
1919
.setCheck(null)
2020
.appendField(new Blockly.FieldVariable("lora"), "lora")
21-
.appendField("傳送字串");
21+
.appendField(Blockly.Msg.WEBDUINO_LORA_SEND_STRING);
2222
this.setPreviousStatement(true, null);
2323
this.setNextStatement(true, null);
2424
this.setColour(65);
@@ -33,13 +33,13 @@ Blockly.Blocks['lora_send_ack'] = {
3333
this.appendValueInput("data")
3434
.setCheck(null)
3535
.appendField(new Blockly.FieldVariable("lora"), "lora")
36-
.appendField("傳送字串");
36+
.appendField(Blockly.Msg.WEBDUINO_LORA_SEND_STRING);
3737
this.appendStatementInput("send_ok")
3838
.setCheck(null)
39-
.appendField("成功後執行");
39+
.appendField(Blockly.Msg.WEBDUINO_LORA_SUCCESS_CALLBACK);
4040
this.appendStatementInput("send_failure")
4141
.setCheck(null)
42-
.appendField("失敗後執行");
42+
.appendField(Blockly.Msg.WEBDUINO_LORA_FAIL_CALLBACK);
4343
this.setPreviousStatement(true, null);
4444
this.setNextStatement(true, null);
4545
this.setColour(65);
@@ -54,7 +54,7 @@ Blockly.Blocks['lora_recv_ack'] = {
5454
this.appendStatementInput("recv_ok")
5555
.setCheck(null)
5656
.appendField(new Blockly.FieldVariable("lora"), "lora")
57-
.appendField("接收字串後執行");
57+
.appendField(Blockly.Msg.WEBDUINO_LORA_RECEIVE_CALLBACK);
5858
this.setPreviousStatement(true, null);
5959
this.setNextStatement(true, null);
6060
this.setColour(65);
@@ -68,7 +68,7 @@ Blockly.Blocks['lora_recv_data'] = {
6868
init: function() {
6969
this.appendDummyInput()
7070
.appendField(new Blockly.FieldVariable("lora"), "lora")
71-
.appendField("接收的字串");
71+
.appendField(Blockly.Msg.WEBDUINO_LORA_RECEIVED_STRING);
7272
this.setOutput(true, null);
7373
this.setColour(65);
7474
this.setTooltip('');

blockly/msg/blocks/en.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// LCD1602
2-
Blockly.Msg.WEBDUINO_LCD1602 = "LCD (1602),SDA ";
3-
Blockly.Msg.WEBDUINO_LCD1602_SCL = " SCL";
4-
Blockly.Msg.WEBDUINO_LCD1602_PRINT = "LCD Print:";
5-
Blockly.Msg.WEBDUINO_LCD1602_CLEAR = "Clear LCD Screen";
6-
Blockly.Msg.WEBDUINO_LCD1602_LOCATE_X = "LCD Col:";
7-
Blockly.Msg.WEBDUINO_LCD1602_LOCATE_Y = "LCD Row:";
1+
// LoRa
2+
Blockly.Msg.WEBDUINO_LORA_SEND_STRING = "Send string";
3+
Blockly.Msg.WEBDUINO_LORA_SUCCESS_CALLBACK = "Do ... after success";
4+
Blockly.Msg.WEBDUINO_LORA_FAIL_CALLBACK = "Do ... after failure";
5+
Blockly.Msg.WEBDUINO_LORA_RECEIVE_CALLBACK = "Do ... after receiving string";
6+
Blockly.Msg.WEBDUINO_LORA_RECEIVED_STRING = "Redeived string";

blockly/msg/blocks/zh-hans.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// LCD1602
2-
Blockly.Msg.WEBDUINO_LCD1602 = "LCD (1602),SDA ";
3-
Blockly.Msg.WEBDUINO_LCD1602_SCL = " SCL";
4-
Blockly.Msg.WEBDUINO_LCD1602_PRINT = "LCD 显示:";
5-
Blockly.Msg.WEBDUINO_LCD1602_CLEAR = "清除 LCD 萤幕";
6-
Blockly.Msg.WEBDUINO_LCD1602_LOCATE_X = "LCD 设定列:";
7-
Blockly.Msg.WEBDUINO_LCD1602_LOCATE_Y = "LCD 设定栏:";
1+
// LoRa
2+
Blockly.Msg.WEBDUINO_LORA_SEND_STRING = "传送字串";
3+
Blockly.Msg.WEBDUINO_LORA_SUCCESS_CALLBACK = "成功后执行";
4+
Blockly.Msg.WEBDUINO_LORA_FAIL_CALLBACK = "失败后执行";
5+
Blockly.Msg.WEBDUINO_LORA_RECEIVE_CALLBACK = "接收字串后执行";
6+
Blockly.Msg.WEBDUINO_LORA_RECEIVED_STRING = "接收的字串";

blockly/msg/blocks/zh-hant.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// LCD1602
2-
Blockly.Msg.WEBDUINO_LCD1602 = "LCD (1602),SDA ";
3-
Blockly.Msg.WEBDUINO_LCD1602_SCL = " SCL";
4-
Blockly.Msg.WEBDUINO_LCD1602_PRINT = "LCD 顯示:";
5-
Blockly.Msg.WEBDUINO_LCD1602_CLEAR = "清除 LCD 螢幕";
6-
Blockly.Msg.WEBDUINO_LCD1602_LOCATE_X = "LCD 設定列:";
7-
Blockly.Msg.WEBDUINO_LCD1602_LOCATE_Y = "LCD 設定欄:";
1+
// LoRa
2+
Blockly.Msg.WEBDUINO_LORA_SEND_STRING = "傳送字串";
3+
Blockly.Msg.WEBDUINO_LORA_SUCCESS_CALLBACK = "成功後執行";
4+
Blockly.Msg.WEBDUINO_LORA_FAIL_CALLBACK = "失敗後執行";
5+
Blockly.Msg.WEBDUINO_LORA_RECEIVE_CALLBACK = "接收字串後執行";
6+
Blockly.Msg.WEBDUINO_LORA_RECEIVED_STRING = "接收的字串";

0 commit comments

Comments
 (0)