Topic: Table Editor Plugin Configuration

gkennedy free asked 5 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 5 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();

});
 
Here is everything --> https://datatables.net/reference/option/language .
Our DataTables are using API from original DataTable.

Best,
Piotr

gkennedy free commented 5 years ago

It worked perfectly, thank you very much ?



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: 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