UNPKG

2.67 kBJavaScriptView Raw
1/**
2 * Bootstrap Table Spanish (México) translation (Obtenido de traducción de Argentina)
3 * Author: Felix Vera (felix.vera@gmail.com)
4 * Copiado: Mauricio Vera (mauricioa.vera@gmail.com)
5 * Revisión: J Manuel Corona (jmcg92@gmail.com) (13/Feb/2018).
6 * Revisión: Ricardo González (rickygzz85@gmail.com) (20/Oct/2021)
7 */
8
9$.fn.bootstrapTable.locales['es-MX'] = {
10 formatCopyRows () {
11 return 'Copiar Filas'
12 },
13 formatPrint () {
14 return 'Imprimir'
15 },
16 formatLoadingMessage () {
17 return 'Cargando, espere por favor'
18 },
19 formatRecordsPerPage (pageNumber) {
20 return `${pageNumber} resultados por página`
21 },
22 formatShowingRows (pageFrom, pageTo, totalRows, totalNotFiltered) {
23 if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered > totalRows) {
24 return `Mostrando ${pageFrom} a ${pageTo} de ${totalRows} filas (filtrado de ${totalNotFiltered} filas totales)`
25 }
26
27 return `Mostrando ${pageFrom} a ${pageTo} de ${totalRows} filas`
28 },
29 formatSRPaginationPreText () {
30 return 'página anterior'
31 },
32 formatSRPaginationPageText (page) {
33 return `ir a la página ${page}`
34 },
35 formatSRPaginationNextText () {
36 return 'página siguiente'
37 },
38 formatDetailPagination (totalRows) {
39 return `Mostrando ${totalRows} filas`
40 },
41 formatClearSearch () {
42 return 'Limpiar búsqueda'
43 },
44 formatSearch () {
45 return 'Buscar'
46 },
47 formatNoMatches () {
48 return 'No se encontraron registros que coincidan'
49 },
50 formatPaginationSwitch () {
51 return 'Mostrar/ocultar paginación'
52 },
53 formatPaginationSwitchDown () {
54 return 'Mostrar paginación'
55 },
56 formatPaginationSwitchUp () {
57 return 'Ocultar paginación'
58 },
59 formatRefresh () {
60 return 'Actualizar'
61 },
62 formatToggleOn () {
63 return 'Mostrar vista'
64 },
65 formatToggleOff () {
66 return 'Ocultar vista'
67 },
68 formatColumns () {
69 return 'Columnas'
70 },
71 formatColumnsToggleAll () {
72 return 'Alternar todo'
73 },
74 formatFullscreen () {
75 return 'Pantalla completa'
76 },
77 formatAllRows () {
78 return 'Todo'
79 },
80 formatAutoRefresh () {
81 return 'Auto actualizar'
82 },
83 formatExport () {
84 return 'Exportar datos'
85 },
86 formatJumpTo () {
87 return 'IR'
88 },
89 formatAdvancedSearch () {
90 return 'Búsqueda avanzada'
91 },
92 formatAdvancedCloseButton () {
93 return 'Cerrar'
94 },
95 formatFilterControlSwitch () {
96 return 'Ocultar/Mostrar controles'
97 },
98 formatFilterControlSwitchHide () {
99 return 'Ocultar controles'
100 },
101 formatFilterControlSwitchShow () {
102 return 'Mostrar controles'
103 }
104}
105
106Object.assign($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['es-MX'])