When using 'fr_dataTables.json' and I change settings, these settings are not considered.

When using 'fr_dataTables.json' and I change settings, these settings are not considered.

MarcPMarcP Posts: 2Questions: 1Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem: Hi!
In the 'fr_dataTables.json' I changed some settings but the changes aren't taken into consideration. Why?

Answers

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin

    Do you mean you are using language.ajax and also some of the language options? Unfortunately the language file will always take precedence, so your customisations in the init object will be ignored. That is something that will change for DataTables 2, but for the moment you’d need to download the file to your own server and made the changes you want locally, loading the language file from there.

    Allan

  • MarcPMarcP Posts: 2Questions: 1Answers: 0

    I'm using the file named 'fr_dataTables.json' or other json files.
    These files are called with this script:

    $(document).ready(function() { $('#table').dataTable( { language: { url: "lang/fr_dataTables.json" } } ); } );
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin

    That should work like that. If it isn’t working as expected, can you give us a link to a test case showing the issue please?

    Thanks,
    Allan

This discussion has been closed.