bootstrap-table-es-MX.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. $.fn.bootstrapTable.locales['es-MX'] = {
  23. formatLoadingMessage: function formatLoadingMessage() {
  24. return 'Cargando, espere por favor...';
  25. },
  26. formatRecordsPerPage: function formatRecordsPerPage(pageNumber) {
  27. return pageNumber + ' registros por p\xE1gina';
  28. },
  29. formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) {
  30. return 'Mostrando ' + pageFrom + ' a ' + pageTo + ' de ' + totalRows + ' filas';
  31. },
  32. formatDetailPagination: function formatDetailPagination(totalRows) {
  33. return 'Mostrando ' + totalRows + ' filas';
  34. },
  35. formatSearch: function formatSearch() {
  36. return 'Buscar';
  37. },
  38. formatNoMatches: function formatNoMatches() {
  39. return 'No se encontraron registros que coincidan';
  40. },
  41. formatPaginationSwitch: function formatPaginationSwitch() {
  42. return 'Mostrar/ocultar paginación';
  43. },
  44. formatRefresh: function formatRefresh() {
  45. return 'Actualizar';
  46. },
  47. formatToggle: function formatToggle() {
  48. return 'Cambiar vista';
  49. },
  50. formatFullscreen: function formatFullscreen() {
  51. return 'Pantalla completa';
  52. },
  53. formatColumns: function formatColumns() {
  54. return 'Columnas';
  55. },
  56. formatAllRows: function formatAllRows() {
  57. return 'Todo';
  58. }
  59. };
  60. $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['es-MX']);
  61. })(jQuery);
  62. });