Skip to content

Commit 735a017

Browse files
committed
更新 G3 積木的幫助網址,將其指向新的資源連結,並在多語言檔案中新增相應的翻譯。
1 parent ac35a41 commit 735a017

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

blockly/blocks.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Blockly.Blocks['g3_new'] = {
4343
this.setOutput(true);
4444
this.setTooltip('');
4545
this.setColour(230);
46-
this.setHelpUrl(mainUrl + 'basic/index.html' + utmUrl);
46+
this.setHelpUrl(Blockly.Msg.WEBDUINO_G3_HELPURL);
4747
}
4848
};
4949

@@ -62,7 +62,7 @@ Blockly.Blocks['g3_get'] = {
6262
this.setNextStatement(true);
6363
this.setTooltip('');
6464
this.setColour(65);
65-
this.setHelpUrl(mainUrl + 'basic/index.html' + utmUrl);
65+
this.setHelpUrl(Blockly.Msg.WEBDUINO_G3_HELPURL);
6666
}
6767
};
6868

@@ -79,7 +79,7 @@ Blockly.Blocks['g3_read'] = {
7979
this.setNextStatement(true);
8080
this.setTooltip('');
8181
this.setColour(65);
82-
this.setHelpUrl(mainUrl + 'basic/index.html' + utmUrl);
82+
this.setHelpUrl(Blockly.Msg.WEBDUINO_G3_HELPURL);
8383
}
8484
};
8585

@@ -113,7 +113,7 @@ Blockly.Blocks['g3_trigger'] = {
113113
this.setNextStatement(true, null);
114114
this.setColour(65);
115115
this.setTooltip('');
116-
this.setHelpUrl(mainUrl + 'basic/index.html' + utmUrl);
116+
this.setHelpUrl(Blockly.Msg.WEBDUINO_G3_HELPURL);
117117
}
118118
};
119119

@@ -129,6 +129,6 @@ Blockly.Blocks['g3_get_number'] = {
129129
this.setOutput(true);
130130
this.setTooltip('');
131131
this.setColour(35);
132-
this.setHelpUrl(mainUrl + 'basic/index.html' + utmUrl);
132+
this.setHelpUrl(Blockly.Msg.WEBDUINO_G3_HELPURL);
133133
}
134134
};

blockly/msg/blocks/en.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ Blockly.Msg.WEBDUINO_G3_RUN = "Second(s), Run";
1616
Blockly.Msg.WEBDUINO_G3_INFINITY = "Infinity";
1717
Blockly.Msg.WEBDUINO_G3_TIMES = "Times";
1818
Blockly.Msg.WEBDUINO_G3_FIRMWARE_COMMENT = "This block will enable board to have ability to receive and upload data constantly even without browser running.";
19+
Blockly.Msg.WEBDUINO_G3_HELPURL = "https://resource.webduino.io/docs/cloud-component/sensor/pm25";

blockly/msg/blocks/zh-hans.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ Blockly.Msg.WEBDUINO_G3_INTERVAL = "每隔";
1515
Blockly.Msg.WEBDUINO_G3_RUN = "秒,执行";
1616
Blockly.Msg.WEBDUINO_G3_INFINITY = "无限";
1717
Blockly.Msg.WEBDUINO_G3_TIMES = "次";
18-
Blockly.Msg.WEBDUINO_G3_FIRMWARE_COMMENT = "此积木会将动作写入开发板,浏览器关闭后仍会持续运行";
18+
Blockly.Msg.WEBDUINO_G3_FIRMWARE_COMMENT = "此积木会将动作写入开发板,浏览器关闭后仍会持续运行";
19+
Blockly.Msg.WEBDUINO_G3_HELPURL = "https://resource.webduino.io/docs/cloud-component/sensor/pm25";

blockly/msg/blocks/zh-hant.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ Blockly.Msg.WEBDUINO_G3_INTERVAL = "每隔";
1515
Blockly.Msg.WEBDUINO_G3_RUN = "秒,執行";
1616
Blockly.Msg.WEBDUINO_G3_INFINITY = "無限";
1717
Blockly.Msg.WEBDUINO_G3_TIMES = "次";
18-
Blockly.Msg.WEBDUINO_G3_FIRMWARE_COMMENT = "此積木會將動作寫入開發板,瀏覽器關閉後仍會持續運行";
18+
Blockly.Msg.WEBDUINO_G3_FIRMWARE_COMMENT = "此積木會將動作寫入開發板,瀏覽器關閉後仍會持續運行";
19+
Blockly.Msg.WEBDUINO_G3_HELPURL = "https://resource.webduino.io/docs/cloud-component/sensor/pm25";

0 commit comments

Comments
 (0)