Skip to content

Commit 88dbacd

Browse files
committed
Add locale files.
1 parent ff24285 commit 88dbacd

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* Bootstrap Table <Language> translation
3+
* Author: Your Name <your@email>
4+
*/
5+
(function ($) {
6+
'use strict';
7+
8+
$.extend($.fn.bootstrapTable.defaults, {
9+
formatRecordsPerPage: function(pageNumber) {
10+
return pageNumber + ' records per page';
11+
},
12+
formatShowingRows: function(pageFrom, pageTo, totalRows) {
13+
return 'Showing ' + pageFrom + ' to ' + pageTo + ' of ' + totalRows + ' rows';
14+
},
15+
formatSearch: function() {
16+
return 'Search'
17+
}
18+
});
19+
})(jQuery);
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* Bootstrap Table Chinese translation
3+
* Author: Zhixin Wen<wenzhixin2010@gmail.com>
4+
*/
5+
(function ($) {
6+
'use strict';
7+
8+
$.extend($.fn.bootstrapTable.defaults, {
9+
formatRecordsPerPage: function(pageNumber) {
10+
return '每页 ' + pageNumber + ' 条记录';
11+
},
12+
formatShowingRows: function(pageFrom, pageTo, totalRows) {
13+
return '显示第 ' + pageFrom + ' 到第 ' + pageTo + ' 条记录,总共 ' + totalRows + ' 条记录';
14+
},
15+
formatSearch: function() {
16+
return '搜索';
17+
}
18+
});
19+
})(jQuery);

0 commit comments

Comments
 (0)