bootstrap-table-es-CL.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /**
  2. * Traducción de librería Bootstrap Table a Español (Chile)
  3. * @author Brian Álvarez Azócar
  4. * email brianalvarezazocar@gmail.com
  5. */
  6. $.fn.bootstrapTable.locales['es-CL'] = {
  7. formatLoadingMessage () {
  8. return 'Cargando, espere por favor'
  9. },
  10. formatRecordsPerPage (pageNumber) {
  11. return `${pageNumber} filas por p\u00E1gina`
  12. },
  13. formatShowingRows (pageFrom, pageTo, totalRows, totalNotFiltered) {
  14. if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered > totalRows) {
  15. return `Mostrando ${pageFrom} a ${pageTo} de ${totalRows} filas (filtered from ${totalNotFiltered} total rows)`
  16. }
  17. return `Mostrando ${pageFrom} a ${pageTo} de ${totalRows} filas`
  18. },
  19. formatSRPaginationPreText () {
  20. return 'previous page'
  21. },
  22. formatSRPaginationPageText (page) {
  23. return `to page ${page}`
  24. },
  25. formatSRPaginationNextText () {
  26. return 'next page'
  27. },
  28. formatDetailPagination (totalRows) {
  29. return `Showing ${totalRows} rows`
  30. },
  31. formatClearSearch () {
  32. return 'Limpiar búsqueda'
  33. },
  34. formatSearch () {
  35. return 'Buscar'
  36. },
  37. formatNoMatches () {
  38. return 'No se encontraron registros'
  39. },
  40. formatPaginationSwitch () {
  41. return 'Ocultar/Mostrar paginaci\u00F3n'
  42. },
  43. formatPaginationSwitchDown () {
  44. return 'Show pagination'
  45. },
  46. formatPaginationSwitchUp () {
  47. return 'Hide pagination'
  48. },
  49. formatRefresh () {
  50. return 'Refrescar'
  51. },
  52. formatToggle () {
  53. return 'Cambiar'
  54. },
  55. formatToggleOn () {
  56. return 'Show card view'
  57. },
  58. formatToggleOff () {
  59. return 'Hide card view'
  60. },
  61. formatColumns () {
  62. return 'Columnas'
  63. },
  64. formatColumnsToggleAll () {
  65. return 'Toggle all'
  66. },
  67. formatFullscreen () {
  68. return 'Fullscreen'
  69. },
  70. formatAllRows () {
  71. return 'Todo'
  72. },
  73. formatAutoRefresh () {
  74. return 'Auto Refresh'
  75. },
  76. formatExport () {
  77. return 'Export data'
  78. },
  79. formatJumpTo () {
  80. return 'GO'
  81. },
  82. formatAdvancedSearch () {
  83. return 'Advanced search'
  84. },
  85. formatAdvancedCloseButton () {
  86. return 'Close'
  87. }
  88. }
  89. $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['es-CL'])