Impossible for me adding oLanguage propierty :(

Impossible for me adding oLanguage propierty :(

raultaborazraultaboraz Posts: 6Questions: 0Answers: 0
edited August 2011 in General
Hi All,

Please could you help me? I am able to see datatables running very well, but I can't add "oLanguage": {"sUrl": "de_DE.txt"} to my code...

[code]



$(document).ready(function() {
$('#datatables').dataTable( {
/* "bJQueryUI": true, */
"sPaginationType": "full_numbers",
"aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]]
});
});
[/code]

My code looks like this

[code]



$(document).ready(function() {
$('#datatables').dataTable( {
/* "bJQueryUI": true, */
"sPaginationType": "full_numbers",
"aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]],
"oLanguage": {"sUrl": "de_DE.txt"} ,
});
});
[/code]

I swear that sure will be a very stupid question, can I can't get it working... I have already a de_DE.txt file on same scripts folders...

Please could you help me??

Thank you very much in advance!

Replies

  • allanallan Posts: 63,400Questions: 1Answers: 10,452 Site admin
    Looks okay to me - I'd drop the trailing comma since that will cause an error in IE, but other than that it should be okay. If you look at your server error log are you getting a 404 error for de_DE.txt? I'm wondering if it is a path problem.

    Allan
  • raultaborazraultaboraz Posts: 6Questions: 0Answers: 0
    Hi Allan, and please sorry my delay! I am trying to find out, because de_DE.txt is ok on correct URL, but I don't know it breaks my datatables... It works ok with that line :( I will check it again and see if works because I am using Coda OSX for develop (webkit) Thank you!
This discussion has been closed.