Language translate.

Language translate.

borninmotionborninmotion Posts: 18Questions: 2Answers: 0
edited July 2013 in DataTables 1.9
Hello!

How i can translate language of searchbar text, results, pagination buttons text , etc.. ?

thanks in advance !

p.s. - Awesome script !

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    http://datatables.net/usage/i18n

    Allan
  • borninmotionborninmotion Posts: 18Questions: 2Answers: 0
    thank you !
  • borninmotionborninmotion Posts: 18Questions: 2Answers: 0
    i write like this


    $(document).ready(function() {
    $('#example').dataTable( {
    "oLanguage": {
    "sLengthMenu": "Display _MENU_ записей на странице",
    "sZeroRecords": "Nothing found - sorry",
    "sInfo": "Showing _START_ to _END_ of _TOTAL_ records",
    "sInfoEmpty": "Showing 0 to 0 of 0 records",
    "sInfoFiltered": "(filtered from _MAX_ total records)"
    }
    } );
    } );



    in my html code in body area - but this not workig..


    can you help me to translate 8 words in my html code ?

    thanks in advance !
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Looks like its working to me: http://live.datatables.net/evilus/edit#javascript,html
  • borninmotionborninmotion Posts: 18Questions: 2Answers: 0
    edited July 2013
    thanks it works.
  • borninmotionborninmotion Posts: 18Questions: 2Answers: 0
    edited July 2013
    but i got some error - (ScreenShot link) -
    http://luxon.co.il/error_/
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Please link to a test case - see: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read

    Allan
  • borninmotionborninmotion Posts: 18Questions: 2Answers: 0
    Thanks but..
    it's not really helps me , because i can't see problem dipper , i am a newbie in js.
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Please link me to the page you are working on so I can see what the problem is. At the moment I'm guessing and generously don' have a clue. You've told me its not working, I've showed you an example that does work, and so I need to see why your page isn't working. It could be anything from a 404 error, to a cross domain issue, to a syntax error. I simply don't know! :-)

    Allan
  • borninmotionborninmotion Posts: 18Questions: 2Answers: 0
    http://luxon.co.il/adminka/ here - sorrry..
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    You are initialling the table once in an inline script on the page you linked to ( `$('#datamytable').dataTable( {` ) and then again in `theme/scripts/load.js` . As the error says, you cannot reinitialise a DataTable - this simply is no facility to do that I'm afraid. You can only initialise a table once.

    Allan
  • borninmotionborninmotion Posts: 18Questions: 2Answers: 0
    THank you very much the problem is solved !!
This discussion has been closed.