default language

default language

okydookydo Posts: 1Questions: 0Answers: 0
edited December 2010 in General
hello

Excuse my english but I'm French developer.

I want extend datatable to put the olanguage option with french value without having to write to each new database.
I try this :
[code]
$.fn.dataTable = $.extend($.fn.dataTable,
function classSettings (){
this.oLanguage = {
"sProcessing": "Traitement en cours...",
"sLengthMenu": "Afficher _MENU_

Replies

  • ikselaiksela Posts: 13Questions: 0Answers: 0
    You should take a look at: http://datatables.net/examples/basic_init/language.html

    You can also use an AJAX source:
    [code]
    $('#table').dataTable({
    "oLanguage": { "sUrl": "../res/js/dataTables.fr.txt" }
    });
    [/code]

    where the text contains the oLanguage object:
    [code]
    {
    "sProcessing": "Traitement en cours...",
    "sLengthMenu": "Nombre maximum d'
This discussion has been closed.