bootstrap-table-pt-BR.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /**
  2. * Bootstrap Table Brazilian Portuguese Translation
  3. * Author: Eduardo Cerqueira<egcerqueira@gmail.com>
  4. * Update: João Mello<jmello@hotmail.com.br>
  5. */
  6. $.fn.bootstrapTable.locales['pt-BR'] = {
  7. formatLoadingMessage () {
  8. return 'Carregando, aguarde'
  9. },
  10. formatRecordsPerPage (pageNumber) {
  11. return `${pageNumber} registros por página`
  12. },
  13. formatShowingRows (pageFrom, pageTo, totalRows, totalNotFiltered) {
  14. if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered > totalRows) {
  15. return `Exibindo ${pageFrom} até ${pageTo} de ${totalRows} linhas (filtered from ${totalNotFiltered} total rows)`
  16. }
  17. return `Exibindo ${pageFrom} até ${pageTo} de ${totalRows} linhas`
  18. },
  19. formatDetailPagination (totalRows) {
  20. return `Showing ${totalRows} rows`
  21. },
  22. formatSearch () {
  23. return 'Pesquisar'
  24. },
  25. formatNoMatches () {
  26. return 'Nenhum registro encontrado'
  27. },
  28. formatPaginationSwitch () {
  29. return 'Ocultar/Exibir paginação'
  30. },
  31. formatRefresh () {
  32. return 'Recarregar'
  33. },
  34. formatToggle () {
  35. return 'Alternar'
  36. },
  37. formatColumns () {
  38. return 'Colunas'
  39. },
  40. formatFullscreen () {
  41. return 'Fullscreen'
  42. },
  43. formatAllRows () {
  44. return 'All'
  45. },
  46. formatAutoRefresh () {
  47. return 'Auto Refresh'
  48. },
  49. formatExport () {
  50. return 'Export data'
  51. },
  52. formatClearFilters () {
  53. return 'Clear filters'
  54. },
  55. formatJumpTo () {
  56. return 'GO'
  57. },
  58. formatAdvancedSearch () {
  59. return 'Advanced search'
  60. },
  61. formatAdvancedCloseButton () {
  62. return 'Close'
  63. }
  64. }
  65. $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['pt-BR'])