|
1 | | -(function () { |
| 1 | +(function() { |
2 | 2 | angular.module('ui.grid').config(['$provide', function($provide) { |
3 | 3 | $provide.decorator('i18nService', ['$delegate', function($delegate) { |
4 | 4 | $delegate.add('zh-cn', { |
5 | 5 | aggregate: { |
6 | | - label: '条目' |
| 6 | + label: '行' |
7 | 7 | }, |
8 | 8 | groupPanel: { |
9 | | - description: '拖曳表头到此处以进行分组' |
| 9 | + description: '拖曳表头到此处进行分组' |
10 | 10 | }, |
11 | 11 | search: { |
12 | | - placeholder: '搜索...', |
13 | | - showingItems: '当前显示条目:', |
14 | | - selectedItems: '选中条目:', |
15 | | - totalItems: '条目总数:', |
16 | | - size: '每页显示数:', |
17 | | - first: '回到首页', |
| 12 | + placeholder: '查找', |
| 13 | + showingItems: '已显示行数:', |
| 14 | + selectedItems: '已选择行数:', |
| 15 | + totalItems: '总行数:', |
| 16 | + size: '每页显示行数:', |
| 17 | + first: '首页', |
18 | 18 | next: '下一页', |
19 | 19 | previous: '上一页', |
20 | | - last: '前往尾页' |
| 20 | + last: '末页' |
21 | 21 | }, |
22 | 22 | menu: { |
23 | | - text: '数据分组与选择列:' |
| 23 | + text: '选择列:' |
| 24 | + }, |
| 25 | + sort: { |
| 26 | + ascending: '升序', |
| 27 | + descending: '降序', |
| 28 | + remove: '取消排序' |
24 | 29 | }, |
25 | 30 | column: { |
26 | 31 | hide: '隐藏列' |
27 | 32 | }, |
28 | 33 | aggregation: { |
29 | | - count: 'total rows: ', |
30 | | - sum: 'total: ', |
31 | | - avg: 'avg: ', |
32 | | - min: 'min: ', |
33 | | - max: 'max: ' |
| 34 | + count: '计数:', |
| 35 | + sum: '求和:', |
| 36 | + avg: '均值:', |
| 37 | + min: '最小值:', |
| 38 | + max: '最大值:' |
| 39 | + }, |
| 40 | + pinning: { |
| 41 | + pinLeft: '左侧固定', |
| 42 | + pinRight: '右侧固定', |
| 43 | + unpin: '取消固定' |
34 | 44 | }, |
35 | 45 | gridMenu: { |
36 | | - columns: 'Columns:', |
37 | | - importerTitle: 'Import file', |
38 | | - exporterAllAsCsv: 'Export all data as csv', |
39 | | - exporterVisibleAsCsv: 'Export visible data as csv', |
40 | | - exporterSelectedAsCsv: 'Export selected data as csv', |
41 | | - exporterAllAsPdf: 'Export all data as pdf', |
42 | | - exporterVisibleAsPdf: 'Export visible data as pdf', |
43 | | - exporterSelectedAsPdf: 'Export selected data as pdf' |
| 46 | + columns: '列:', |
| 47 | + importerTitle: '导入文件', |
| 48 | + exporterAllAsCsv: '导出全部数据到CSV', |
| 49 | + exporterVisibleAsCsv: '导出可见数据到CSV', |
| 50 | + exporterSelectedAsCsv: '导出已选数据到CSV', |
| 51 | + exporterAllAsPdf: '导出全部数据到PDF', |
| 52 | + exporterVisibleAsPdf: '导出可见数据到PDF', |
| 53 | + exporterSelectedAsPdf: '导出已选数据到PDF' |
44 | 54 | }, |
45 | 55 | importer: { |
46 | | - noHeaders: 'Column names were unable to be derived, does the file have a header?', |
47 | | - noObjects: 'Objects were not able to be derived, was there data in the file other than headers?', |
48 | | - invalidCsv: 'File was unable to be processed, is it valid CSV?', |
49 | | - invalidJson: 'File was unable to be processed, is it valid Json?', |
50 | | - jsonNotArray: 'Imported json file must contain an array, aborting.' |
| 56 | + noHeaders: '无法获取列名,确定文件包含表头?', |
| 57 | + noObjects: '无法获取数据,确定文件包含数据?', |
| 58 | + invalidCsv: '无法处理文件,确定是合法的CSV文件?', |
| 59 | + invalidJson: '无法处理文件,确定是合法的JSON文件?', |
| 60 | + jsonNotArray: '导入的文件不是JSON数组!' |
51 | 61 | } |
52 | 62 | }); |
53 | 63 | return $delegate; |
54 | 64 | }]); |
55 | | -}]); |
| 65 | + }]); |
56 | 66 | })(); |
0 commit comments