bootstrap-table-zh-CN.js 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. * Bootstrap Table Chinese translation
  17. * Author: Zhixin Wen<wenzhixin2010@gmail.com>
  18. */
  19. (function ($) {
  20. $.fn.bootstrapTable.locales['zh-CN'] = {
  21. formatLoadingMessage: function formatLoadingMessage() {
  22. return '正在努力地加载数据中,请稍候';
  23. },
  24. formatRecordsPerPage: function formatRecordsPerPage(pageNumber) {
  25. return '\u6BCF\u9875\u663E\u793A ' + pageNumber + ' \u6761\u8BB0\u5F55';
  26. },
  27. formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) {
  28. return '\u663E\u793A\u7B2C ' + pageFrom + ' \u5230\u7B2C ' + pageTo + ' \u6761\u8BB0\u5F55\uFF0C\u603B\u5171 ' + totalRows + ' \u6761\u8BB0\u5F55';
  29. },
  30. formatDetailPagination: function formatDetailPagination(totalRows) {
  31. return '\u603B\u5171 ' + totalRows + ' \u6761\u8BB0\u5F55';
  32. },
  33. formatSearch: function formatSearch() {
  34. return '搜索';
  35. },
  36. formatNoMatches: function formatNoMatches() {
  37. return '没有找到匹配的记录';
  38. },
  39. formatPaginationSwitch: function formatPaginationSwitch() {
  40. return '隐藏/显示分页';
  41. },
  42. formatRefresh: function formatRefresh() {
  43. return '刷新';
  44. },
  45. formatToggle: function formatToggle() {
  46. return '切换';
  47. },
  48. formatColumns: function formatColumns() {
  49. return '列';
  50. },
  51. formatFullscreen: function formatFullscreen() {
  52. return '全屏';
  53. },
  54. formatAllRows: function formatAllRows() {
  55. return '所有';
  56. },
  57. formatAutoRefresh: function formatAutoRefresh() {
  58. return '自动刷新';
  59. },
  60. formatExport: function formatExport() {
  61. return '导出数据';
  62. },
  63. formatClearFilters: function formatClearFilters() {
  64. return '清空过滤';
  65. },
  66. formatJumpto: function formatJumpto() {
  67. return '跳转';
  68. },
  69. formatAdvancedSearch: function formatAdvancedSearch() {
  70. return '高级搜索';
  71. },
  72. formatAdvancedCloseButton: function formatAdvancedCloseButton() {
  73. return '关闭';
  74. }
  75. };
  76. $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['zh-CN']);
  77. })(jQuery);
  78. });