bootstrap-table-es-CL.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. formatCopyRows () {
  8. return 'Copiar Filas'
  9. },
  10. formatPrint () {
  11. return 'Imprimir'
  12. },
  13. formatLoadingMessage () {
  14. return 'Cargando, espere por favor'
  15. },
  16. formatRecordsPerPage (pageNumber) {
  17. return `${pageNumber} filas por página`
  18. },
  19. formatShowingRows (pageFrom, pageTo, totalRows, totalNotFiltered) {
  20. if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered > totalRows) {
  21. return `Mostrando ${pageFrom} a ${pageTo} de ${totalRows} filas (filtrado de ${totalNotFiltered} filas totales)`
  22. }
  23. return `Mostrando ${pageFrom} a ${pageTo} de ${totalRows} filas`
  24. },
  25. formatSRPaginationPreText () {
  26. return 'página anterior'
  27. },
  28. formatSRPaginationPageText (page) {
  29. return `a la página ${page}`
  30. },
  31. formatSRPaginationNextText () {
  32. return 'siguiente página'
  33. },
  34. formatDetailPagination (totalRows) {
  35. return `Mostrando ${totalRows} filas`
  36. },
  37. formatClearSearch () {
  38. return 'Limpiar búsqueda'
  39. },
  40. formatSearch () {
  41. return 'Buscar'
  42. },
  43. formatNoMatches () {
  44. return 'No se encontraron registros'
  45. },
  46. formatPaginationSwitch () {
  47. return 'Ocultar/Mostrar paginación'
  48. },
  49. formatPaginationSwitchDown () {
  50. return 'Mostrar paginación'
  51. },
  52. formatPaginationSwitchUp () {
  53. return 'Ocultar paginación'
  54. },
  55. formatRefresh () {
  56. return 'Refrescar'
  57. },
  58. formatToggleOn () {
  59. return 'Mostrar vista de carta'
  60. },
  61. formatToggleOff () {
  62. return 'Ocultar vista de carta'
  63. },
  64. formatColumns () {
  65. return 'Columnas'
  66. },
  67. formatColumnsToggleAll () {
  68. return 'Cambiar todo'
  69. },
  70. formatFullscreen () {
  71. return 'Pantalla completa'
  72. },
  73. formatAllRows () {
  74. return 'Todo'
  75. },
  76. formatAutoRefresh () {
  77. return 'Auto Recargar'
  78. },
  79. formatExport () {
  80. return 'Exportar datos'
  81. },
  82. formatJumpTo () {
  83. return 'IR'
  84. },
  85. formatAdvancedSearch () {
  86. return 'Búsqueda avanzada'
  87. },
  88. formatAdvancedCloseButton () {
  89. return 'Cerrar'
  90. },
  91. formatFilterControlSwitch () {
  92. return 'Ocultar/Mostrar controles'
  93. },
  94. formatFilterControlSwitchHide () {
  95. return 'Ocultar controles'
  96. },
  97. formatFilterControlSwitchShow () {
  98. return 'Mostrar controles'
  99. }
  100. }
  101. $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['es-CL'])