Skip to content

Commit 6ea4bbe

Browse files
duyetMarkusBordihn
authored andcommitted
Vietnamese (vie) supported (#194)
1 parent af7f302 commit 6ea4bbe

18 files changed

+561
-0
lines changed

build/cwc/locales.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,24 @@ closureBuilder.build({
190190
},
191191
out: 'genfiles/core/js/locales/fra.js',
192192
});
193+
194+
/**
195+
* VIE Translation.
196+
*/
197+
closureBuilder.build({
198+
name: 'Locales.vie',
199+
srcs: glob([
200+
'locales/_vie.js',
201+
'locales/vie/**/*.js',
202+
]),
203+
externs: [
204+
'build/externs/locales.js',
205+
],
206+
compress: true,
207+
options: {
208+
closure: {
209+
rewrite_polyfills: false,
210+
},
211+
},
212+
out: 'genfiles/core/js/locales/vie.js',
213+
});

locales/supported.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ Locales['supportedLanguages'] = [
3131
'fra',
3232
'hin',
3333
'jpn',
34+
'vie',
3435
];

locales/vie/_vie.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* @fileoverview Translation file (vietnamese).
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] (Duyet Le)
19+
*/
20+
window['Locales'] = window['Locales'] || {};
21+
Locales['vie'] = Locales['vie'] || {};

locales/vie/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 (vietnamese).
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] (Duyet Le)
19+
*/
20+
Locales['vie']['BLOCKLY'] = {
21+
'CREATE_NEW_VARIABLE': 'Tạo Variable mới',
22+
};

locales/vie/blocks/blocks.js

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/**
2+
* @fileoverview Translation file for blocks (english).
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] (Markus Bordihn)
19+
*/
20+
Locales['eng']['BLOCKS'] = {
21+
'ALL': 'all',
22+
'AND': 'and',
23+
'AS': 'as',
24+
'CHANGE': 'change',
25+
'CLEAR_DISPLAY': 'clear_display',
26+
'CONTROL': 'Control',
27+
'DEFINE': 'define',
28+
'DESTROY': 'destroy',
29+
'DISABLE': 'disable',
30+
'DISPLAY': 'Display',
31+
'DISPLAY_TEXT': 'display text',
32+
'DO': 'do',
33+
'DOWN': 'down',
34+
'ENABLE': 'enable',
35+
'GROUP': 'group',
36+
'HEIGHT': 'height',
37+
'IMMEDIATELY': 'immediately',
38+
'IN': 'in',
39+
'KILL': 'kill',
40+
'LEFT': 'left',
41+
'LISTS': 'Lists',
42+
'PADDING': 'padding',
43+
'REPEAT_FOREVER': 'repeat_forever',
44+
'RIGHT': 'right',
45+
'SEC': 'sec.',
46+
'SET': 'set',
47+
'TO': 'to',
48+
'UP': 'up',
49+
'WAIT': 'wait',
50+
'WHEN_FINISHED': 'when finished',
51+
'WIDTH': 'width',
52+
'WITH': 'with',
53+
};

