select extension and i18n. Hide "rows, columns and cells selected" when nothing is selected?

select extension and i18n. Hide "rows, columns and cells selected" when nothing is selected?

berndy2001berndy2001 Posts: 7Questions: 2Answers: 0
edited December 2022 in Free community support

Hello,

I use datatables with translation and the select extension. I have a question about this.

Without localisation, "x rows selected" is only displayed when rows are selected.
With localisation, "x row selected x columns selected x cells selected" is always displayed, regardless of whether a row is selected or not.

I find the first behaviour optimal, how can I adopt this for internationalisation?

http://live.datatables.net/vuquzuva/2/edit

Thank you

Replies

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

    Here is how it can be done: http://live.datatables.net/vuquzuva/3/edit .

    I'd say the translation is a little wrong there - it should really try to follow the behaviour of the original, and the 0 options are missing there.

    Allan

  • berndy2001berndy2001 Posts: 7Questions: 2Answers: 0

    Hello allan,

    Thank you very much for the quick help. I have looked at other languages and also in the language editor, there is generally no option for 0?

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

    That's a mistake - they should be in there. Thanks for flagging that up!

    Allan

Sign In or Register to comment.