xref: /webtrees/resources/views/edit/initialize-calendar-popup.phtml (revision ddb212c271282b3397d1e5ede6cc4df078bce9b4)
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')) ?>,
12        <?= json_encode(I18N::translateContext('NOMINATIVE', 'February')) ?>,
13        <?= json_encode(I18N::translateContext('NOMINATIVE', 'March')) ?>,
14        <?= json_encode(I18N::translateContext('NOMINATIVE', 'April')) ?>,
15        <?= json_encode(I18N::translateContext('NOMINATIVE', 'May')) ?>,
16        <?= json_encode(I18N::translateContext('NOMINATIVE', 'June')) ?>,
17        <?= json_encode(I18N::translateContext('NOMINATIVE', 'July')) ?>,
18        <?= json_encode(I18N::translateContext('NOMINATIVE', 'August')) ?>,
19        <?= json_encode(I18N::translateContext('NOMINATIVE', 'September')) ?>,
20        <?= json_encode(I18N::translateContext('NOMINATIVE', 'October')) ?>,
21        <?= json_encode(I18N::translateContext('NOMINATIVE', 'November')) ?>,
22        <?= json_encode(I18N::translateContext('NOMINATIVE', 'December')) ?>,
23        <?= json_encode(I18N::translate('Sun')) ?>,
24        <?= json_encode(I18N::translate('Mon')) ?>,
25        <?= json_encode(I18N::translate('Tue')) ?>,
26        <?= json_encode(I18N::translate('Wed')) ?>,
27        <?= json_encode(I18N::translate('Thu')) ?>,
28        <?= json_encode(I18N::translate('Fri')) ?>,
29        <?= json_encode(I18N::translate('Sat')) ?>,
30        <?= I18N::locale()->territory()->firstDay() ?>
31  );
32</script>
33<?php View::endpush() ?>
34