Owen Leonard
6c48a1e2c2
This patch updates DataTables configuration so that more strings are translatable: https://datatables.net/extensions/buttons/examples/html5/copyi18n.html To test, apply the patch and clear your browser cache. - Open the account tab for a patron who has only one fine. - Confirm that the new DataTables buttons appear. - Click the 'Copy' button and confirm that a "Copied 1 row to clipboard" message appears. - Test again with a patron who has multiple fines, confirm that the message reads "Copied X rows to clipboard." To test the translation: - Confirm that "Copied 1 row to clipboard" is missing from the language file you're testing with (misc/translator/po/xx-YY-staff-prog.po). - Run 'translate update xx-YY' - Check that the clipboard strings are now in the po file. - Add translations for those strings. - Run 'translate update xx-YY' and 'translate install xx-YY' - Switch to the translated language and clear your browser cache. - Test the 'Copy' button again. Your translated text should appear. Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
33 lines
1.6 KiB
PHP
33 lines
1.6 KiB
PHP
[% USE Asset %]
|
|
[% INCLUDE 'format_price.inc' %]
|
|
[% Asset.css("css/buttons.dataTables.min.css") %]
|
|
[% Asset.js("lib/jquery/plugins/jquery.dataTables.min.js") %]
|
|
[% Asset.js("lib/jquery/plugins/dataTables.buttons.min.js") %]
|
|
[% Asset.js("lib/jquery/plugins/buttons.colVis.min.js") %]
|
|
[% Asset.js("lib/jquery/plugins/jszip.min.js") %]
|
|
[% Asset.js("lib/jquery/plugins/buttons.print.min.js") %]
|
|
[% Asset.js("lib/jquery/plugins/buttons.html5.min.js") %]
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
var MSG_DT_FIRST = _("First");
|
|
var MSG_DT_LAST = _("Last");
|
|
var MSG_DT_NEXT = _("Next");
|
|
var MSG_DT_PREVIOUS = _("Previous");
|
|
var MSG_DT_EMPTY_TABLE = _("No data available in table");
|
|
var MSG_DT_INFO = _("Showing _START_ to _END_ of _TOTAL_");
|
|
var MSG_DT_INFO_EMPTY = _("No entries to show");
|
|
var MSG_DT_INFO_FILTERED = _("(filtered from _MAX_ total entries)");
|
|
var MSG_DT_LENGTH_MENU = _("Show _MENU_ entries");
|
|
var MSG_DT_LOADING_RECORDS = _("Loading...");
|
|
var MSG_DT_PROCESSING = _("Processing...");
|
|
var MSG_DT_SEARCH = _("Search:");
|
|
var MSG_DT_ZERO_RECORDS = _("No matching records found");
|
|
var MSG_DT_ALL = _("All");
|
|
var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = _("a an the");
|
|
var MSG_DT_COPY_TITLE = _("Copy to clipboard");
|
|
var MSG_DT_COPY_KEYS = _("Press ctrl or ⌘ + C to copy the table data<br>to your system clipboard.<br><br>To cancel, click this message or press escape.");
|
|
var MSG_DT_COPY_SUCCESS_ONE = _("Copied one row to clipboard");
|
|
var MSG_DT_COPY_SUCCESS_X = _("Copied %d rows to clipboard");
|
|
//]]>
|
|
</script>
|
|
[% Asset.js("js/datatables.js") %]
|