Change Language of _info and _length
Change Language of _info and _length
ChrizzleWhizzle
Posts: 3Questions: 0Answers: 0
Hey Guys,
I'm now working with dataTables since a few days and wanted to know if or how I can change the Text of _info/_length field to display the correct spelling depending on the language set at the browser.
e.g.
en "Search"
de "Suche"
fr "Recherche"
Is there any possibility?
All the best
ChrizzleWhizzle
I'm now working with dataTables since a few days and wanted to know if or how I can change the Text of _info/_length field to display the correct spelling depending on the language set at the browser.
e.g.
en "Search"
de "Suche"
fr "Recherche"
Is there any possibility?
All the best
ChrizzleWhizzle
This discussion has been closed.
Replies
http://datatables.net/examples/basic_init/language.html
http://www.datatables.net/plug-ins/i18n
If you want to be able to switch between the languages at page load time, you would need something which tells DataTables what language it should be using - how that might be done, I'm not 100% sure - perhaps reading it from the DOM int he HTML HEAD?
Allan
All the best
ChrizzleWhizzle
Update:
So I got the JS thing working to read the set language but when I want to fill the dataTables it throws the following message.
"DataTables warning: Cannot reinitialise DataTable.
To retrieve the DataTables object for this table, please pass either no arguments to the dataTable() function, or set bRetrieve to true. Alternatively, to destory the old table and create a new one, set bDestroy to true (note that a lot of changes to the configuration can be made through the API which is usually much faster)."
HELP ;D