mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
44 lines
1.2 KiB
JavaScript
Executable file
44 lines
1.2 KiB
JavaScript
Executable file
/**
|
|
* Bootstrap Table English translation
|
|
* Author: Zhixin Wen<[email protected]>
|
|
*/
|
|
(function ($) {
|
|
'use strict';
|
|
|
|
$.fn.bootstrapTable.locales['en-US'] = {
|
|
formatLoadingMessage: function () {
|
|
return 'Loading, please wait...';
|
|
},
|
|
formatRecordsPerPage: function (pageNumber) {
|
|
return pageNumber + ' rows per page';
|
|
},
|
|
formatShowingRows: function (pageFrom, pageTo, totalRows) {
|
|
return 'Showing ' + pageFrom + ' to ' + pageTo + ' of ' + totalRows + ' rows';
|
|
},
|
|
formatSearch: function () {
|
|
return 'Search';
|
|
},
|
|
formatNoMatches: function () {
|
|
return 'No matching records found';
|
|
},
|
|
formatPaginationSwitch: function () {
|
|
return 'Hide/Show pagination';
|
|
},
|
|
formatRefresh: function () {
|
|
return 'Refresh';
|
|
},
|
|
formatToggle: function () {
|
|
return 'Toggle';
|
|
},
|
|
formatColumns: function () {
|
|
return 'Columns';
|
|
},
|
|
formatAllRows: function () {
|
|
return 'All';
|
|
}
|
|
};
|
|
|
|
$.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['en-US']);
|
|
|
|
})(jQuery);
|