locales/vie/blocks/phaser_blocks.js

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/**
2+
* @fileoverview Translation file for Phaser blocks (english).
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] (Markus Bordihn)
19+
*/
20+
/* eslint-disable max-len */
21+
Locales['eng']['BLOCKS_PHASER'] = {
22+
'AUDIO': 'Audio',
23+
'AUDIO_ADD_BGM': 'as background sound',
24+
'AUDIO_PAUSE': 'pause audio',
25+
'AUTOSTART': 'autostart',
26+
'CHECK_COLLISION_DOWN': 'check collision down',
27+
'CHECK_COLLISION_LEFT': 'check collision left',
28+
'CHECK_COLLISION_RIGHT': 'check collision right',
29+
'CHECK_COLLISION_UP': 'check collision up',
30+
'COLLIDE_WITH': 'collide with',
31+
'COUNT_LIVING_OBJECTS': 'count living objects',
32+
'CREATE': 'Create',
33+
'EXAMPLE_FILES': 'Example Files',
34+
'FILES': 'Files',
35+
'GAME': 'Game',
36+
'GAME_RESTART': 'Restart game',
37+
'GAME_START': 'start game state',
38+
'GENERATOR': 'Generators',
39+
'GENERATOR_OBSTACLE': 'generate obstacles',
40+
'GENERATOR_RANDOM_VERTICAL_OBSTACLE': 'generate random vertical obstacles',
41+
'GENERATOR_VERTICAL_OBSTACLE': 'generate vertical obstacles',
42+
'GROUP': 'Group',
43+
'INPUT': 'Input',
44+
'INPUTS': 'Inputs',
45+
'KEYBOARD_CURSOR_KEYS': 'keyboard cursor keys',
46+
'KEYBOARD_KEY': 'keyboard key',
47+
'KEYBOARD_SPACEBAR': 'keyboard spacebar',
48+
'KEYBOARD_WASD_KEYS': 'keyboard WASD keys',
49+
'LOAD_AUDIO': 'load audio',
50+
'LOAD_IMAGE': 'load image',
51+
'MOUSE_KEYS': 'mouse keys',
52+
'NO_AUTOSTART': 'no autostart',
53+
'ON_CREATE': 'on create',
54+
'ON_OUT_OF_BOUNDS': 'on out of bounds',
55+
'ON_PRELOAD': 'on preload',
56+
'OPEN_FILE_LIBRARY': 'Open file library',
57+
'PHYSICS_ARCADE_ENABLE': 'enable arcade physics for',
58+
'PHYSICS_SPRITE': 'Physics Sprite',
59+
'PRELOAD': 'Preload',
60+
'RENDERER': 'Renderer',
61+
'SPRITE': 'Sprite',
62+
'TEXT': 'Text Object',
63+
'TILE_SPRITE': 'Tile Sprite',
64+
'TIME_LOOP_EVENT': 'repeat every',
65+
'UPDATE': 'Update',
66+
'WORLD': 'World',
67+
'WORLD_ARCADE_PHYSICS': 'world arcade physics',
68+
'WORLD_SORT_DIRECTION': 'world sort direction',
69+
};

locales/vie/blocks/robot_blocks.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* @fileoverview Translation file for robot blocks (english).
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] (Markus Bordihn)
19+
*/
20+
/* eslint-disable max-len */
21+
Locales['eng']['BLOCKS_ROBOT'] = {
22+
'EVENTS': 'Events',
23+
'HEADING': 'heading',
24+
'LIGHTS': 'Lights',
25+
'MOVEMENTS': 'Movements',
26+
'ON_COLLISION': 'on collision',
27+
'ON_POSITION_CHANGE': 'on position change',
28+
'RESET_ROBOT': 'reset robot',
29+
'ROLL_FOR': 'roll for',
30+
'ROLL_WITH': 'roll with',
31+
'ROTATE': 'rotate',
32+
'SET_BACKLIGHT': 'set backlight',
33+
'SET_BLINK': 'set blink',
34+
'SET_COLOR': 'set color',
35+
'SET_HEADING': 'set heading',
36+
'SET_SPEED': 'set speed',
37+
'SET_STABILIZATION': 'set stabilization',
38+
'SPEED': 'speed',
39+
'START': 'Program Start',
40+
'STOP_MOTORS': 'stop motors',
41+
};

locales/vie/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 (vietnamese).
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] (Duyet Le)
19+
*/
20+
/* eslint-disable max-len */
21+
Locales['vie']['CONNECT_SCREEN'] = {
22+
'TURN_ON_NOTE': 'Vui lòng chắc chắn thiết bị sau đã được sạc và đang bật:',
23+
'CONNECT_NOTE': 'Vui lòng chắc chắn thiết bị bluetooth sau đã được sạc và đang bật.',
24+
'SEARCH_FOR': 'Tìm kiếm cho',
25+
'SEARCH_FOR_DEVICE': 'Tìm thiết bị Bluetooth ...',
26+
};

locales/vie/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 (vietnamese).
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] (Duyet Le)
19+
*/
20+
Locales['vie']['CONSOLE'] = {
21+
'BUTTON_TOOLTIP': 'Hiện/Ẩn Console',
22+
'CLEAR': 'Xóa console (CTRL + L)',
23+
'COMMAND_PLACEHOLDER': 'Nhập câu lệnh ở đây',
24+
};

locales/vie/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 (vietnamese).
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] (Duyet Le)
19+
*/
20+
Locales['vie']['GENERAL'] = {
21+
'ABOUT': 'Giới thiệu',
22+
'BACK': 'Quay lại',
23+
'CANCEL': 'Hủy',
24+
'CLOSE': 'Đóng',
25+
'CONTINUE': 'Tiếp tục',
26+
'DONE': 'Hoàn thành',
27+
'EXIT': 'Thoát',
28+
'HELP': 'Trợ giúp',
29+
'NEXT': 'Kế tiếp',
30+
'NO': 'No',
31+
'OK': 'Ok',
32+
'SETTINGS': 'Cài đặt',
33+
'YES': 'Yes',
34+
};

0 commit comments

Comments
 (0)