bootstrap-table-zh-TW.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /**
  2. * Bootstrap Table Chinese translation
  3. * Author: Zhixin Wen<wenzhixin2010@gmail.com>
  4. */
  5. $.fn.bootstrapTable.locales['zh-TW'] = {
  6. formatCopyRows () {
  7. return '複製行'
  8. },
  9. formatPrint () {
  10. return '列印'
  11. },
  12. formatLoadingMessage () {
  13. return '正在努力地載入資料,請稍候'
  14. },
  15. formatRecordsPerPage (pageNumber) {
  16. return `每頁顯示 ${pageNumber} 項記錄`
  17. },
  18. formatShowingRows (pageFrom, pageTo, totalRows, totalNotFiltered) {
  19. if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered > totalRows) {
  20. return `顯示第 ${pageFrom} 到第 ${pageTo} 項記錄,總共 ${totalRows} 項記錄(從 ${totalNotFiltered} 總記錄中過濾)`
  21. }
  22. return `顯示第 ${pageFrom} 到第 ${pageTo} 項記錄,總共 ${totalRows} 項記錄`
  23. },
  24. formatSRPaginationPreText () {
  25. return '上一頁'
  26. },
  27. formatSRPaginationPageText (page) {
  28. return `第${page}頁`
  29. },
  30. formatSRPaginationNextText () {
  31. return '下一頁'
  32. },
  33. formatDetailPagination (totalRows) {
  34. return `總共 ${totalRows} 項記錄`
  35. },
  36. formatClearSearch () {
  37. return '清空過濾'
  38. },
  39. formatSearch () {
  40. return '搜尋'
  41. },
  42. formatNoMatches () {
  43. return '沒有找到符合的結果'
  44. },
  45. formatPaginationSwitch () {
  46. return '隱藏/顯示分頁'
  47. },
  48. formatPaginationSwitchDown () {
  49. return '顯示分頁'
  50. },
  51. formatPaginationSwitchUp () {
  52. return '隱藏分頁'
  53. },
  54. formatRefresh () {
  55. return '重新整理'
  56. },
  57. formatToggleOn () {
  58. return '顯示卡片視圖'
  59. },
  60. formatToggleOff () {
  61. return '隱藏卡片視圖'
  62. },
  63. formatColumns () {
  64. return '列'
  65. },
  66. formatColumnsToggleAll () {
  67. return '切換所有'
  68. },
  69. formatFullscreen () {
  70. return '全屏'
  71. },
  72. formatAllRows () {
  73. return '所有'
  74. },
  75. formatAutoRefresh () {
  76. return '自動刷新'
  77. },
  78. formatExport () {
  79. return '導出數據'
  80. },
  81. formatJumpTo () {
  82. return '跳轉'
  83. },
  84. formatAdvancedSearch () {
  85. return '高級搜尋'
  86. },
  87. formatAdvancedCloseButton () {
  88. return '關閉'
  89. },
  90. formatFilterControlSwitch () {
  91. return '隱藏/顯示過濾控制'
  92. },
  93. formatFilterControlSwitchHide () {
  94. return '隱藏過濾控制'
  95. },
  96. formatFilterControlSwitchShow () {
  97. return '顯示過濾控制'
  98. }
  99. }
  100. Object.assign($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['zh-TW'])