Internationalisation defaults via Ajax
Internationalisation defaults via Ajax
guiledes
Posts: 3Questions: 1Answers: 0
I found a problem when I set the Internationalisation defaults using ajax, then when I try to initialize a table and set a specific translation for it, it doesn't overwrite the default, but if the default is set without ajax, it works.
This works: http://live.datatables.net/mixavivo/2/edit
This doesn't: http://live.datatables.net/foxixage/1/edit
Am I doing something wrong?
This question has accepted answers - jump to:
This discussion has been closed.
Answers
No - you aren't doing anything wrong, its just that the language information loaded from the Ajax source takes precedence. That perhaps is incorrect (its the first time I can recall this coming up). I'll take a look at how that can be changed.
Allan
Thanks allan
I've just been looking into this and I don't think its going to be trivial to fix unfortunately. I've opened a new github issue for this change, but it will likely be the next major version of DataTables before it can be resolved, and I'm afraid I don't know when that will be (hopefully this year...).
Allan
Thank you very much Allan!