bootstrap-table-pt-BR.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. * Update: Fernando Marcos Souza Silva<fernandomarcosss@gmail.com>
  7. */
  8. $.fn.bootstrapTable.locales['pt-BR'] = {
  9. formatCopyRows () {
  10. return 'Copy Rows'
  11. },
  12. formatPrint () {
  13. return 'Print'
  14. },
  15. formatLoadingMessage () {
  16. return 'Carregando, aguarde'
  17. },
  18. formatRecordsPerPage (pageNumber) {
  19. return `${pageNumber} registros por página`
  20. },
  21. formatShowingRows (pageFrom, pageTo, totalRows, totalNotFiltered) {
  22. if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered > totalRows) {
  23. return `Exibindo ${pageFrom} até ${pageTo} de ${totalRows} linhas (filtradas de um total de ${totalNotFiltered} linhas)`
  24. }
  25. return `Exibindo ${pageFrom} até ${pageTo} de ${totalRows} linhas`
  26. },
  27. formatSRPaginationPreText () {
  28. return 'página anterior'
  29. },
  30. formatSRPaginationPageText (page) {
  31. return `Para a página ${page}`
  32. },
  33. formatSRPaginationNextText () {
  34. return 'próxima página'
  35. },
  36. formatDetailPagination (totalRows) {
  37. return `Mostrando ${totalRows} linhas`
  38. },
  39. formatClearSearch () {
  40. return 'Limpar Pesquisa'
  41. },
  42. formatSearch () {
  43. return 'Pesquisar'
  44. },
  45. formatNoMatches () {
  46. return 'Nenhum registro encontrado'
  47. },
  48. formatPaginationSwitch () {
  49. return 'Ocultar/Exibir paginação'
  50. },
  51. formatPaginationSwitchDown () {
  52. return 'Mostrar Paginação'
  53. },
  54. formatPaginationSwitchUp () {
  55. return 'Esconder Paginação'
  56. },
  57. formatRefresh () {
  58. return 'Recarregar'
  59. },
  60. formatToggleOn () {
  61. return 'Show card view'
  62. },
  63. formatToggleOff () {
  64. return 'Hide card view'
  65. },
  66. formatColumns () {
  67. return 'Colunas'
  68. },
  69. formatColumnsToggleAll () {
  70. return 'Alternar tudo'
  71. },
  72. formatFullscreen () {
  73. return 'Tela cheia'
  74. },
  75. formatAllRows () {
  76. return 'Tudo'
  77. },
  78. formatAutoRefresh () {
  79. return 'Atualização Automática'
  80. },
  81. formatExport () {
  82. return 'Exportar dados'
  83. },
  84. formatJumpTo () {
  85. return 'IR'
  86. },
  87. formatAdvancedSearch () {
  88. return 'Pesquisa Avançada'
  89. },
  90. formatAdvancedCloseButton () {
  91. return 'Fechar'
  92. },
  93. formatFilterControlSwitch () {
  94. return 'Ocultar/Exibir controles'
  95. },
  96. formatFilterControlSwitchHide () {
  97. return 'Ocultar controles'
  98. },
  99. formatFilterControlSwitchShow () {
  100. return 'Exibir controles'
  101. }
  102. }
  103. Object.assign($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['pt-BR'])