Skip to content

Commit fddd735

Browse files
committed
Finish translation of servo
1 parent 3aaf4a3 commit fddd735

6 files changed

Lines changed: 51 additions & 28 deletions

File tree

msg/tutorials/servo-1/en.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
MSG.title = "Webduino Blockly Chapter 8-1 : Controlling a Servomotor";
2-
MMSG.subTitle = "Chapter 8-1 : Controlling a Servomotor";
2+
MSG.subTitle = "Chapter 8-1 : Controlling a Servomotor";
33
MSG.demoDescription = "Click on the button below to make the servomotor move at the corresponding angle.";
4-
MSG.btnLeft90 = "Left 90 deg";
5-
MSG.btnLeft60 = "Left 60 deg";
6-
MSG.btnLeft30 = "Left 30 deg";
4+
MSG.btnLeft90 = "Left 90°";
5+
MSG.btnLeft60 = "Left 60°";
6+
MSG.btnLeft30 = "Left 30°";
77
MSG.btnCenter = "Center";
8-
MSG.btnRight30 = "Right 30 deg";
9-
MSG.btnRight60 = "Right 60 deg";
10-
MSG.btnRight90 = "Right 90 deg";
8+
MSG.btnRight30 = "Right 30°";
9+
MSG.btnRight60 = "Right 60°";
10+
MSG.btnRight90 = "Right 90°";

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
MSG.title = "Webduino Blockly 课程 8-1:伺服马达";
2+
MSG.subTitle = "课程 8-1:伺服马达";
3+
MSG.demoDescription = "点选按钮使伺服马达转到对应的角度";
4+
MSG.btnLeft90 = "左转 90°";
5+
MSG.btnLeft60 = "左转 60°";
6+
MSG.btnLeft30 = "左转 30°";
7+
MSG.btnCenter = "保持在中间";
8+
MSG.btnRight30 = "右转 30°";
9+
MSG.btnRight60 = "右转 60°";
10+
MSG.btnRight90 = "右转 90°";

msg/tutorials/servo-1/zh-hant.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
MSG.title = "Webduino Blockly 課程 8-1:伺服馬達";
22
MSG.subTitle = "課程 8-1:伺服馬達";
33
MSG.demoDescription = "點選按鈕使伺服馬達轉到對應的角度";
4-
MSG.btnLeft90 = "左轉 90";
5-
MSG.btnLeft60 = "左轉 60";
6-
MSG.btnLeft30 = "左轉 30";
4+
MSG.btnLeft90 = "左轉 90°";
5+
MSG.btnLeft60 = "左轉 60°";
6+
MSG.btnLeft30 = "左轉 30°";
77
MSG.btnCenter = "保持在中間";
8-
MSG.btnRight30 = "右轉 30";
9-
MSG.btnRight60 = "右轉 60";
10-
MSG.btnRight90 = "右轉 90";
8+
MSG.btnRight30 = "右轉 30°";
9+
MSG.btnRight60 = "右轉 60°";
10+
MSG.btnRight90 = "右轉 90°";

msg/tutorials/servo-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 课程 8-2:使用按钮开关控制伺服马达";
2+
MSG.subTitle = "课程 8-2:使用按钮开关控制伺服马达";
3+
MSG.demoDescription = "点选按钮开关让伺服马达旋转,在下方显示旋转角度,长按开关则恢复原状";

templates/tutorials/servo-1.html

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,35 @@
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">
11-
<button id="btnLeft90">左轉 90 度</button>
12-
<button id="btnLeft60">左轉 60 度</button>
13-
<button id="btnLeft30">左轉 30 度</button><br/>
14-
<button id="btnCenter">保持在中間</button><br/>
15-
<button id="btnRight30">右轉 30 度</button>
16-
<button id="btnRight60">右轉 60 度</button>
17-
<button id="btnRight90">右轉 90 度</button>
11+
<div class="centerBox">
12+
<button id="btnLeft90" data-translation="btnLeft90">左轉 90 度</button>
13+
<button id="btnLeft60" data-translation="btnLeft60">左轉 60 度</button>
14+
<button id="btnLeft30" data-translation="btnLeft30">左轉 30 度</button><br>
15+
</div>
16+
<div class="centerBox">
17+
<button id="btnCenter" data-translation="btnCenter">保持在中間</button><br>
18+
</div>
19+
<div class="centerBox">
20+
<button id="btnRight30" data-translation="btnRight30">右轉 30 度</button>
21+
<button id="btnRight60" data-translation="btnRight60">右轉 60 度</button>
22+
<button id="btnRight90" data-translation="btnRight90">右轉 90 度</button>
23+
</div>
1824
</template>
1925
<template id="css">
20-
button{
21-
font-size:16px;
22-
margin:5px;
23-
padding:10px;
26+
.centerBox {
27+
text-align: center;
28+
}
29+
30+
button {
31+
font-size: 16px;
32+
margin: 5px;
33+
padding: 10px;
2434
}
2535
</template>

templates/tutorials/servo-2.html

Lines changed: 3 additions & 3 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 - 使用按鈕開關控制伺服馬達</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>
@@ -11,7 +11,7 @@
1111
<div id="show">0</div>
1212
</template>
1313
<template id="css">
14-
#show{
15-
font-size:120px;
14+
#show {
15+
font-size: 120px;
1616
}
1717
</template>

0 commit comments

Comments
 (0)