bootstrap-table-pt-PT.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /**
  2. * Bootstrap Table Portuguese Portugal Translation
  3. * Author: Burnspirit<burnspirit@gmail.com>
  4. */
  5. ($ => {
  6. $.fn.bootstrapTable.locales['pt-PT'] = {
  7. formatLoadingMessage () {
  8. return 'A carregar, por favor aguarde'
  9. },
  10. formatRecordsPerPage (pageNumber) {
  11. return `${pageNumber} registos por p&aacute;gina`
  12. },
  13. formatShowingRows (pageFrom, pageTo, totalRows, totalNotFiltered) {
  14. if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered < totalRows) {
  15. return `A mostrar ${pageFrom} at&eacute; ${pageTo} de ${totalRows} linhas (filtered from ${totalNotFiltered} total entries)`
  16. }
  17. return `A mostrar ${pageFrom} at&eacute; ${pageTo} de ${totalRows} linhas`
  18. },
  19. formatDetailPagination (totalRows) {
  20. return `Showing ${totalRows} rows`
  21. },
  22. formatSearch () {
  23. return 'Pesquisa'
  24. },
  25. formatNoMatches () {
  26. return 'Nenhum registo encontrado'
  27. },
  28. formatPaginationSwitch () {
  29. return 'Esconder/Mostrar pagina&ccedil&atilde;o'
  30. },
  31. formatRefresh () {
  32. return 'Atualizar'
  33. },
  34. formatToggle () {
  35. return 'Alternar'
  36. },
  37. formatColumns () {
  38. return 'Colunas'
  39. },
  40. formatFullscreen () {
  41. return 'Fullscreen'
  42. },
  43. formatAllRows () {
  44. return 'Tudo'
  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-PT'])
  66. })(jQuery)