xref: /webtrees/resources/views/lists/datatables-attributes.phtml (revision 1792ff1cf1956b41f3e3c853cfb279a803a71ed2)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5?>
6
7data-auto-width="false"
8data-dom="<&quot;d-flex justify-content-between&quot;prf><t><&quot;d-flex justify-content-between&quot;il>"
9data-state-save="true"
10data-state-duration="3600"
11data-length-menu="<?= e(json_encode([[10, 20, 50, 100, 500, 1000, -1], [I18N::number(10), I18N::number(20), I18N::number(50), I18N::number(100), I18N::number(500), I18N::number(1000), I18N::translate('All')]])) ?>"
12data-language="<?= e(json_encode([
13    'paginate'       => [
14        /* I18N: A button label, first page */
15        'first'    => I18N::translate('first'),
16        /* I18N: A button label, last page */
17        'last'     => I18N::translate('last'),
18        /* I18N: A button label, next page */
19        'next'     => I18N::translate('next'),
20        /* I18N: A button label, previous page */
21        'previous' => I18N::translate('previous'),
22    ],
23    'emptyTable'     => I18N::translate('No records to display'),
24    /* I18N: %s are placeholders for numbers */
25    'info'           => I18N::translate('Showing %1$s to %2$s of %3$s', '_START_', '_END_', '_TOTAL_'),
26    'infoEmpty'      => I18N::translate('Showing %1$s to %2$s of %3$s', I18N::number(0), I18N::number(0), I18N::number(0)),
27    /* I18N: %s is a number */
28    'infoFiltered'   => I18N::translate('(filtered from %s total entries)', '_MAX_'),
29    /* I18N: %s is a number of records per page */
30    'lengthMenu'     => I18N::translate('Display %s', '_MENU_'),
31    'loadingRecords' => I18N::translate('Loading…'),
32    'processing'     => I18N::translate('Calculating…'),
33    'search'         => I18N::translate('Filter'),
34    'zeroRecords'    => I18N::translate('No records to display'),
35])) ?>"
36