Coder Social home page Coder Social logo

Comments (4)

 avatar commented on July 20, 2024

I don't think its that common - I don't immediately remember it, but then there are >21k threads in the forum now! What language options would you like to have loaded via Ajax? The button titles and the dialogue options I guess? It isn't something I'm working on yet, but I will look into it when I start work on the next major update to TableTools.

from tabletools.

alesnav avatar alesnav commented on July 20, 2024

Well, you know, it is easy to find it on Google just searching by TableTools oLanguage, so I don`t create a new thread if there is one talking about it.

I think that the best way to load its defaults would be using the main DataTables language file, as commented by joelones in http://datatables.net/forums/discussion/19941/change-language-for-tabletools-buttons.

For example, adding option sToolTip for all buttons (already exists for print button) and sInfo for copybutton:

{
    "sEmptyTable":     "No data available in table",
    "sInfo":           "Showing _START_ to _END_ of _TOTAL_ entries",
    "sInfoEmpty":      "Showing 0 to 0 of 0 entries",
    "sInfoFiltered":   "(filtered from _MAX_ total entries)",
    "sInfoPostFix":    "",
    "sInfoThousands":  ",",
    "sLengthMenu":     "Show _MENU_ entries",
    "sLoadingRecords": "Loading...",
    "sProcessing":     "Processing...",
    "sSearch":         "Search:",
    "sZeroRecords":    "No matching records found",
    "oPaginate": {
        "sFirst":    "First",
        "sLast":     "Last",
        "sNext":     "Next",
        "sPrevious": "Previous"
    },
    "oAria": {
        "sSortAscending":  ": activate to sort column ascending",
        "sSortDescending": ": activate to sort column descending"
    },
    "TableTools": {
        "csv": {
            "sButtonText": "CSV",
            "sToolTip": "Save table as CSV"
        },
        "xls": {
            "sButtonText": "Excel",
            "sToolTip": "Save table for Excel"
        },
        "copy": {
            "sButtonText": "Copy",
            "sToolTip": "Copy table to the clipboard",
            "sInfo": "<h6>Table copied</h6><p>Table copied to the clipboard.</p>"
        },
        "pdf": {
            "sButtonText": "PDF",
            "sToolTip": "Save table as PDF"
        },
        "print": {
            "sButtonText": "Print",
            "sInfo": "<h6>Print view</h6><p>Please use your browser's print function to print this table. Press escape when finished.</p>",
            "sToolTip": "View print view"
        },
        "select": {
            "sButtonText": "Select button",
            "sToolTip": ""
        },
        "select_single": {
            "sButtonText": "Select button",
            "sToolTip": ""
        },
        "select_all": {
            "sButtonText": "Select all",
            "sToolTip": ""
        },
        "select_none": {
            "sButtonText": "Deselect all",
            "sToolTip": ""
        },
        "ajax": {
            "sButtonText": "Ajax button",
            "sToolTip": ""
        },
        "collection": {
            "sButtonText": "Collection",
            "sToolTip": ""
        }
    }
}

from tabletools.

 avatar commented on July 20, 2024

Yup - sounds like a good idea and thanks for the link. I'll look into this when I start development of the next major version of TableTools.

from tabletools.

 avatar commented on July 20, 2024

Going to close this in favour of the generic bug DataTables/DataTables #422

from tabletools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.