Change language for TableTools buttons

Change language for TableTools buttons

joelonesjoelones Posts: 7Questions: 1Answers: 0
edited March 2014 in TableTools
I am trying to change the language for the three buttons I'm using for TableTools. I am able to change the locale correctly using oLanguage, but it does not affect the TableTools buttons.
[code]
"oTableTools": {
"sSwfPath": "{{ STATIC_URL }}datatables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf",
"aButtons": [ "csv", "pdf", "print" ]
},
[/code]
Thoughts

Replies

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin
    Use the sButtonText option: http://datatables.net/extras/tabletools/button_options#sButtonText . There currently isn't a way for the language options in DataTables to modify the the button text.

    Allan
  • joelonesjoelones Posts: 7Questions: 1Answers: 0
    edited March 2014
    Thanks Allan,

    I guess I would put the sButtonText text in my language file mapping:

    [code]
    "oLanguage": {
    "sUrl": langFile
    },
    [/code]

    [code]
    ...
    "sSortDescending": ": activer pour trier la colonne par ordre décroissant"
    },
    "aButtons": {
    "print": "imprimer"
    }
    [/code]

    Or that just wouldn't work
  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin
    It would work if you changed the TableTools code to read that information! At the moment, and without modification it won't work. As I said, TableTools doesn't read the language options of DataTables.

    Allan
  • susana69susana69 Posts: 1Questions: 0Answers: 0

    Hi,
    I can modify the language of the COPY button and the tooltip but I can't modify the text of the dialog window with the result "Tabled copied" and the text above: "Copied 57 rows to the clipboard"
    thanks
    Susana

This discussion has been closed.