language file

language file

BoboBobo Posts: 1Questions: 0Answers: 0
edited February 2011 in General
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...

Replies

  • Djang0Djang0 Posts: 3Questions: 0Answers: 0
    Hi,

    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
  • Djang0Djang0 Posts: 3Questions: 0Answers: 0
    edited April 2011
    ... by the way, even with specifying one terme in script tag, like this :

    [code]

    $(document).ready(function() {
    $('#example').dataTable( {
    "oLanguage": {
    "oPaginate": {
    "sPrevious": "Previoussss page"
    }
    }
    } );
    } );

    [/code]

    is not working... Am I misunderstanding smthng?
  • Djang0Djang0 Posts: 3Questions: 0Answers: 0
    ...nevermind, it seems that the format of language wasn't right. I now use this one :
    [code]
    {
    "sProcessing": "Traitement en cours...",
    "sLengthMenu": "Afficher _MENU_
This discussion has been closed.