8000 Create bootstrap-table-pt-PT.js · diegobdev/bootstrap-table@c5e9a97 · GitHub
[go: up one dir, main page]

Skip to content

Commit c5e9a97

Browse files
committed
Create bootstrap-table-pt-PT.js
1 parent e091ff1 commit c5e9a97

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/locale/bootstrap-table-pt-PT.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* Bootstrap Table Portuguese Portugal Translation
3+
* Author: Burnspirit<burnspirit@gmail.com>
4+
*/
5+
(function ($) {
6+
'use strict';
7+
$.fn.bootstrapTable.locales['pt-BR'] = {
8+
formatLoadingMessage: function () {
9+
return 'A carregar, aguarde...';
10+
},
11+
formatRecordsPerPage: function (pageNumber) {
12+
return pageNumber + ' registos por página';
13+
},
14+
formatShowingRows: function (pageFrom, pageTo, totalRows) {
15+
return 'A mostrar ' + pageFrom + ' até ' + pageTo + ' de ' + totalRows + ' linhas';
16+
},
17+
formatSearch: function () {
18+
return 'Pesquisa';
19+
},
20+
formatNoMatches: function () {
21+
return 'Nenhum registo encontrado';
22+
}
23+
};
24+
$.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['pt-PT']);
25+
})(jQuery);

0 commit comments

Comments
 (0)
0