How can I set a language file as default?
How can I set a language file as default?

Actually I tried this, but it doesn't work:
$.extend($.fn.dataTable.defaults, {
language: { url: "/Scripts/dataTables.german.json" }
});
It does not even make an call to the file when building the table. If I set the file the same way during initialization of a certain table, it works. But it would be much more convenient, if I could set it as default.
This discussion has been closed.
Answers
Yep, you need to set it on each table - see here.
Colin
Too bad. That's actually not what I wanted to hear
Is there a good reason, why I can set things like searching and ordering as default, but not the language file?
Using $.fn.dataTable.defaults works here:
http://live.datatables.net/fumojapu/1/edit
Have you checked for errors? Maybe the URL is incorrect?
Kevin
Ah nice, thank you for correcting me there, Kevin,
Colin
Ok, again my fault... What I basically did was something like this;
Means, setting the default inside the "docuent ready", and the initialization of the data table outside - which leads to first creating the table and then setting defaults. Of course this does not work.
Sorry.