bootstrap-table-th-TH.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /**
  2. * Bootstrap Table Thai translation
  3. * Author: Monchai S.<monchais@gmail.com>
  4. */
  5. $.fn.bootstrapTable.locales['th-TH'] = {
  6. formatLoadingMessage () {
  7. return 'กำลังโหลดข้อมูล, กรุณารอสักครู่'
  8. },
  9. formatRecordsPerPage (pageNumber) {
  10. return `${pageNumber} รายการต่อหน้า`
  11. },
  12. formatShowingRows (pageFrom, pageTo, totalRows, totalNotFiltered) {
  13. if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered > totalRows) {
  14. return `รายการที่ ${pageFrom} ถึง ${pageTo} จากทั้งหมด ${totalRows} รายการ (filtered from ${totalNotFiltered} total rows)`
  15. }
  16. return `รายการที่ ${pageFrom} ถึง ${pageTo} จากทั้งหมด ${totalRows} รายการ`
  17. },
  18. formatSRPaginationPreText () {
  19. return 'previous page'
  20. },
  21. formatSRPaginationPageText (page) {
  22. return `to page ${page}`
  23. },
  24. formatSRPaginationNextText () {
  25. return 'next page'
  26. },
  27. formatDetailPagination (totalRows) {
  28. return `Showing ${totalRows} rows`
  29. },
  30. formatClearSearch () {
  31. return 'Clear Search'
  32. },
  33. formatSearch () {
  34. return 'ค้นหา'
  35. },
  36. formatNoMatches () {
  37. return 'ไม่พบรายการที่ค้นหา !'
  38. },
  39. formatPaginationSwitch () {
  40. return 'Hide/Show pagination'
  41. },
  42. formatPaginationSwitchDown () {
  43. return 'Show pagination'
  44. },
  45. formatPaginationSwitchUp () {
  46. return 'Hide pagination'
  47. },
  48. formatRefresh () {
  49. return 'รีเฟรส'
  50. },
  51. formatToggle () {
  52. return 'สลับมุมมอง'
  53. },
  54. formatToggleOn () {
  55. return 'Show card view'
  56. },
  57. formatToggleOff () {
  58. return 'Hide card view'
  59. },
  60. formatColumns () {
  61. return 'คอลัมน์'
  62. },
  63. formatColumnsToggleAll () {
  64. return 'Toggle all'
  65. },
  66. formatFullscreen () {
  67. return 'Fullscreen'
  68. },
  69. formatAllRows () {
  70. return 'All'
  71. },
  72. formatAutoRefresh () {
  73. return 'Auto Refresh'
  74. },
  75. formatExport () {
  76. return 'Export data'
  77. },
  78. formatJumpTo () {
  79. return 'GO'
  80. },
  81. formatAdvancedSearch () {
  82. return 'Advanced search'
  83. },
  84. formatAdvancedCloseButton () {
  85. return 'Close'
  86. },
  87. formatFilterControlSwitch () {
  88. return 'Hide/Show controls'
  89. },
  90. formatFilterControlSwitchHide () {
  91. return 'Hide controls'
  92. },
  93. formatFilterControlSwitchShow () {
  94. return 'Show controls'
  95. }
  96. }
  97. $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['th-TH'])