From 33121f527a6243c4c26bcdee94c36e487d58a9c5 Mon Sep 17 00:00:00 2001 From: Marc Veron <veron@veron.ch> Date: Wed, 7 Nov 2012 13:56:42 +0100 Subject: [PATCH] Bug 9017 - Quote of the day: Table footer not translated The strings for the table footer of the QOD feature are translated in /datatables-strings.inc, but they did not show up in staff client due to missing code in quotes.tt -> $(document).ready(function(), part "oLanguage" Code added as appropriate. See: http://datatables.net/usage/i18n Additionally, quotes.tt had a stray </script> tag after [% INCLUDE 'datatables-strings.inc' %] Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> --- .../intranet-tmpl/prog/en/modules/tools/quotes.tt | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt index 7a083b8..ea5769c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt @@ -6,7 +6,6 @@ <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script> <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/dataTables.fnReloadAjax.js"></script> [% INCLUDE 'datatables-strings.inc' %] - </script> <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> <script type="text/javascript" src="[% themelang %]/js/jquery.jeditable.mini.js"></script> <script type="text/javascript"> @@ -29,7 +28,21 @@ { "sWidth": "11%" }, ], "oLanguage" : { - "sEmptyTable": sEmptyTable, + "oPaginate": { + "sFirst": MSG_DT_FIRST, + "sLast": MSG_DT_LAST, + "sNext": MSG_DT_NEXT, + "sPrevious": MSG_DT_PREVIOUS, + }, + "sEmptyTable": MSG_DT_EMPTY_TABLE, + "sInfo": MSG_DT_INFO, + "sInfoEmpty": MSG_DT_INFO_EMPTY, + "sInfoFiltered": MSG_DT_INFO_FILTERED, + "sLengthMenu": MSG_DT_LENGTH_MENU, + "sLoadingRecords": MSG_DT_LOADING_RECORDS, + "sProcessing": MSG_DT_PROCESSING, + "sSearch": MSG_DT_SEARCH, + "sZeroRecords": MSG_DT_ZERO_RECORDS, }, "fnPreDrawCallback": function(oSettings) { return true; -- 1.7.10.4