UNPKG

2.52 kBJavaScriptView Raw
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.bootstrapTablePtBR = mod.exports;
12 }
13})(this, function () {
14 'use strict';
15
16 /**
17 * Bootstrap Table Brazilian Portuguese Translation
18 * Author: Eduardo Cerqueira<egcerqueira@gmail.com>
19 * Update: João Mello<jmello@hotmail.com.br>
20 */
21 (function ($) {
22 $.fn.bootstrapTable.locales['pt-BR'] = {
23 formatLoadingMessage: function formatLoadingMessage() {
24 return 'Carregando, aguarde';
25 },
26 formatRecordsPerPage: function formatRecordsPerPage(pageNumber) {
27 return pageNumber + ' registros por p\xE1gina';
28 },
29 formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) {
30 return 'Exibindo ' + pageFrom + ' at\xE9 ' + pageTo + ' de ' + totalRows + ' linhas';
31 },
32 formatDetailPagination: function formatDetailPagination(totalRows) {
33 return 'Showing ' + totalRows + ' rows';
34 },
35 formatSearch: function formatSearch() {
36 return 'Pesquisar';
37 },
38 formatNoMatches: function formatNoMatches() {
39 return 'Nenhum registro encontrado';
40 },
41 formatPaginationSwitch: function formatPaginationSwitch() {
42 return 'Ocultar/Exibir paginação';
43 },
44 formatRefresh: function formatRefresh() {
45 return 'Recarregar';
46 },
47 formatToggle: function formatToggle() {
48 return 'Alternar';
49 },
50 formatColumns: function formatColumns() {
51 return 'Colunas';
52 },
53 formatFullscreen: function formatFullscreen() {
54 return 'Fullscreen';
55 },
56 formatAllRows: function formatAllRows() {
57 return 'All';
58 },
59 formatAutoRefresh: function formatAutoRefresh() {
60 return 'Auto Refresh';
61 },
62 formatExport: function formatExport() {
63 return 'Export data';
64 },
65 formatClearFilters: function formatClearFilters() {
66 return 'Clear filters';
67 },
68 formatJumpto: function formatJumpto() {
69 return 'GO';
70 },
71 formatAdvancedSearch: function formatAdvancedSearch() {
72 return 'Advanced search';
73 },
74 formatAdvancedCloseButton: function formatAdvancedCloseButton() {
75 return 'Close';
76 }
77 };
78
79 $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['pt-BR']);
80 })(jQuery);
81});
\No newline at end of file