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