Specialize the datatables string for playout history, users, and recent uploads tables

This commit is contained in:
Albert Santoni 2015-08-14 20:20:30 -04:00
parent 31982a7238
commit 68523d9e02
3 changed files with 30 additions and 5 deletions

View File

@ -175,7 +175,14 @@ $(document).ready(function() {
"sDom": '<"H">frtip<"F"l>',
"bPaginate" : true,
"sPaginationType": "full_numbers",
"aoColumns": [
"oLanguage": getDatatablesStrings({
"sEmptyTable": $.i18n._("No files have been uploaded yet."),
"sInfoEmpty": $.i18n._("Showing 0 to 0 of 0 uploads"),
"sInfo": $.i18n._("Showing _START_ to _END_ of _TOTAL_ uploads"),
"sInfoEmpty": $.i18n._("Showing 0 to 0 of 0 uploads"),
"sInfoFiltered": $.i18n._("(filtered from _MAX_ total uploads)"),
}),
"aoColumns": [
{ "mData" : "artist_name", "sTitle" : $.i18n._("Creator") },
{ "mData" : "track_title", "sTitle" : $.i18n._("Title") },
{ "mData" : "import_status", "sTitle" : $.i18n._("Import Status"),

View File

@ -344,7 +344,13 @@ var AIRTIME = (function(AIRTIME) {
"sAjaxDataProp": "history",
"fnServerData": fnServerData,
"fnRowCallback": fnRowCallback,
"oLanguage": datatables_dict,
"oLanguage": getDatatablesStrings({
"sEmptyTable": $.i18n._("No tracks were played during the selected time period."),
"sInfoEmpty": $.i18n._("Showing 0 to 0 of 0 tracks"),
"sInfo": $.i18n._("Showing _START_ to _END_ of _TOTAL_ tracks"),
"sInfoEmpty": $.i18n._("Showing 0 to 0 of 0 tracks"),
"sInfoFiltered": $.i18n._("(filtered from _MAX_ total tracks)"),
}),
"aLengthMenu": lengthMenu,
"iDisplayLength": 25,
"sPaginationType": "full_numbers",
@ -411,7 +417,13 @@ var AIRTIME = (function(AIRTIME) {
"sAjaxDataProp": "history",
"fnServerData": fnServerData,
"fnRowCallback": fnRowCallback,
"oLanguage": datatables_dict,
"oLanguage": getDatatablesStrings({
"sEmptyTable": $.i18n._("No tracks were played during the selected time period."),
"sInfoEmpty": $.i18n._("Showing 0 to 0 of 0 tracks"),
"sInfo": $.i18n._("Showing _START_ to _END_ of _TOTAL_ tracks"),
"sInfoEmpty": $.i18n._("Showing 0 to 0 of 0 tracks"),
"sInfoFiltered": $.i18n._("(filtered from _MAX_ total tracks)"),
}),
"aLengthMenu": lengthMenu,
"iDisplayLength": 25,
"sPaginationType": "full_numbers",

View File

@ -104,8 +104,14 @@ function populateUserTable() {
"bJQueryUI": true,
"bAutoWidth": false,
"bLengthChange": false,
"oLanguage": datatables_dict,
"oLanguage": getDatatablesStrings({
"sEmptyTable": $.i18n._("No users were found."),
"sEmptyTable": $.i18n._("No users found"),
"sZeroRecords": $.i18n._("No matching users found"),
"sInfo": $.i18n._("Showing _START_ to _END_ of _TOTAL_ users"),
"sInfoEmpty": $.i18n._("Showing 0 to 0 of 0 users"),
"sInfoFiltered": $.i18n._("(filtered from _MAX_ total users)"),
}),
"sDom": '<"H"lf<"dt-process-rel"r>>t<"F"ip>',
});
}