Skip to content

Commit 5b63459

Browse files
committed
Finish translation of dht
1 parent 9c48767 commit 5b63459

4 files changed

Lines changed: 24 additions & 11 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
MSG.title = "Webduino Blockly 课程 5-2:绘制温湿度图表";
2+
MSG.subTitle = "课程 5-2:绘制温湿度图表";
3+
MSG.demoDescription = "使用温湿度传感器,利用温度与湿度绘制视觉化图表";
4+
MSG.temperature = "温度:";
5+
MSG.humidity = "湿度:";

msg/tutorials/dht-3/zh-hans.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
MSG.title = "Webduino Blockly 课程 5-3:使用 Firebase 纪录温湿度数值";
2+
MSG.subTitle = "课程 5-3:使用 Firebase 纪录温湿度数值";
3+
MSG.demoDescription = "使用 firebase 作为资料库,储存温度与湿度数值。";
4+
MSG.temperature = "温度:";
5+
MSG.humidity = "湿度:";

templates/tutorials/dht-1.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<template id="body">
1111
<div id="show">
1212
<span data-translation="temperature">溫度:</span>
13-
<span id="temperature">0</span>
14-
<b>o</b>C<br/>
13+
<span id="temperature">0</span>
14+
<br>
1515
<span data-translation="humidity">濕度:</span>
1616
<span id="humidity">0</span> %
1717
</div>

templates/tutorials/dht-3.html

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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:使用 Firebase 紀錄溫濕度數值</title>
4+
<title data-translation="title">Webduino Blockly:使用 Firebase 紀錄溫濕度數值</title>
55
<script src="https://blockly.webduino.io/lib/firebase.js"></script>
66
<!-- webduino -->
77
<script src="https://webduino.io/components/webduino-js/dist/webduino-all.min.js"></script>
@@ -10,19 +10,22 @@
1010
</template>
1111
<template id="body">
1212
<div id="show">
13-
溫度:<span id="temperature">0</span> <b>o</b>C<br/>
14-
濕度:<span id="humidity">0</span> %
13+
<span data-translation="temperature">溫度:</span>
14+
<span id="temperature">0</span><br>
15+
<span data-translation="humidity">濕度:</span>
16+
<span id="humidity">0</span> %
1517
</div>
1618
</template>
1719
<template id="css">
18-
#show{
19-
font-size:30px;
20+
#show {
21+
font-size: 30px;
2022
line-height: 40px;
2123
}
22-
#show b{
23-
display:inline-block;
24-
font-size:14px;
24+
25+
#show b {
26+
display: inline-block;
27+
font-size: 14px;
2528
vertical-align: top;
26-
margin-top:-10px;
29+
margin-top: -10px;
2730
}
2831
</template>

0 commit comments

Comments
 (0)