Skip to content

Commit e80bae2

Browse files
GuniveMarkusBordihn
authored andcommitted
Added Chinese Translation (#202)
* Create _zho.js * Added Chinese Translation * Update blockly.js * Update connect_screen.js * Update console.js * Update general.js * Update library.js * Update welcome_screen.js * Update status.js * Update sidebar.js * Update setting_screen.js * Update select_screen.js * Update navigation.js
1 parent b701248 commit e80bae2

File tree

12 files changed

+371
-0
lines changed

12 files changed

+371
-0
lines changed

locales/zho/_zho.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* @fileoverview Translation file (chinese).
3+
*
4+
* @license Copyright 2018 The Coding with Chrome Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* @author [email protected] (Chan)
19+
*/
20+
window['Locales'] = window['Locales'] || {};
21+
Locales['zho'] = Locales['zho'] || {};

locales/zho/blockly.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* @fileoverview Blockly Translation file (chinese).
3+
*
4+
* @license Copyright 2018 The Coding with Chrome Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* @author [email protected] (Chan)
19+
*/
20+
Locales['zho']['BLOCKLY'] = {
21+
'CREATE_NEW_VARIABLE': '设置新变量',
22+
};

locales/zho/connect_screen.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**
2+
* @fileoverview Translation file for the Connect screen (chinese).
3+
*
4+
* @license Copyright 2018 The Coding with Chrome Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
19+
*/
20+
/* eslint-disable max-len */
21+
Locales['zho']['CONNECT_SCREEN'] = {
22+
'TURN_ON_NOTE': '请打开以下设备',
23+
'CONNECT_NOTE': '请打开蓝牙设备',
24+
'SEARCH_FOR': '搜索',
25+
'SEARCH_FOR_DEVICE': '正在搜索蓝牙设备',
26+
};

locales/zho/console.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* @fileoverview Translation file for the Console (chinese).
3+
*
4+
* @license Copyright 2018 The Coding with Chrome Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* @author [email protected] (Chan)
19+
*/
20+
Locales['zho']['CONSOLE'] = {
21+
'BUTTON_TOOLTIP': '显示/隐藏控制台',
22+
'CLEAR': '清除控制台 (CTRL + L)',
23+
'COMMAND_PLACEHOLDER': '在这里输入指令',
24+
};

locales/zho/general.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* @fileoverview General Translation file (chinese).
3+
*
4+
* @license Copyright 2018 The Coding with Chrome Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* @author [email protected] (Chan)
19+
*/
20+
Locales['zho']['GENERAL'] = {
21+
'ABOUT': '关于',
22+
'BACK': '返回',
23+
'CANCEL': '取消',
24+
'CLOSE': '关闭',
25+
'CONTINUE': '继续',
26+
'DONE': '完成',
27+
'EXIT': '退出',
28+
'HELP': '帮助',
29+
'NEXT': '继续',
30+
'NO': '拒绝',
31+
'OK': '好的',
32+
'SETTINGS': '设置',
33+
'YES': '同意',
34+
};

locales/zho/library.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* @fileoverview Library Translation file (chinese).
3+
*
4+
* @license Copyright 2018 The Coding with Chrome Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* @author [email protected] (Chan)
19+
*/
20+
/* eslint-disable max-len */
21+
Locales['zho']['LIBRARY'] = {
22+
'TOUR_ALL_TAB': '找寻所有文件.',
23+
'TOUR_AUDIO_TAB': '找寻音频文件',
24+
'TOUR_CLOSE_DIALOG': '点击关闭',
25+
'TOUR_IMAGE_TAB': '找寻图片',
26+
'TOUR_INTRO': '概览文件',
27+
'TOUR_SEARCH_TAB': '更多图片',
28+
'TOUR_UPLOAD_BUTTON': '上传文件',
29+
};

locales/zho/navigation.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
* @fileoverview Translation file for the navigation (chinese).
3+
*
4+
* @license Copyright 2018 The Coding with Chrome Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* @author [email protected] (Chan)
19+
*/
20+
/* eslint-disable max-len */
21+
Locales['zho']['NAVIGATION'] = {
22+
'ABOUT': '关于',
23+
'ABOUT_TEXT': '了解更多信息',
24+
'DEBUG': '调试',
25+
'DEBUG_TEXT': '开启调试',
26+
'HELP': '帮助',
27+
'HELP_TEXT': '打开帮助文档',
28+
'HOME': '主页',
29+
'HOME_TEXT': '回到主页',
30+
'NEW_FILE': '新文件',
31+
'NEW_FILE_TEXT': '创造一个文件',
32+
'OPEN_FILE': '打开文件',
33+
'OPEN_FILE_TEXT': '打开一个文件',
34+
'OPEN_GDRIVE_FILE': '打开 Google Drive 文件',
35+
'OPEN_GDRIVE_FILE_TEXT': '打开 Google Drive 文件...',
36+
'OVERVIEW': '概览',
37+
'OVERVIEW_TEXT': '打开概览',
38+
'SAVE_AS': '另存为',
39+
'SAVE_AS_TEXT': '存为新文件...',
40+
'SAVE_GDRIVE_FILE': '另存为 Google Drive 文件',
41+
'SAVE_GDRIVE_FILE_TEXT': '另存为 Google Drive 文件...',
42+
'SETTINGS': '设置',
43+
'SETTINGS_TEXT': '打开设置',
44+
};

locales/zho/select_screen.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/**
2+
* @fileoverview Translation file for the Select screen (chinese).
3+
*
4+
* @license Copyright 2018 The Coding with Chrome Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* @author [email protected] (Chan)
19+
*/
20+
/* eslint-disable max-len */
21+
Locales['zho']['SELECT_SCREEN'] = {
22+
'BLUETOOTH_NOT_AVAILABLE': '无效的蓝牙连接',
23+
'BLUETOOTH_WEB_LIGHT': '网络蓝牙连接被Windows限制.',
24+
'BLUETOOTH_WEB_NOT_AVAILABLE': '无效的网络蓝牙连接',
25+
'LOAD_FILE': 'Load {$title}',
26+
'USE': '使用',
27+
};
28+
29+
30+
Locales['zho']['SELECT_SCREEN_NORMAL'] = {
31+
'TITLE': 'Block Coding',
32+
'DESCRIPTION': 'Block-based programming',
33+
'BLOCKLY': 'Blockly',
34+
'BLOCKLY_ACTION': 'Go Blockly',
35+
'BLOCKLY_TEXT': 'Use Blockly to build code by dragging and dropping code blocks',
36+
'GAME': '游戏',
37+
'GAME_ACTION': '开始创建游戏',
38+
'GAME_TEXT': '拖拽区块以创建简单的游戏',
39+
'ROBOTS': '机器人',
40+
'ROBOTS_ACTION': '控制机器人',
41+
'ROBOTS_TEXT': 'Control real or on-screen robots with Blockly',
42+
};

locales/zho/setting_screen.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/**
2+
* @fileoverview Translation file for the Setting screen (chinese).
3+
*
4+
* @license Copyright 2018 The Coding with Chrome Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
19+
*/
20+
/* eslint-disable max-len */
21+
Locales['zho']['SETTING_SCREEN'] = {
22+
'CLOSE': '关闭设置',
23+
'EDITOR': '编辑器',
24+
'GENERAL': '一般',
25+
'MISC': 'Misc',
26+
'MODULES': 'Modules',
27+
'NOTE_RESTART': '重新启动以生效',
28+
'SECTIONS': 'Sections',
29+
'TITLE': '设置',
30+
};

locales/zho/sidebar.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**
2+
* @fileoverview Translation file for the sidebar (chinese).
3+
*
4+
* @license Copyright 2018 The Coding with Chrome Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* @author [email protected] (Chan)
19+
*/
20+
Locales['zho']['SIDEBAR'] = {
21+
'FILE_DESCRIPTION': '文件描述',
22+
'LIBRARY': '打开文件库',
23+
'MEDIA': '上传并插入媒体文件',
24+
'TOUR': 'Start/restart tour',
25+
'TUTORIAL': '开始/重启向导',
26+
};

0 commit comments

Comments
 (0)