107 lines
2.4 KiB
JavaScript
107 lines
2.4 KiB
JavaScript
/**
|
|
* Bootstrap Table Vietnamese translation
|
|
* Author: Duc N. PHAM <pngduc@gmail.com>
|
|
*/
|
|
|
|
$.fn.bootstrapTable.locales['vi-VN'] = $.fn.bootstrapTable.locales['vi'] = {
|
|
formatCopyRows () {
|
|
return 'Copy Rows'
|
|
},
|
|
formatPrint () {
|
|
return 'Print'
|
|
},
|
|
formatLoadingMessage () {
|
|
return 'Đang tải'
|
|
},
|
|
formatRecordsPerPage (pageNumber) {
|
|
return `${pageNumber} bản ghi mỗi trang`
|
|
},
|
|
formatShowingRows (pageFrom, pageTo, totalRows, totalNotFiltered) {
|
|
if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered > totalRows) {
|
|
return `Hiển thị từ trang ${pageFrom} đến ${pageTo} của ${totalRows} bảng ghi (filtered from ${totalNotFiltered} total rows)`
|
|
}
|
|
|
|
return `Hiển thị từ trang ${pageFrom} đến ${pageTo} của ${totalRows} bảng ghi`
|
|
},
|
|
formatSRPaginationPreText () {
|
|
return 'previous page'
|
|
},
|
|
formatSRPaginationPageText (page) {
|
|
return `to page ${page}`
|
|
},
|
|
formatSRPaginationNextText () {
|
|
return 'next page'
|
|
},
|
|
formatDetailPagination (totalRows) {
|
|
return `Showing ${totalRows} rows`
|
|
},
|
|
formatClearSearch () {
|
|
return 'Clear Search'
|
|
},
|
|
formatSearch () {
|
|
return 'Tìm kiếm'
|
|
},
|
|
formatNoMatches () {
|
|
return 'Không có dữ liệu'
|
|
},
|
|
formatPaginationSwitch () {
|
|
return 'Hide/Show pagination'
|
|
},
|
|
formatPaginationSwitchDown () {
|
|
return 'Show pagination'
|
|
},
|
|
formatPaginationSwitchUp () {
|
|
return 'Hide pagination'
|
|
},
|
|
formatRefresh () {
|
|
return 'Refresh'
|
|
},
|
|
formatToggle () {
|
|
return 'Toggle'
|
|
},
|
|
formatToggleOn () {
|
|
return 'Show card view'
|
|
},
|
|
formatToggleOff () {
|
|
return 'Hide card view'
|
|
},
|
|
formatColumns () {
|
|
return 'Columns'
|
|
},
|
|
formatColumnsToggleAll () {
|
|
return 'Toggle all'
|
|
},
|
|
formatFullscreen () {
|
|
return 'Fullscreen'
|
|
},
|
|
formatAllRows () {
|
|
return 'All'
|
|
},
|
|
formatAutoRefresh () {
|
|
return 'Auto Refresh'
|
|
},
|
|
formatExport () {
|
|
return 'Export data'
|
|
},
|
|
formatJumpTo () {
|
|
return 'GO'
|
|
},
|
|
formatAdvancedSearch () {
|
|
return 'Advanced search'
|
|
},
|
|
formatAdvancedCloseButton () {
|
|
return 'Close'
|
|
},
|
|
formatFilterControlSwitch () {
|
|
return 'Hide/Show controls'
|
|
},
|
|
formatFilterControlSwitchHide () {
|
|
return 'Hide controls'
|
|
},
|
|
formatFilterControlSwitchShow () {
|
|
return 'Show controls'
|
|
}
|
|
}
|
|
|
|
$.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['vi-VN'])
|