Bugzilla – Attachment 5291 Details for
Bug 6836
jQuery plugin Datatables integration http://wiki.koha-community.org/wiki/DataTables_HowTo
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Forgotten patch for translation
0001-DataTables-Add-language-defaults-in-datatables.js.patch (text/plain), 3.41 KB, created by
Julian Maurice
on 2011-09-02 12:58:05 UTC
(
hide
)
Description:
Forgotten patch for translation
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2011-09-02 12:58:05 UTC
Size:
3.41 KB
patch
obsolete
>From bff18f0f76f72b78a11969cb26bb3e06e1fc1523 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Fri, 2 Sep 2011 14:43:41 +0200 >Subject: [PATCH] DataTables: Add language defaults in datatables.js > >(for translation) >--- > koha-tmpl/intranet-tmpl/prog/en/js/datatables.js | 27 ++++++++++++++++++++++ > koha-tmpl/opac-tmpl/prog/en/js/datatables.js | 27 ++++++++++++++++++++++ > 2 files changed, 54 insertions(+), 0 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/en/js/datatables.js >index 75d698d..ec05b6a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/js/datatables.js >+++ b/koha-tmpl/intranet-tmpl/prog/en/js/datatables.js >@@ -1,3 +1,30 @@ >+// These default options are for translation but can be used >+// for any other datatables settings >+// To use it, write: >+// $("#table_id").dataTable($.extend(true, {}, dataTableDefaults, { >+// // other settings >+// } ) ); >+var dataTablesDefaults = { >+ "oLanguage": { >+ "oPaginate": { >+ "sFirst" : _("First"), >+ "sLast" : _("Last"), >+ "sNext" : _("Next"), >+ "sPrevious" : _("Previous") >+ }, >+ "sEmptyTable" : _("No data available in table"), >+ "sInfo" : _("Showing _START_ to _END_ of _TOTAL_ entries"), >+ "sInfoEmpty" : _("No entries to show"), >+ "sInfoFiltered" : _("(filtered from _MAX_ total entries"), >+ "sLengthMenu" : _("Show _MENU_ entries"), >+ "sLoadingRecords" : _("Loading..."), >+ "sProcessing" : _("Processing..."), >+ "sSearch" : _("Search:"), >+ "sZeroRecords" : _("No matching records found") >+ } >+}; >+ >+ > // Return an array of string containing the values of a particular column > $.fn.dataTableExt.oApi.fnGetColumnData = function ( oSettings, iColumn, bUnique, bFiltered, bIgnoreEmpty ) { > // check that we have a column id >diff --git a/koha-tmpl/opac-tmpl/prog/en/js/datatables.js b/koha-tmpl/opac-tmpl/prog/en/js/datatables.js >index 75d698d..cfd5d05 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/js/datatables.js >+++ b/koha-tmpl/opac-tmpl/prog/en/js/datatables.js >@@ -1,3 +1,30 @@ >+// These default options are for translation but can be used >+// for any other datatables settings >+// To use it, write: >+// $("#table_id").dataTable($.extend(true, {}, dataTableDefaults, { >+// // other settings >+// } ) ); >+var dataTableDefaults = { >+ "oLanguage": { >+ "oPaginate": { >+ "sFirst" : _("First"), >+ "sLast" : _("Last"), >+ "sNext" : _("Next"), >+ "sPrevious" : _("Previous") >+ }, >+ "sEmptyTable" : _("No data available in table"), >+ "sInfo" : _("Showing _START_ to _END_ of _TOTAL_ entries"), >+ "sInfoEmpty" : _("No entries to show"), >+ "sInfoFiltered" : _("(filtered from _MAX_ total entries"), >+ "sLengthMenu" : _("Show _MENU_ entries"), >+ "sLoadingRecords" : _("Loading..."), >+ "sProcessing" : _("Processing..."), >+ "sSearch" : _("Search:"), >+ "sZeroRecords" : _("No matching records found") >+ } >+}; >+ >+ > // Return an array of string containing the values of a particular column > $.fn.dataTableExt.oApi.fnGetColumnData = function ( oSettings, iColumn, bUnique, bFiltered, bIgnoreEmpty ) { > // check that we have a column id >-- >1.7.5.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6836
:
5284
|
5291
|
5294
|
6340
|
6387
|
6467
|
6468
|
6522
|
6523
|
6524
|
7112
|
7120
|
7121
|
7122
|
7123
|
7124
|
7243
|
7244
|
7298
|
7299
|
7300
|
7301
|
7302