How do I translate the "type here..." string and "All" string in my datatables?
How do I translate the "type here..." string and "All" string in my datatables?
BethSchrag
Posts: 2Questions: 1Answers: 0
I have the nationalization working, but it doesn't translate the "type here..." string in the search field or the "All" at the end of the length menu. Does anyone know how I can do that?
Thanks!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
What "type here..." string? DataTables doesn't have a default placeholder, although you can set one using
language.searchPlaceholder
.Use the
lengthMenu
options to customise that -All
is not in the DataTables defaults, so that must be getting loaded from somewhere else.Allan
Thank you, allan,
searchPlaceholder was helpful for translating the "type here..." string in my search fields.
I am still looking for a way to translate the "All" in length menu.
For the
All
, simply put the language string you want into thelengthMenu
option.Allan