Language problem

Language problem

satyriasissatyriasis Posts: 10Questions: 4Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem: Hi guys, how do I put my language (Croatian) in $(document).ready(function() {
$('#moja').DataTable( {
language: {
url: 'dataTables.hr.json'
}
} );
} );

Because this doesnt translate anything!

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 12,922Questions: 0Answers: 2,200
    Answer ✓

    It works OK here - are you sure you have that file available?

    Colin

  • satyriasissatyriasis Posts: 10Questions: 4Answers: 0

    I am sorry, I am a bit new. How do You mean that I have that file available?

  • satyriasissatyriasis Posts: 10Questions: 4Answers: 0

    Solved it. Thanks! I am interested in how did you manage to make style like this? I have put this argument:

    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.11.3/css/jquery.dataTables.min.css">
    and it still looks like basic table?

  • colincolin Posts: 12,922Questions: 0Answers: 2,200

    Glad sorted. In my example, there's class="display nowrap" on the table's HTML element. You would need to add that, or the styling that you prefer.

    Colin

  • satyriasissatyriasis Posts: 10Questions: 4Answers: 0

    This solved it. Thanks!

Sign In or Register to comment.