Change text for search or 'counter'

Change text for search or 'counter'

naspinskinaspinski Posts: 13Questions: 0Answers: 0
edited March 2009 in General
I know it could be easily done with a post-load javascript replace, but is there a built in way to change the pre-rendered text?

What I mean is something like changing
'Search' to 'Filter'
-and changing
'Showing 1 to 7 of 7 entries' to '1 to 7 of 7 somethings'

Thanks!

Replies

  • allanallan Posts: 63,531Questions: 1Answers: 10,475 Site admin
    Hi naspinski,

    Absolutely there is. Have a look at the oLanguage initialisation parameters: http://datatables.net/usage#language

    You can specify custom text for anything that DataTables uses (which is how it provides it's internationalisation). You can also load the language information from an Ajax source if you want.

    Regards,
    Allan
  • BenWillsBenWills Posts: 3Questions: 1Answers: 0
    Note: this has moved here: http://datatables.net/usage/i18n
    Sections:
    - oLanguage.sSearch
    and
    - oLanguage.sInfo
This discussion has been closed.