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.
MarcP
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?
This discussion has been closed.
Answers
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
I'm using the file named 'fr_dataTables.json' or other json files.
$(document).ready(function() { $('#table').dataTable( { language: { url: "lang/fr_dataTables.json" } } ); } );These files are called with this script:
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