If there is only one record, but the table info show "entries", is it ok?
If there is only one record, but the table info show "entries", is it ok?
bikai
Posts: 21Questions: 12Answers: 0
If there is only one record, table info might be like this:
Showing 1 to 1 of 1 **entries** (filtered from 57 total entries)
Is it more precise to use "entry" instead of "entries"?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You are correct - that would be more correct. There isn't currently a way to give DataTables information about plural values for those variables, although it is something I am aware of and need to improve. I just need to find a good way to do it that will work for all languages and not be seriously confusing to use!
Allan
Thanks, allan.
There might be a better solution:
But you can achieve this by updating the dataTables.js like below
and
"sInfo": "Showing _START_ to _END_ of _TOTAL_ _ENTRY_",
Yup - its a good suggestion that, and probably the route that I'm going to take. I'm slightly concerned about languages where the order of the sentence isn't the same as in English, but I don't really have enough domain knowledge about that. As far as I can see, this is the best solution available.
Allan