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.bootstrapTableThTH = mod.exports;
|
12 | }
|
13 | })(this, function () {
|
14 | 'use strict';
|
15 |
|
16 | |
17 |
|
18 |
|
19 |
|
20 | (function ($) {
|
21 | $.fn.bootstrapTable.locales['th-TH'] = {
|
22 | formatLoadingMessage: function formatLoadingMessage() {
|
23 | return 'กำลังโหลดข้อมูล, กรุณารอสักครู่';
|
24 | },
|
25 | formatRecordsPerPage: function formatRecordsPerPage(pageNumber) {
|
26 | return pageNumber + ' \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D\u0E2B\u0E19\u0E49\u0E32';
|
27 | },
|
28 | formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) {
|
29 | return '\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E17\u0E35\u0E48 ' + pageFrom + ' \u0E16\u0E36\u0E07 ' + pageTo + ' \u0E08\u0E32\u0E01\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14 ' + totalRows + ' \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23';
|
30 | },
|
31 | formatDetailPagination: function formatDetailPagination(totalRows) {
|
32 | return 'Showing ' + totalRows + ' rows';
|
33 | },
|
34 | formatSearch: function formatSearch() {
|
35 | return 'ค้นหา';
|
36 | },
|
37 | formatNoMatches: function formatNoMatches() {
|
38 | return 'ไม่พบรายการที่ค้นหา !';
|
39 | },
|
40 | formatPaginationSwitch: function formatPaginationSwitch() {
|
41 | return 'Hide/Show pagination';
|
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 'Fullscreen';
|
54 | },
|
55 | formatAllRows: function formatAllRows() {
|
56 | return 'All';
|
57 | },
|
58 | formatAutoRefresh: function formatAutoRefresh() {
|
59 | return 'Auto Refresh';
|
60 | },
|
61 | formatExport: function formatExport() {
|
62 | return 'Export data';
|
63 | },
|
64 | formatClearFilters: function formatClearFilters() {
|
65 | return 'Clear filters';
|
66 | },
|
67 | formatJumpto: function formatJumpto() {
|
68 | return 'GO';
|
69 | },
|
70 | formatAdvancedSearch: function formatAdvancedSearch() {
|
71 | return 'Advanced search';
|
72 | },
|
73 | formatAdvancedCloseButton: function formatAdvancedCloseButton() {
|
74 | return 'Close';
|
75 | }
|
76 | };
|
77 |
|
78 | $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['th-TH']);
|
79 | })(jQuery);
|
80 | }); |
\ | No newline at end of file |