xref: /webtrees/resources/views/edit/initialize-calendar-popup.phtml (revision ac71572d8462e396ed5a307f05b29381e49f9e6e)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6
7?>
8<?php use Fisharebest\Webtrees\View; ?>
9
10<?php View::push('javascript') ?>
11<script>
12  webtrees.calLocalize(
13        <?= json_encode(I18N::translateContext('NOMINATIVE', 'January'), JSON_THROW_ON_ERROR) ?>,
14        <?= json_encode(I18N::translateContext('NOMINATIVE', 'February'), JSON_THROW_ON_ERROR) ?>,
15        <?= json_encode(I18N::translateContext('NOMINATIVE', 'March'), JSON_THROW_ON_ERROR) ?>,
16        <?= json_encode(I18N::translateContext('NOMINATIVE', 'April'), JSON_THROW_ON_ERROR) ?>,
17        <?= json_encode(I18N::translateContext('NOMINATIVE', 'May'), JSON_THROW_ON_ERROR) ?>,
18        <?= json_encode(I18N::translateContext('NOMINATIVE', 'June'), JSON_THROW_ON_ERROR) ?>,
19        <?= json_encode(I18N::translateContext('NOMINATIVE', 'July'), JSON_THROW_ON_ERROR) ?>,
20        <?= json_encode(I18N::translateContext('NOMINATIVE', 'August'), JSON_THROW_ON_ERROR) ?>,
21        <?= json_encode(I18N::translateContext('NOMINATIVE', 'September'), JSON_THROW_ON_ERROR) ?>,
22        <?= json_encode(I18N::translateContext('NOMINATIVE', 'October'), JSON_THROW_ON_ERROR) ?>,
23        <?= json_encode(I18N::translateContext('NOMINATIVE', 'November'), JSON_THROW_ON_ERROR) ?>,
24        <?= json_encode(I18N::translateContext('NOMINATIVE', 'December'), JSON_THROW_ON_ERROR) ?>,
25        <?= json_encode(I18N::translate('Sun'), JSON_THROW_ON_ERROR) ?>,
26        <?= json_encode(I18N::translate('Mon'), JSON_THROW_ON_ERROR) ?>,
27        <?= json_encode(I18N::translate('Tue'), JSON_THROW_ON_ERROR) ?>,
28        <?= json_encode(I18N::translate('Wed'), JSON_THROW_ON_ERROR) ?>,
29        <?= json_encode(I18N::translate('Thu'), JSON_THROW_ON_ERROR) ?>,
30        <?= json_encode(I18N::translate('Fri'), JSON_THROW_ON_ERROR) ?>,
31        <?= json_encode(I18N::translate('Sat'), JSON_THROW_ON_ERROR) ?>,
32        <?= I18N::locale()->territory()->firstDay() ?>
33  );
34</script>
35<?php View::endpush() ?>
36