|
10 | 10 | # Website: https://github.com/vacanza/holidays |
11 | 11 | # License: MIT (see LICENSE file) |
12 | 12 |
|
13 | | -from holidays.groups import ChristianHolidays |
| 13 | +from gettext import gettext as tr |
| 14 | + |
| 15 | +from holidays.groups import ChristianHolidays, InternationalHolidays |
14 | 16 | from holidays.holiday_base import HolidayBase |
15 | 17 |
|
16 | 18 |
|
17 | | -class VaticanCity(HolidayBase, ChristianHolidays): |
| 19 | +class VaticanCity(HolidayBase, ChristianHolidays, InternationalHolidays): |
18 | 20 | """ |
19 | 21 | References: |
| 22 | + - https://www.vatican.va/roman_curia/labour_office/docs/documents/ulsa_b18_7_it.html |
| 23 | + - https://cdn.restorethe54.com/media/pdf/1917-code-of-canon-law-english.pdf |
| 24 | + - https://www.vatican.va/archive/cod-iuris-canonici/eng/documents/cic_lib4-cann1244-1253_en.html |
20 | 25 | - https://en.wikipedia.org/wiki/Public_holidays_in_Vatican_City |
| 26 | + - https://en.wikipedia.org/wiki/Holy_day_of_obligation |
21 | 27 | - https://www.ewtn.com/catholicism/library/solemnity-of-mary-mother-of-god-5826 |
22 | 28 | - https://www.franciscanmedia.org/saint-of-the-day/saint-joseph-the-worker/ |
| 29 | +
|
| 30 | + Cross-checked With: |
| 31 | + - https://www.vaticanstate.va/images/pdf/CALENDARIO_2020.pdf |
| 32 | + - https://www.farmaciavaticana.va/images/pdf/calendario_2021.pdf |
| 33 | + - https://www.farmaciavaticana.va/images/pdf/calendario_2022.pdf |
| 34 | + - https://www.farmaciavaticana.va/images/pdf/calendario_2023.pdf |
| 35 | + - https://www.farmaciavaticana.va/media/attachments/2024/01/02/calendario_2024.pdf |
| 36 | + - https://www.farmaciavaticana.va/media/attachments/2025/01/02/calendario-2025.pdf |
23 | 37 | """ |
24 | 38 |
|
25 | 39 | country = "VA" |
| 40 | + default_language = "it" |
| 41 | + supported_languages = ("en_US", "it", "th") |
| 42 | + # Lateran Treaty, FEB 11, 2029. |
26 | 43 | start_year = 1929 |
27 | 44 |
|
28 | 45 | def __init__(self, *args, **kwargs) -> None: |
29 | 46 | ChristianHolidays.__init__(self) |
| 47 | + InternationalHolidays.__init__(self) |
30 | 48 | super().__init__(*args, **kwargs) |
31 | 49 |
|
32 | 50 | def _populate_public_holidays(self) -> None: |
33 | | - # Solemnity of Mary Day. |
34 | 51 | # This is supposedly the same as International New Year. |
35 | 52 | # Modern adoption across the entire Latin Church in 1931 though this |
36 | 53 | # was already celebrated in Rome as the Octave day of Christmas. |
37 | | - self._add_holiday_jan_1("Solemnity of Mary Day") |
| 54 | + |
| 55 | + # Solemnity of Mary, Mother of God. |
| 56 | + self._add_holiday_jan_1(tr("Solennità di Maria Santissima Madre di Dio")) |
38 | 57 |
|
39 | 58 | # Epiphany. |
40 | | - self._add_epiphany_day("Epiphany") |
41 | | - |
42 | | - # Lateran Treaty Day. |
43 | | - self._add_holiday_feb_11("Lateran Treaty Day") |
44 | | - |
45 | | - if self._year >= 1978: |
46 | | - name = "Anniversary of the Election of the Holy Father" |
47 | | - if self._year >= 2013: |
48 | | - # Anniversary of the election of Pope Francis. |
49 | | - self._add_holiday_mar_13(name) |
50 | | - elif self._year >= 2005: |
51 | | - # Anniversary of the election of Pope Benedict XVI. |
52 | | - self._add_holiday_apr_19(name) |
53 | | - else: |
54 | | - # Anniversary of the election of Pope John Paul II. |
55 | | - self._add_holiday_oct_16(name) |
56 | | - |
57 | | - # In 2005-2013 - also name day for the civilian name of |
58 | | - # Pope Benedict XVI (Josef Ratzinger) |
| 59 | + self._add_epiphany_day(tr("Epifania del Signore")) |
| 60 | + |
| 61 | + self._add_holiday_feb_11( |
| 62 | + # Anniversary of the Foundation of Vatican City. |
| 63 | + tr("Anniversario della istituzione dello Stato della Città del Vaticano") |
| 64 | + ) |
| 65 | + |
| 66 | + # Anniversary of the Election of the Holy Father. |
| 67 | + name_election = tr("Anniversario dell'Elezione del Santo Padre") |
| 68 | + |
| 69 | + # Name Day of the Holy Father. |
| 70 | + name_day = tr("Onomastico del Santo Padre") |
| 71 | + |
| 72 | + if self._year >= 2013: |
| 73 | + # Pope Francis (Jorge Mario Bergoglio). |
| 74 | + # Name Day: Saint George's Day (APR 23). |
| 75 | + self._add_holiday_mar_13(name_election) |
| 76 | + self._add_saint_georges_day(name_day) |
| 77 | + elif self._year >= 2005: |
| 78 | + # Pope Benedict XVI (Josef Aloisius Ratzinger). |
| 79 | + # Name Day: Saint Joseph's Day (MAR 19). |
| 80 | + self._add_holiday_apr_19(name_election) |
| 81 | + self._add_saint_josephs_day(name_day) |
| 82 | + elif self._year >= 1978: |
| 83 | + # Pope John Paul II (Karol Józef Wojtyła). |
| 84 | + # Name Day: Saint Charles Borromeo Day (NOV 4). |
| 85 | + self._add_holiday_oct_16(name_election) |
| 86 | + self._add_holiday_nov_4(name_day) |
| 87 | + |
| 88 | + if self._year == 1978: |
| 89 | + # Pope John Paul I (Albino Luciani). |
| 90 | + # Name Day: Saint Albinus of Angers (MAR 1)? |
| 91 | + self._add_holiday_aug_26(name_election) |
| 92 | + |
| 93 | + # Pope Paul VI (cont.). |
| 94 | + self._add_holiday_jun_21(name_election) |
| 95 | + elif self._year >= 1963: |
| 96 | + # Pope Paul VI (Giovanni Battista Enrico Antonio Maria Montini). |
| 97 | + # Name Day: Saint John's Day (JUN 24)? |
| 98 | + self._add_holiday_jun_21(name_election) |
| 99 | + elif self._year >= 1958: |
| 100 | + # Pope John XXIII (Angelo Giuseppe Roncalli). |
| 101 | + # Name Day: Saint Angelus of Jerusalem (MAY 5)? |
| 102 | + self._add_holiday_oct_28(name_election) |
| 103 | + |
| 104 | + if self._year == 1958: |
| 105 | + # Pope Pius XII (cont.). |
| 106 | + self._add_holiday_mar_2(name_election) |
| 107 | + elif self._year >= 1939: |
| 108 | + # Pope Pius XII (Eugenio Maria Giuseppe Giovanni Pacelli). |
| 109 | + # Name Day: Saint Eugene (JUN 2)? |
| 110 | + self._add_holiday_mar_2(name_election) |
| 111 | + |
| 112 | + if self._year == 1939: |
| 113 | + # Pope Pius XI (cont.). |
| 114 | + self._add_holiday_feb_6(name_election) |
| 115 | + else: |
| 116 | + # Pope Pius XI (Achille Ambrogio Damiano Ratti). |
| 117 | + # Name Day: Saint Nereus and Achilleus (MAY 12)? |
| 118 | + self._add_holiday_feb_6(name_election) |
| 119 | + |
59 | 120 | # Saint Joseph's Day. |
60 | | - self._add_saint_josephs_day("Saint Joseph's Day") |
| 121 | + self._add_saint_josephs_day(tr("San Giuseppe")) |
| 122 | + |
| 123 | + # Maundy Thursday. |
| 124 | + self._add_holy_thursday(tr("Giovedì Santo")) |
| 125 | + |
| 126 | + # Good Friday. |
| 127 | + self._add_good_friday(tr("Venerdì Santo")) |
| 128 | + |
| 129 | + # Holy Saturday. |
| 130 | + self._add_holy_saturday(tr("Sabato Santo")) |
61 | 131 |
|
62 | 132 | # Easter Sunday. |
63 | | - self._add_easter_sunday("Easter Sunday") |
| 133 | + self._add_easter_sunday(tr("Pasqua di Resurrezione")) |
64 | 134 |
|
65 | 135 | # Easter Monday. |
66 | | - self._add_easter_monday("Easter Monday") |
| 136 | + self._add_easter_monday(tr("Lunedì dell'Angelo")) |
67 | 137 |
|
68 | | - if self._year >= 2013: |
69 | | - # Name day for the civilian name of Pope Francis |
70 | | - # (Jorge Mario Bergoglio) |
71 | | - # Saint George's Day. |
72 | | - self._add_saint_georges_day("Saint George's Day") |
| 138 | + # Easter Tuesday. |
| 139 | + self._add_easter_tuesday(tr("Martedì in Albis")) |
73 | 140 |
|
| 141 | + # Created in response to May Day holidays by Pope Pius XII in 1955. |
74 | 142 | if self._year >= 1955: |
75 | | - # Saint Joseph the Worker's Day. |
76 | | - # Created in response to May Day holidays by Pope Pius XII in 1955. |
77 | | - self._add_holiday_may_1("Saint Joseph the Worker's Day") |
| 143 | + # Saint Joseph the Worker. |
| 144 | + self._add_holiday_may_1(tr("San Giuseppe Artigiano")) |
| 145 | + |
| 146 | + # Solemnity of Pentecost. |
| 147 | + self._add_whit_sunday(tr("Solennità della Pentecoste")) |
| 148 | + |
| 149 | + # Solemnity of Holy Trinity. |
| 150 | + self._add_trinity_sunday(tr("Solennità della Santissima Trinità")) |
78 | 151 |
|
79 | | - if self._year <= 2009: |
80 | | - # Ascension of Christ. |
81 | | - self._add_ascension_thursday("Ascension of Christ") |
| 152 | + # Ascension Day. |
| 153 | + self._add_ascension_thursday(tr("Ascensione del Signore")) |
82 | 154 |
|
83 | | - # Corpus Christi. |
84 | | - self._add_corpus_christi_day("Corpus Christi") |
| 155 | + # Corpus Domini. |
| 156 | + self._add_corpus_christi_day(tr("Corpus Domini")) |
85 | 157 |
|
86 | | - # Saints Peter and Paul. |
87 | | - self._add_saints_peter_and_paul_day("Saint Peter and Saint Paul's Day") |
| 158 | + # Saints Peter and Paul's Day. |
| 159 | + self._add_saints_peter_and_paul_day(tr("Santi Pietro e Paolo")) |
| 160 | + |
| 161 | + # Day Before Assumption of Mary. |
| 162 | + self._add_holiday_aug_14(tr("Vigilia dell'Assunzione di Maria Santissima")) |
88 | 163 |
|
89 | 164 | # Assumption of Mary Day. |
90 | | - self._add_assumption_of_mary_day("Assumption Day") |
| 165 | + self._add_assumption_of_mary_day(tr("Assunzione di Maria Santissima")) |
91 | 166 |
|
92 | | - # Nativity Of Mary Day. |
93 | | - self._add_nativity_of_mary_day("Nativity of Mary Day") |
| 167 | + # Day After Assumption of Mary. |
| 168 | + self._add_holiday_aug_16(tr("Giorno Successivo all'Assunzione di Maria Santissima")) |
94 | 169 |
|
95 | 170 | # All Saints' Day. |
96 | | - self._add_all_saints_day("All Saints' Day") |
| 171 | + self._add_all_saints_day(tr("Tutti i Santi")) |
97 | 172 |
|
98 | | - if 1978 <= self._year <= 2004: |
99 | | - # Name day for the civilian name of Pope John Paul II |
100 | | - # (Karol Józef Wojtyła) |
101 | | - # Saint Charles Borromeo Day. |
102 | | - self._add_holiday_nov_4("Saint Charles Borromeo Day") |
| 173 | + # All Souls' Day. |
| 174 | + self._add_all_souls_day(tr("Tutti i Fedeli Defunti")) |
103 | 175 |
|
104 | 176 | # Immaculate Conception. |
105 | | - self._add_immaculate_conception_day("Immaculate Conception Day") |
| 177 | + self._add_immaculate_conception_day(tr("Immacolata Concezione")) |
| 178 | + |
| 179 | + # Christmas Eve. |
| 180 | + self._add_christmas_eve(tr("Vigilia di Natale")) |
106 | 181 |
|
107 | 182 | # Christmas Day. |
108 | | - self._add_christmas_day("Christmas Day") |
| 183 | + self._add_christmas_day(tr("Natale")) |
109 | 184 |
|
110 | 185 | # Saint Stephen's Day. |
111 | | - self._add_christmas_day_two("Saint Stephen's Day") |
| 186 | + self._add_christmas_day_two(tr("Santo Stefano")) |
| 187 | + |
| 188 | + # Saint John the Evangelist's Day. |
| 189 | + self._add_christmas_day_three(tr("San Giovanni")) |
| 190 | + |
| 191 | + # Last Day of the Year. |
| 192 | + self._add_new_years_eve(tr("Ultimo giorno dell'anno")) |
112 | 193 |
|
113 | 194 |
|
114 | 195 | class VA(VaticanCity): |
|
0 commit comments