Skip to content

Commit b19271d

Browse files
committed
Done translation of button-4
1 parent a99f72f commit b19271d

4 files changed

Lines changed: 58 additions & 26 deletions

File tree

msg/tutorials/button-4/en.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
MSG.title = "Webduino Blockly Chapter 4-4 : Click button to play game";
22
MSG.subTitle = "Chapter 4-4 : Click button to play game";
33
MSG.demoDescription = "Run with NPC";
4+
MSG.gameStart = "START";
5+
MSG.beTheFirstToReach = "Be the first to reach";
6+
MSG.goal = "goal";
7+
MSG.toWinTheGame = "to win the game";
8+
MSG.NPC = "NPC: ";
9+
MSG.player = "Player: ";

msg/tutorials/button-4/zh-hans.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MSG.title = "Webduino Blockly 课程 4-4:点击按钮开关玩赛跑小游戏";
2+
MSG.subTitle = "课程 4-4:点击按钮开关玩赛跑小游戏";
3+
MSG.demoDescription = "使用按钮开关和电脑进行赛跑";
4+
MSG.gameStart = "开始赛跑";
5+
MSG.beTheFirstToReach = "先到";
6+
MSG.goal = "终点";
7+
MSG.toWinTheGame = "的人就赢";
8+
MSG.NPC = "电脑:";
9+
MSG.player = "玩家:";

msg/tutorials/button-4/zh-hant.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
MSG.title = "Webduino Blockly 課程 4-4:點擊按鈕開關玩賽跑小遊戲";
22
MSG.subTitle = "課程 4-4:點擊按鈕開關玩賽跑小遊戲";
33
MSG.demoDescription = "使用按鈕開關和電腦進行賽跑";
4+
MSG.gameStart = "開始賽跑";
5+
MSG.beTheFirstToReach = "先到";
6+
MSG.goal = "終點";
7+
MSG.toWinTheGame = "的人就贏";
8+
MSG.NPC = "電腦:";
9+
MSG.player = "玩家:";

templates/tutorials/button-4.html

Lines changed: 37 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,48 @@
88
<script src="https://blockly.webduino.io/lib/runtime.min.js"></script>
99
</template>
1010
<template id="body">
11-
<br/>
12-
先到 <span id="goal"></span> 的贏
13-
<br/><br/>
14-
電腦:<span id="npcshow">0</span>
15-
<br/>
16-
玩家:<span id="usershow">0</span>
17-
<br/>
18-
<br/>
19-
<div id="npc"><img id="npcimg" src="http://webduinoio.github.io/webduino-blockly/media/tutorials/run-cat.gif"></div>
20-
<div id="user"><img id="userimg" src="http://webduinoio.github.io/webduino-blockly/media/tutorials/run-lion.gif"></div>
21-
<button id="start" class="go">比賽開始</button>
11+
<br>
12+
<span data-translation="beTheFirstToReach">先到</span>
13+
<span id="goal" data-translation="goal">goal</span>
14+
<span data-translation="toWinTheGame">的贏</span>
15+
<br><br>
16+
<span data-translation="NPC">電腦:</span><span id="npcshow">0</span>
17+
<br>
18+
<span data-translation="player">玩家:</span><span id="usershow">0</span>
19+
<br>
20+
<br>
21+
<div id="npc">
22+
<img id="npcimg" src="http://webduinoio.github.io/webduino-blockly/media/tutorials/run-cat.gif">
23+
</div>
24+
<div id="user">
25+
<img id="userimg" src="http://webduinoio.github.io/webduino-blockly/media/tutorials/run-lion.gif">
26+
</div>
27+
<button id="start" class="go" data-translation="gameStart">比賽開始</button>
2228
</template>
2329
<template id="css">
24-
#start{
25-
font-size:30px;
26-
display:block;
27-
padding:10px;
28-
margin:10px auto;
30+
#start {
31+
font-size: 30px;
32+
display: block;
33+
padding: 10px;
34+
margin: 10px auto;
2935
}
30-
#start.go{
31-
display:none;
36+
37+
#start.go {
38+
display: none;
3239
}
33-
#npc, #user{
34-
transition:.3s;
40+
41+
#npc, #user {
42+
transition: .3s;
3543
}
36-
#npc img{
37-
width:100px;
38-
transform:scaleX(-1);
44+
45+
#npc img {
46+
width: 100px;
47+
transform: scaleX(-1);
3948
}
40-
#user img{
41-
width:100px;
42-
transform:scaleX(-1);
49+
50+
#user img {
51+
width: 100px;
52+
transform: scaleX(-1);
4353
}
54+
4455
</template>

0 commit comments

Comments
 (0)