Skip to content

Commit b47d838

Browse files
committed
Finish translation of pir
1 parent e2ecbf8 commit b47d838

4 files changed

Lines changed: 36 additions & 24 deletions

File tree

msg/tutorials/pir-1/zh-hans.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
MSG.title = "Webduino Blockly 课程 6-1:侦测人体红外线";
2+
MSG.subTitle = "课程 6-1:侦测人体红外线";
3+
MSG.demoDescription = "侦测到人体红外线变化时,让图片的灯泡发亮";

msg/tutorials/pir-2/zh-hans.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
MSG.title = "Webduino Blockly 课程 6-2:侦测人体红外线点亮 LED 灯";
2+
MSG.subTitle = "课程 6-2:侦测人体红外线点亮 LED 灯";
3+
MSG.demoDescription = "侦测到人体红外线变化时,让图片的灯泡发亮,并点亮 LED 灯";

templates/tutorials/pir-1.html

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,33 @@
11
<template id="head">
22
<meta charset="utf-8">
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
4-
<title>Webduino Blockly - 偵測人體紅外線</title>
4+
<title data-translation="title">Webduino Blockly - 偵測人體紅外線</title>
55
<!-- webduino -->
66
<script src="https://webduino.io/components/webduino-js/dist/webduino-all.min.js"></script>
77
<script src="https://blockly.webduino.io/webduino-blockly.js"></script>
88
<script src="https://blockly.webduino.io/lib/runtime.min.js"></script>
99
</template>
1010
<template id="body">
1111
<div id="light" class="off">
12-
<img src='http://i.imgur.com/T5H4MHE.png'></img>
13-
<img src='http://i.imgur.com/8qFj2Ou.png'></img>
12+
<img src="http://i.imgur.com/T5H4MHE.png"></img>
13+
<img src="http://i.imgur.com/8qFj2Ou.png"></img>
1414
</div>
1515
</template>
1616
<template id="css">
17-
#light{
18-
width:60%;
17+
#light {
18+
width: 60%;
1919
}
20-
#light img{
21-
width:100%;
22-
display:none;
20+
21+
#light img {
22+
width: 100%;
23+
display: none;
2324
}
24-
#light.off img:first-child{
25-
display:inline-block;
25+
26+
#light.off img:first-child {
27+
display: inline-block;
2628
}
27-
#light.on img:last-child{
28-
display:inline-block;
29+
30+
#light.on img:last-child {
31+
display: inline-block;
2932
}
3033
</template>

templates/tutorials/pir-2.html

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,33 @@
11
<template id="head">
22
<meta charset="utf-8">
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
4-
<title>Webduino Blockly - 偵測人體紅外線點亮 LED 燈</title>
4+
<title data-translation="title">Webduino Blockly - 偵測人體紅外線點亮 LED 燈</title>
55
<!-- webduino -->
66
<script src="https://webduino.io/components/webduino-js/dist/webduino-all.min.js"></script>
77
<script src="https://blockly.webduino.io/webduino-blockly.js"></script>
88
<script src="https://blockly.webduino.io/lib/runtime.min.js"></script>
99
</template>
1010
<template id="body">
1111
<div id="light" class="off">
12-
<img src='http://i.imgur.com/T5H4MHE.png'></img>
13-
<img src='http://i.imgur.com/8qFj2Ou.png'></img>
12+
<img src="http://i.imgur.com/T5H4MHE.png"></img>
13+
<img src="http://i.imgur.com/8qFj2Ou.png"></img>
1414
</div>
1515
</template>
1616
<template id="css">
17-
#light{
18-
width:60%;
17+
#light {
18+
width: 60%;
1919
}
20-
#light img{
21-
width:100%;
22-
display:none;
20+
21+
#light img {
22+
width: 100%;
23+
display: none;
2324
}
24-
#light.off img:first-child{
25-
display:inline-block;
25+
26+
#light.off img:first-child {
27+
display: inline-block;
2628
}
27-
#light.on img:last-child{
28-
display:inline-block;
29+
30+
#light.on img:last-child {
31+
display: inline-block;
2932
}
3033
</template>

0 commit comments

Comments
 (0)