language file
language file
I had a problem with apache not parsing language file
I was getting no response header on one of the servers where I had datatables installed, it's working fine on all other servers though. Language file was valid JSON, but for some reason no response headers where shown, and the file was visible via browser...
The only solution was to put the language json inside the [code][/code] tag inside [code] [/code]... so... if someone else encounters this problem, try this, it might help.
keep up the good work Allan!
Peace...
I was getting no response header on one of the servers where I had datatables installed, it's working fine on all other servers though. Language file was valid JSON, but for some reason no response headers where shown, and the file was visible via browser...
The only solution was to put the language json inside the [code][/code] tag inside [code] [/code]... so... if someone else encounters this problem, try this, it might help.
keep up the good work Allan!
Peace...
This discussion has been closed.
Replies
I guess I face the same issue.... could you please be more specific, considering the way you added JSON file into "script" tag?
I made this:
[code]
$(document).ready(function() {
$('#dynTab').dataTable({
"oLanguage": {
"sUrl": "http://data/js/lang/dynTable_FR.txt"}
});
} );
[/code]
using this JSON file:
[code]
{
"sProcessing": "Recherche en cours...",
"sLengthMenu": 'Afficher '+
'10'+
'25'+
'50'+
'Tous'+
' enregistrements.',
"sZeroRecords": "Aucun enregistrement
[code]
$(document).ready(function() {
$('#example').dataTable( {
"oLanguage": {
"oPaginate": {
"sPrevious": "Previoussss page"
}
}
} );
} );
[/code]
is not working... Am I misunderstanding smthng?
[code]
{
"sProcessing": "Traitement en cours...",
"sLengthMenu": "Afficher _MENU_