UNPKG

2.6 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 */
7
8$.fn.bootstrapTable.locales['es-MX'] = {
9 formatCopyRows () {
10 return 'Copy Rows'
11 },
12 formatPrint () {
13 return 'Print'
14 },
15 formatLoadingMessage () {
16 return 'Cargando, espere por favor'
17 },
18 formatRecordsPerPage (pageNumber) {
19 return `${pageNumber} registros por página`
20 },
21 formatShowingRows (pageFrom, pageTo, totalRows, totalNotFiltered) {
22 if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered > totalRows) {
23 return `Mostrando ${pageFrom} a ${pageTo} de ${totalRows} filas (filtered from ${totalNotFiltered} total rows)`
24 }
25
26 return `Mostrando ${pageFrom} a ${pageTo} de ${totalRows} filas`
27 },
28 formatSRPaginationPreText () {
29 return 'previous page'
30 },
31 formatSRPaginationPageText (page) {
32 return `to page ${page}`
33 },
34 formatSRPaginationNextText () {
35 return 'next page'
36 },
37 formatDetailPagination (totalRows) {
38 return `Mostrando ${totalRows} filas`
39 },
40 formatClearSearch () {
41 return 'Limpiar búsqueda'
42 },
43 formatSearch () {
44 return 'Buscar'
45 },
46 formatNoMatches () {
47 return 'No se encontraron registros que coincidan'
48 },
49 formatPaginationSwitch () {
50 return 'Mostrar/ocultar paginación'
51 },
52 formatPaginationSwitchDown () {
53 return 'Show pagination'
54 },
55 formatPaginationSwitchUp () {
56 return 'Hide pagination'
57 },
58 formatRefresh () {
59 return 'Actualizar'
60 },
61 formatToggle () {
62 return 'Cambiar vista'
63 },
64 formatToggleOn () {
65 return 'Show card view'
66 },
67 formatToggleOff () {
68 return 'Hide card view'
69 },
70 formatColumns () {
71 return 'Columnas'
72 },
73 formatColumnsToggleAll () {
74 return 'Toggle all'
75 },
76 formatFullscreen () {
77 return 'Pantalla completa'
78 },
79 formatAllRows () {
80 return 'Todo'
81 },
82 formatAutoRefresh () {
83 return 'Auto Refresh'
84 },
85 formatExport () {
86 return 'Export data'
87 },
88 formatJumpTo () {
89 return 'GO'
90 },
91 formatAdvancedSearch () {
92 return 'Advanced search'
93 },
94 formatAdvancedCloseButton () {
95 return 'Close'
96 },
97 formatFilterControlSwitch () {
98 return 'Ocultar/Mostrar controles'
99 },
100 formatFilterControlSwitchHide () {
101 return 'Ocultar controles'
102 },
103 formatFilterControlSwitchShow () {
104 return 'Mostrar controles'
105 }
106}
107
108$.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['es-MX'])