Skip to content

Instantly share code, notes, and snippets.

@goliver79
Created May 31, 2014 07:29
Show Gist options
  • Select an option

  • Save goliver79/31716d958f13ce350c6d to your computer and use it in GitHub Desktop.

Select an option

Save goliver79/31716d958f13ce350c6d to your computer and use it in GitHub Desktop.
[JAVASCRIPT] DataTables Spanish initialization
jQuery(document).ready( function () {
$ = jQuery;
var table = $('#plans2').DataTable({
language: {
processing: "Procesando...",
search: "Buscar :",
lengthMenu: "Ver _MENU_ elementos",
info: "Viendo _START_ a _END_ de <b>_TOTAL_ elementos</b>",
infoEmpty: "Viendo 0 a 0 de 0 elementos",
infoFiltered: "(filtrados de _MAX_ elementos en total)",
infoPostFix: "",
loadingRecords: "Cargando...",
zeroRecords: "Ningún resultado encontrado",
emptyTable: "No hay elementos en la tabla",
paginate: {
first: "Primero",
previous: "Anterior",
next: "Siguiente",
last: "Último"
},
aria: {
sortAscending: ": activar para ordenar de manera ascendente",
sortDescending: ": activar para ordenar de manera desscendente"
}
},
// diplay elements
dom: 'iprtip',
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment