bootstrap-table-pt-BR.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /**
  2. * Bootstrap Table Brazilian Portuguese Translation
  3. * Author: Eduardo Cerqueira<egcerqueira@gmail.com>
  4. * Update: João Mello<jmello@hotmail.com.br>
  5. * Update: Leandro Felizari<lfelizari@gmail.com>
  6. */
  7. $.fn.bootstrapTable.locales['pt-BR'] = {
  8. formatLoadingMessage () {
  9. return 'Carregando, aguarde'
  10. },
  11. formatRecordsPerPage (pageNumber) {
  12. return `${pageNumber} registros por página`
  13. },
  14. formatShowingRows (pageFrom, pageTo, totalRows, totalNotFiltered) {
  15. if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered > totalRows) {
  16. return `Exibindo ${pageFrom} até ${pageTo} de ${totalRows} linhas (filtered from ${totalNotFiltered} total rows)`
  17. }
  18. return `Exibindo ${pageFrom} até ${pageTo} de ${totalRows} linhas`
  19. },
  20. formatSRPaginationPreText () {
  21. return 'página anterior'
  22. },
  23. formatSRPaginationPageText (page) {
  24. return `Para a página ${page}`
  25. },
  26. formatSRPaginationNextText () {
  27. return 'próxima página'
  28. },
  29. formatDetailPagination (totalRows) {
  30. return `Mostrando ${totalRows} linhas`
  31. },
  32. formatClearSearch () {
  33. return 'Limpar Pesquisa'
  34. },
  35. formatSearch () {
  36. return 'Pesquisar'
  37. },
  38. formatNoMatches () {
  39. return 'Nenhum registro encontrado'
  40. },
  41. formatPaginationSwitch () {
  42. return 'Ocultar/Exibir paginação'
  43. },
  44. formatPaginationSwitchDown () {
  45. return 'Mostrar Paginação'
  46. },
  47. formatPaginationSwitchUp () {
  48. return 'Esconder Paginação'
  49. },
  50. formatRefresh () {
  51. return 'Recarregar'
  52. },
  53. formatToggle () {
  54. return 'Alternar'
  55. },
  56. formatToggleOn () {
  57. return 'Show card view'
  58. },
  59. formatToggleOff () {
  60. return 'Hide card view'
  61. },
  62. formatColumns () {
  63. return 'Colunas'
  64. },
  65. formatColumnsToggleAll () {
  66. return 'Toggle all'
  67. },
  68. formatFullscreen () {
  69. return 'Tela cheia'
  70. },
  71. formatAllRows () {
  72. return 'Tudo'
  73. },
  74. formatAutoRefresh () {
  75. return 'Atualização Automática'
  76. },
  77. formatExport () {
  78. return 'Exportar dados'
  79. },
  80. formatJumpTo () {
  81. return 'IR'
  82. },
  83. formatAdvancedSearch () {
  84. return 'Pesquisa Avançada'
  85. },
  86. formatAdvancedCloseButton () {
  87. return 'Fechar'
  88. }
  89. }
  90. $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['pt-BR'])