Internationalisation in DataTable Plugin
Internationalisation in DataTable Plugin
iviewclear2
Posts: 3Questions: 0Answers: 0
Hy all,
Why it's not correct to write this :
[code]
$('.sortable').each(function(i){
// DataTable config
var table = $(this),
oTable = table.dataTable({
"oLanguage": {
"oPaginate": {
"sNext": "Page Suivante"
}
},
"oLanguage": {
"oPaginate": {
"sPrevious": "Page Pr
Why it's not correct to write this :
[code]
$('.sortable').each(function(i){
// DataTable config
var table = $(this),
oTable = table.dataTable({
"oLanguage": {
"oPaginate": {
"sNext": "Page Suivante"
}
},
"oLanguage": {
"oPaginate": {
"sPrevious": "Page Pr
This discussion has been closed.
Replies
[code]
var i = 0;
i = 1;
[/code]
And expecting i to be 0. You've got two declarations of 'oLanguage' - you just need to combine them:
[code]
$('.sortable').each(function(i){
// DataTable config
var table = $(this),
oTable = table.dataTable({
"oLanguage": {
"oPaginate": {
"sNext": "Page Suivante",
"sPrevious": "Page Pr
Allan
It works
[code]
$(document).ready(function() {
$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"fnServerData": fnDataTablesPipeline,
"sAjaxSource": "scripts/server_processing.php",
"oLanguage": {
{
"sProcessing": "Hetkinen...",
"sLengthMenu": "Näytä kerralla _MENU_ riviä",
"oPaginate": {
"sFirst": "Ensimmäinen",
"sPrevious": "Edellinen",
"sNext": "Seuraava",
"sLast": "Viimeinen"
}
}
} );
} );
[/code]
Allan
Only issue at the moment is that it pushes the pagination to a second line due to not enough space. I hope that's an easy fix. See screenshot: http://screencast.com/t/TL57T2AF
Allan
Allan
The problem was that I was editing all the time the demo_table.css file. But I had to edit the demo_table_jui.css. They both contain the dataTables_info and paginate classes.