UNPKG

2.57 kBJavaScriptView Raw
1(function (global, factory) {
2 if (typeof define === "function" && define.amd) {
3 define([], factory);
4 } else if (typeof exports !== "undefined") {
5 factory();
6 } else {
7 var mod = {
8 exports: {}
9 };
10 factory();
11 global.bootstrapTableZhCN = mod.exports;
12 }
13})(this, function () {
14 'use strict';
15
16 /**
17 * Bootstrap Table Chinese translation
18 * Author: Zhixin Wen<wenzhixin2010@gmail.com>
19 */
20 (function ($) {
21 $.fn.bootstrapTable.locales['zh-CN'] = {
22 formatLoadingMessage: function formatLoadingMessage() {
23 return '正在努力地加载数据中,请稍候';
24 },
25 formatRecordsPerPage: function formatRecordsPerPage(pageNumber) {
26 return '\u6BCF\u9875\u663E\u793A ' + pageNumber + ' \u6761\u8BB0\u5F55';
27 },
28 formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) {
29 return '\u663E\u793A\u7B2C ' + pageFrom + ' \u5230\u7B2C ' + pageTo + ' \u6761\u8BB0\u5F55\uFF0C\u603B\u5171 ' + totalRows + ' \u6761\u8BB0\u5F55';
30 },
31 formatDetailPagination: function formatDetailPagination(totalRows) {
32 return '\u603B\u5171 ' + totalRows + ' \u6761\u8BB0\u5F55';
33 },
34 formatSearch: function formatSearch() {
35 return '搜索';
36 },
37 formatNoMatches: function formatNoMatches() {
38 return '没有找到匹配的记录';
39 },
40 formatPaginationSwitch: function formatPaginationSwitch() {
41 return '隐藏/显示分页';
42 },
43 formatRefresh: function formatRefresh() {
44 return '刷新';
45 },
46 formatToggle: function formatToggle() {
47 return '切换';
48 },
49 formatColumns: function formatColumns() {
50 return '列';
51 },
52 formatFullscreen: function formatFullscreen() {
53 return '全屏';
54 },
55 formatAllRows: function formatAllRows() {
56 return '所有';
57 },
58 formatAutoRefresh: function formatAutoRefresh() {
59 return '自动刷新';
60 },
61 formatExport: function formatExport() {
62 return '导出数据';
63 },
64 formatClearFilters: function formatClearFilters() {
65 return '清空过滤';
66 },
67 formatJumpto: function formatJumpto() {
68 return '跳转';
69 },
70 formatAdvancedSearch: function formatAdvancedSearch() {
71 return '高级搜索';
72 },
73 formatAdvancedCloseButton: function formatAdvancedCloseButton() {
74 return '关闭';
75 }
76 };
77
78 $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['zh-CN']);
79 })(jQuery);
80});
\No newline at end of file