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