Skip to content

Commit

Permalink
feat(i18n): Completes zh-cn translation.
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinchen committed Aug 25, 2015
1 parent a0c5b7e commit 0ad2840
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion src/js/i18n/zh-cn.js
Expand Up @@ -2,6 +2,15 @@
angular.module('ui.grid').config(['$provide', function($provide) {
$provide.decorator('i18nService', ['$delegate', function($delegate) {
$delegate.add('zh-cn', {
headerCell: {
aria: {
defaultFilterLabel: '列过滤器',
removeFilter: '移除过滤器',
columnMenuButtonLabel: '列菜单'
},
priority: '优先级:',
filterLabel: "列过滤器: "
},
aggregate: {
label: '行'
},
Expand All @@ -25,6 +34,7 @@
sort: {
ascending: '升序',
descending: '降序',
none: '无序',
remove: '取消排序'
},
column: {
Expand All @@ -42,7 +52,13 @@
pinRight: '右侧固定',
unpin: '取消固定'
},
columnMenu: {
close: '关闭'
},
gridMenu: {
aria: {
buttonLabel: '表格菜单'
},
columns: '列:',
importerTitle: '导入文件',
exporterAllAsCsv: '导出全部数据到CSV',
Expand All @@ -61,8 +77,27 @@
jsonNotArray: '导入的文件不是JSON数组!'
},
pagination: {
aria: {
pageToFirst: '第一页',
pageBack: '上一页',
pageSelected: '当前页',
pageForward: '下一页',
pageToLast: '最后一页'
},
sizes: '行每页',
totalItems: '行'
totalItems: '行',
through: '至',
of: '共'
},
grouping: {
group: '分组',
ungroup: '取消分组',
aggregate_count: '合计: 计数',
aggregate_sum: '合计: 求和',
aggregate_max: '合计: 最大',
aggregate_min: '合计: 最小',
aggregate_avg: '合计: 平均',
aggregate_remove: '合计: 移除'
}
});
return $delegate;
Expand Down

0 comments on commit 0ad2840

Please sign in to comment.