Table Editor Plugin Configuration

web
mobile

Topic: Table Editor Plugin Configuration

gkennedy asked 2 years ago

Hi there, I would like to change some terms in Table Editor Plugin from English to Spanish. For example, change the term "Search" for "Búsqueda", "previous" for "anterior"... Is it possible ? 

I'm newie with this technology, some documentation or examples would help.

Thanks

 


Piotr Glejzer staff answered 2 years ago

Hi,

yes it possible. You have to do something like this.

$(document).ready(function () {

$('#dtBasicExample').dataTable({

"language": {

"paginate": {

"previous":"Anterior",

"next":"Siguiente",

},

"search":"Filtrar",

"infoEmpty":"Mostrando 0 a 0 de 0 entradas",

"info":"Mostrando _START_ a _END_ de _TOTAL_ entradas",

"emptyTable":"No hay datos disponibles en la tabla",

"infoFiltered":"(filtrado de _MAX_ entradas totales)",

"lengthMenu":"Mostrar _MENU_ entradas",

"loadingRecords":"Cargando...",

"processing":"Tratamiento...",

"search":"Buscar:",

"zeroRecords":"No se encontraron registros coincidentes",

}

});

$('#dtBasicExample').mdbEditor();

});
 
Our DataTables are using API from original DataTable.

Best,
Piotr

gkennedy commented 2 years ago

It worked perfectly, thank you very much ?


Please insert min. 20 characters.
Status

Resolved

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: MacBook Pro
  • Browser: Google Chrome Version 70.0.3538
  • OS: Mac OS Mojave 10.14.1
  • Provided sample code: No
  • Provided link: No