Skip to content

Commit e1dd428

Browse files
GuniveMarkusBordihn
authored andcommitted
Update Chinese Translation (#228)
* Update Chinese Translation * Update i18n_mapping.js
1 parent cd87768 commit e1dd428

File tree

7 files changed

+43
-16
lines changed

7 files changed

+43
-16
lines changed

build/cwc/locales.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ closureBuilder.build({
243243
closureBuilder.build({
244244
name: 'Locales.zho',
245245
srcs: glob([
246-
'locales/zho/_zho.js',
246+
'locales/_zho.js',
247247
'locales/zho/**/*.js',
248248
]),
249249
externs: [

locales/supported.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ Locales['supportedLanguages'] = [
3333
'jpn',
3434
'swe',
3535
'vie',
36+
'zho',
3637
];

locales/zho/navigation.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,24 @@ Locales['zho']['NAVIGATION'] = {
2323
'ABOUT_TEXT': '了解更多信息',
2424
'DEBUG': '调试',
2525
'DEBUG_TEXT': '开启调试',
26+
'EXPORT_TO_GCLOUD': '导出到Google云端硬盘',
27+
'EXPORT_TO_GCLOUD_TEXT': '导出到Google云端硬盘...',
2628
'HELP': '帮助',
2729
'HELP_TEXT': '打开帮助文档',
2830
'HOME': '主页',
2931
'HOME_TEXT': '回到主页',
3032
'NEW_FILE': '新文件',
3133
'NEW_FILE_TEXT': '创造一个文件',
3234
'OPEN_FILE': '打开文件',
33-
'OPEN_FILE_TEXT': '打开一个文件',
34-
'OPEN_GDRIVE_FILE': '打开 Google Drive 文件',
35-
'OPEN_GDRIVE_FILE_TEXT': '打开 Google Drive 文件...',
35+
'OPEN_FILE_TEXT': '打开本地文件',
36+
'OPEN_GDRIVE_FILE': '打开Google云端硬盘中的文件',
37+
'OPEN_GDRIVE_FILE_TEXT': '打开Google云端硬盘中的文件...',
3638
'OVERVIEW': '概览',
3739
'OVERVIEW_TEXT': '打开概览',
3840
'SAVE_AS': '另存为',
3941
'SAVE_AS_TEXT': '存为新文件...',
40-
'SAVE_GDRIVE_FILE': '另存为 Google Drive 文件',
41-
'SAVE_GDRIVE_FILE_TEXT': '另存为 Google Drive 文件...',
42+
'SAVE_GDRIVE_FILE': '保存在Google云端硬盘中',
43+
'SAVE_GDRIVE_FILE_TEXT': '保存在Google云端硬盘中...',
4244
'SETTINGS': '设置',
4345
'SETTINGS_TEXT': '打开设置',
4446
};

locales/zho/select_screen.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ Locales['zho']['SELECT_SCREEN'] = {
2222
'BLUETOOTH_NOT_AVAILABLE': '无效的蓝牙连接',
2323
'BLUETOOTH_WEB_LIGHT': '网络蓝牙连接被Windows限制.',
2424
'BLUETOOTH_WEB_NOT_AVAILABLE': '无效的网络蓝牙连接',
25-
'LOAD_FILE': 'Load {$title}',
25+
'LOAD_FILE': '载入 {$title}',
2626
'USE': '使用',
2727
};
2828

2929

3030
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',
31+
'TITLE': '代码块编程',
32+
'DESCRIPTION': '基于代码块的编程',
33+
'BLOCKLY': '代码块',
34+
'BLOCKLY_ACTION': '开始使用代码块',
35+
'BLOCKLY_TEXT': '拖动代码块以构造代码',
3636
'GAME': '游戏',
3737
'GAME_ACTION': '开始创建游戏',
3838
'GAME_TEXT': '拖拽区块以创建简单的游戏',
3939
'ROBOTS': '机器人',
4040
'ROBOTS_ACTION': '控制机器人',
41-
'ROBOTS_TEXT': 'Control real or on-screen robots with Blockly',
41+
'ROBOTS_TEXT': '控制真实的或屏幕上的机器人',
4242
};

locales/zho/welcome_screen.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ Locales['zho']['WELCOME_SCREEN'] = {
2424
'HEADER': '开始编程 ...',
2525
'CHOOSE': '首先请选择您目前的编程水平',
2626
'BEGINNER': '初学者',
27-
'BEGINNER_TEXT': 'Begin to learn coding with visual block programming. Put together the program steps by dragging and dropping coding blocks.',
28-
'BEGINNER_ACTION': '使用初学模式',
27+
'BEGINNER_TEXT': '通过拖动代码块开始编程',
28+
'BEGINNER_ACTION': '开始初学者模式',
2929
'ADVANCED': '有一定基础的学生',
30-
'ADVANCED_TEXT': ' Use a high-level programming language like JavaScript or Python to write your code',
30+
'ADVANCED_TEXT': ' 采用JavaScript或Python等高级语言来编写代码',
3131
'ADVANCED_ACTION': '使用进阶模式',
3232
'SHOW_ON_STARTUP': '每次启动时显示',
3333
'SHOW_ON_STARTUP_NOTE': '您可以在设置中修改',

locales/zho/whats_new_screen.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/**
2+
* @fileoverview Translation file for the What's New 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']['WHATS_NEW_SCREEN'] = {
22+
'SHOW_ON_CHANGE': '新的版本安装后显示通知.',
23+
};

src/utils/i18n/i18n_mapping.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,6 @@ cwc.utils.I18nMapping.BCP47 = {
8484
'sv-SE': 'swe',
8585
'vi': 'vie',
8686
'vi-VN': 'vie',
87+
'zh': 'zho',
8788
'zh-CN': 'zho',
8889
};

0 commit comments

Comments
 (0)