bootstrap-table-es-MX.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. (function (global, factory) {
  2. if (typeof define === "function" && define.amd) {
  3. define([], factory);
  4. } else if (typeof exports !== "undefined") {
  5. factory();
  6. } else {
  7. var mod = {
  8. exports: {}
  9. };
  10. factory();
  11. global.bootstrapTableEsMX = mod.exports;
  12. }
  13. })(this, function () {
  14. 'use strict';
  15. /**
  16. * Bootstrap Table Spanish (México) translation (Obtenido de traducción de Argentina)
  17. * Author: Felix Vera (felix.vera@gmail.com)
  18. * Copiado: Mauricio Vera (mauricioa.vera@gmail.com)
  19. * Revisión: J Manuel Corona (jmcg92@gmail.com) (13/Feb/2018).
  20. */
  21. (function ($) {
  22. 'use strict';
  23. $.fn.bootstrapTable.locales['es-MX'] = {
  24. formatLoadingMessage: function formatLoadingMessage() {
  25. return 'Cargando, espere por favor...';
  26. },
  27. formatRecordsPerPage: function formatRecordsPerPage(pageNumber) {
  28. return pageNumber + ' registros por página';
  29. },
  30. formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) {
  31. return 'Mostrando ' + pageFrom + ' a ' + pageTo + ' de ' + totalRows + ' filas';
  32. },
  33. formatDetailPagination: function formatDetailPagination(totalRows) {
  34. return 'Mostrando ' + totalRows + ' filas';
  35. },
  36. formatSearch: function formatSearch() {
  37. return 'Buscar';
  38. },
  39. formatNoMatches: function formatNoMatches() {
  40. return 'No se encontraron registros que coincidan';
  41. },
  42. formatPaginationSwitch: function formatPaginationSwitch() {
  43. return 'Mostrar/ocultar paginación';
  44. },
  45. formatRefresh: function formatRefresh() {
  46. return 'Actualizar';
  47. },
  48. formatToggle: function formatToggle() {
  49. return 'Cambiar vista';
  50. },
  51. formatFullscreen: function formatFullscreen() {
  52. return 'Pantalla completa';
  53. },
  54. formatColumns: function formatColumns() {
  55. return 'Columnas';
  56. },
  57. formatAllRows: function formatAllRows() {
  58. return 'Todo';
  59. }
  60. };
  61. $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['es-MX']);
  62. })(jQuery);
  63. });