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> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
29d1aa1be0
commit
abf72944dd
1 changed files with 15 additions and 2 deletions
|
@ -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/jquery.dataTables.min.js"></script>
|
||||||
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/dataTables.fnReloadAjax.js"></script>
|
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/dataTables.fnReloadAjax.js"></script>
|
||||||
[% INCLUDE 'datatables-strings.inc' %]
|
[% INCLUDE 'datatables-strings.inc' %]
|
||||||
</script>
|
|
||||||
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></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" src="[% themelang %]/js/jquery.jeditable.mini.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -29,7 +28,21 @@
|
||||||
{ "sWidth": "11%" },
|
{ "sWidth": "11%" },
|
||||||
],
|
],
|
||||||
"oLanguage" : {
|
"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) {
|
"fnPreDrawCallback": function(oSettings) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue