sZeroRecords not used for localization (DataTables 1.7.0beta5)
sZeroRecords not used for localization (DataTables 1.7.0beta5)
dahepe
Posts: 7Questions: 0Answers: 0
Hi,
the property sZeroRecords of the oLanguage doesn't seem to be used for localization. I initialized the table as shown in this (http://datatables.net/examples/advanced_init/language_file.html) example, but when the table is empty, still the default message "No data available in table" appears.
Best regards,
Daniel
the property sZeroRecords of the oLanguage doesn't seem to be used for localization. I initialized the table as shown in this (http://datatables.net/examples/advanced_init/language_file.html) example, but when the table is empty, still the default message "No data available in table" appears.
Best regards,
Daniel
This discussion has been closed.
Replies
Are you using the 1.7 beta btw?
If you are - then the "work around" is to set "sEmptyTable" in your language file. Need to look closer and see if there is a way around requiring this...
Regards,
Allan
your "work around" worked :)
Yes, I'm using 1.7.0 beta5 right now...
Regards
Regards,
Allan
[code]
"oLanguage" : {
sInfoEmpty : "No data",
sZeroRecords : "Nothing found"
}
[/code]
Empty table AND empty result after filter both result in "No data"
Also changing sZeroRecords to sEmptyTable does not not change anything for me.
Any thoughts?
Those variables are:
sEmptyTable - http://datatables.net/usage/i18n#oLanguage.sEmptyTable
sZeroRecords - http://datatables.net/usage/i18n#oLanguage.sZeroRecords
You would need to define both of those if you want them to be different.
Allan
Thank you for your help :)