Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ any) in brackets, available languages and additional holiday categories. All cou
<td>Burundi</td>
<td>BI</td>
<td></td>
<td></td>
<td>en_US, <strong>fr_BI</strong></td>
<td></td>
</tr>
<tr>
Expand Down
135 changes: 95 additions & 40 deletions holidays/countries/burundi.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
# Website: https://github.com/vacanza/holidays
# License: MIT (see LICENSE file)

from gettext import gettext as tr

from holidays.calendars import _CustomIslamicHolidays
from holidays.calendars.gregorian import JUN, JUL, SEP, OCT
from holidays.groups import ChristianHolidays, IslamicHolidays, InternationalHolidays
from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON

Expand All @@ -18,16 +22,25 @@ class Burundi(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Isl
"""Burundi holidays.

References:
* <https://web.archive.org/web/20240915030631/https://www.officeholidays.com/countries/burundi>
* [Décret n° 100/150 du 7 Juin 2021](https://web.archive.org/web/20240514031141/https://www.presidence.gov.bi/wp-content/uploads/2021/06/Liste-et-regime-des-jours-feries.pdf)
* [Republic of Burundi's Ministry of Foreign Affairs Public Holidays List](https://web.archive.org/web/20250820080112/https://www.mae.gov.bi/en/official-holidays/)
* <https://web.archive.org/web/20250820095115/https://www.timeanddate.com/holidays/burundi/2025>

Note that holidays falling on a sunday maybe observed on the following Monday.
This depends on formal announcements by the government, which only happens close
to the date of the holiday.
When it appears inappropriate for a public holiday listed in Article 1 to be observed because
it coincides with a Sunday, it shall be postponed to the following working day, which shall
accordingly be considered a public holiday and observed as such.
"""

country = "BI"
observed_label = "%s (observed)"
# %s (estimated).
estimated_label = tr("%s (estimé)")
default_language = "fr_BI"
# %s (observed, estimated).
observed_estimated_label = tr("%s (observé, estimé)")
# %s (observed).
observed_label = tr("%s (observé)")
start_year = 1962
supported_languages = ("en_US", "fr_BI")

def __init__(self, *args, islamic_show_estimated: bool = True, **kwargs):
"""
Expand All @@ -38,58 +51,82 @@ def __init__(self, *args, islamic_show_estimated: bool = True, **kwargs):
"""
ChristianHolidays.__init__(self)
InternationalHolidays.__init__(self)
IslamicHolidays.__init__(self, show_estimated=islamic_show_estimated)
IslamicHolidays.__init__(
self, cls=BurundiIslamicHolidays, show_estimated=islamic_show_estimated
)
kwargs.setdefault("observed_rule", SUN_TO_NEXT_MON)
super().__init__(*args, **kwargs)

def _populate_public_holidays(self):
# New Year's Day
self._add_observed(self._add_new_years_day("New Year's Day"))
dts_observed = set()

# New Year's Day.
dts_observed.add(self._add_new_years_day(tr("Jour de l'an")))

# Unity Day
if self._year >= 1992:
self._add_observed(self._add_holiday_feb_5("Unity Day"))
# Unity Day.
dts_observed.add(self._add_holiday_feb_5(tr("Fête de l'Unité")))

# President Ntaryamira Day
if self._year >= 1995:
self._add_observed(self._add_holiday_apr_6("President Ntaryamira Day"))
dts_observed.add(
self._add_holiday_apr_6(
# Commemoration of the Assassination of President Cyprien Ntaryamira.
tr("Commémoration de l'Assassinat du Président Cyprien Ntaryamira")
)
)

# Labour Day
self._add_observed(self._add_labor_day("Labour Day"))
# International Labor Day.
dts_observed.add(self._add_labor_day(tr("Fête Internationale du Travail")))

# Ascension Day
self._add_ascension_thursday("Ascension Day")
# Ascension Day.
self._add_ascension_thursday(tr("Jour de l'Ascension"))

# President Nkurunziza Day
if self._year >= 2022:
self._add_observed(self._add_holiday_jun_8("President Nkurunziza Day"))

# Independence Day
self._add_observed(self._add_holiday_jul_1("Independence Day"))

# Assumption Day
self._add_observed(self._add_assumption_of_mary_day("Assumption Day"))

# Prince Louis Rwagasore Day
self._add_observed(self._add_holiday_oct_13("Prince Louis Rwagasore Day"))

# President Ndadaye's Day
dts_observed.add(
self._add_holiday_jun_8(
# National Day of Patriotism and Commemoration of the Death of
# President Pierre Nkurunziza.
tr(
"Journée Nationale du Patriotisme et Commémoration de la Mort "
"du Président Pierre Nkurunziza"
)
)
)

# Independence Day.
dts_observed.add(self._add_holiday_jul_1(tr("Anniversaire de l'Indépendance")))

# Assumption Day.
dts_observed.add(self._add_assumption_of_mary_day(tr("Assomption")))

dts_observed.add(
self._add_holiday_oct_13(
# Commemoration of the Assassination of National Hero, Prince Louis Rwagasore.
tr("Commémoration de l'Assassinat du Héros National, le Prince Louis Rwagasore")
)
)
if self._year >= 1994:
self._add_observed(self._add_holiday_oct_21("President Ndadaye's Day"))
dts_observed.add(
self._add_holiday_oct_21(
# Commemoration of the Assassination of President Melchior Ndadaye.
tr("Commémoration de l'Assassinat du Président Melchior Ndadaye")
)
)

# All Saints' Day.
dts_observed.add(self._add_all_saints_day(tr("Toussaint")))

# All Saints' Day
self._add_observed(self._add_all_saints_day("All Saints' Day"))
# Christmas Day.
dts_observed.add(self._add_christmas_day(tr("Noël")))

# Christmas Day
self._add_observed(self._add_christmas_day("Christmas Day"))
# Eid al-Fitr.
dts_observed.update(self._add_eid_al_fitr_day(tr("Aid-El-Fithr")))

# Eid ul Fitr
for dt in self._add_eid_al_fitr_day("Eid ul Fitr"):
self._add_observed(dt)
# Eid al-Adha.
dts_observed.update(self._add_eid_al_adha_day(tr("Aid-El-Adha")))

# Eid al Adha
for dt in self._add_eid_al_adha_day("Eid al Adha"):
self._add_observed(dt)
if self.observed:
self._populate_observed(dts_observed)


class BI(Burundi):
Expand All @@ -98,3 +135,21 @@ class BI(Burundi):

class BDI(Burundi):
pass


class BurundiIslamicHolidays(_CustomIslamicHolidays):
EID_AL_ADHA_DATES_CONFIRMED_YEARS = (2014, 2025)
EID_AL_ADHA_DATES = {
2014: (OCT, 5),
2015: (SEP, 24),
2016: (SEP, 13),
2017: (SEP, 2),
}

EID_AL_FITR_DATES_CONFIRMED_YEARS = (2014, 2025)
EID_AL_FITR_DATES = {
2014: (JUL, 29),
2015: (JUL, 18),
2016: (JUL, 7),
2017: (JUN, 26),
}
99 changes: 99 additions & 0 deletions holidays/locale/en_US/LC_MESSAGES/BI.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
# Website: https://github.com/vacanza/holidays
# License: MIT (see LICENSE file)
#
# Burundi holidays en_US localization.
#
msgid ""
msgstr ""
"Project-Id-Version: Holidays 0.80\n"
"POT-Creation-Date: 2025-08-20 16:45+0700\n"
"PO-Revision-Date: 2025-08-21 12:13+0700\n"
"Last-Translator: PPsyrius <ppsyrius@ppsyrius.dev>\n"
"Language-Team: Holidays Localization Team\n"
"Language: en_US\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Lingva 5.0.6\n"
"X-Generator: Poedit 3.7\n"
"X-Source-Language: fr_BI\n"

#. %s (estimated).
#, c-format
msgid "%s (estimé)"
msgstr "%s (estimated)"

#. %s (observed, estimated).
#, c-format
msgid "%s (observé, estimé)"
msgstr "%s (observed, estimated)"

#. %s (observed).
#, c-format
msgid "%s (observé)"
msgstr "%s (observed)"

#. New Year's Day.
msgid "Jour de l'an"
msgstr "New Year's Day"

#. Unity Day.
msgid "Fête de l'Unité"
msgstr "Unity Day"

#. Commemoration of the Assassination of President Cyprien Ntaryamira.
msgid "Commémoration de l'Assassinat du Président Cyprien Ntaryamira"
msgstr "Commemoration of the Assassination of President Cyprien Ntaryamira"

#. International Labor Day.
msgid "Fête Internationale du Travail"
msgstr "International Labor Day"

#. Ascension Day.
msgid "Jour de l'Ascension"
msgstr "Ascension Day"

#. National Day of Patriotism and Commemoration of the Death of President Pierre Nkurunziza.
msgid "Journée Nationale du Patriotisme et Commémoration de la Mort du Président Pierre Nkurunziza"
msgstr "National Day of Patriotism and Commemoration of the Death of President Pierre Nkurunziza"

#. Independence Day.
msgid "Anniversaire de l'Indépendance"
msgstr "Independence Day"

#. Assumption Day.
msgid "Assomption"
msgstr "Assumption Day"

#. Commemoration of the Assassination of National Hero, Prince Louis Rwagasore.
msgid "Commémoration de l'Assassinat du Héros National, le Prince Louis Rwagasore"
msgstr "Commemoration of the Assassination of National Hero, Prince Louis Rwagasore"

#. Commemoration of the Assassination of President Melchior Ndadaye.
msgid "Commémoration de l'Assassinat du Président Melchior Ndadaye"
msgstr "Commemoration of the Assassination of President Melchior Ndadaye"

#. All Saints' Day.
msgid "Toussaint"
msgstr "All Saints' Day"

#. Christmas Day.
msgid "Noël"
msgstr "Christmas Day"

#. Eid al-Fitr.
msgid "Aid-El-Fithr"
msgstr "Eid al-Fitr"

#. Eid al-Adha.
msgid "Aid-El-Adha"
msgstr "Eid al-Adha"
99 changes: 99 additions & 0 deletions holidays/locale/fr_BI/LC_MESSAGES/BI.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
# Website: https://github.com/vacanza/holidays
# License: MIT (see LICENSE file)
#
# Burundi holidays.
#
msgid ""
msgstr ""
"Project-Id-Version: Holidays 0.80\n"
"POT-Creation-Date: 2025-08-20 16:45+0700\n"
"PO-Revision-Date: 2025-08-21 12:13+0700\n"
"Last-Translator: PPsyrius <ppsyrius@ppsyrius.dev>\n"
"Language-Team: Holidays Localization Team\n"
"Language: fr_BI\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Lingva 5.0.6\n"
"X-Generator: Poedit 3.7\n"
"X-Source-Language: fr_BI\n"

#. %s (estimated).
#, c-format
msgid "%s (estimé)"
msgstr ""

#. %s (observed, estimated).
#, c-format
msgid "%s (observé, estimé)"
msgstr ""

#. %s (observed).
#, c-format
msgid "%s (observé)"
msgstr ""

#. New Year's Day.
msgid "Jour de l'an"
msgstr ""

#. Unity Day.
msgid "Fête de l'Unité"
msgstr ""

#. Commemoration of the Assassination of President Cyprien Ntaryamira.
msgid "Commémoration de l'Assassinat du Président Cyprien Ntaryamira"
msgstr ""

#. International Labor Day.
msgid "Fête Internationale du Travail"
msgstr ""

#. Ascension Day.
msgid "Jour de l'Ascension"
msgstr ""

#. National Day of Patriotism and Commemoration of the Death of President Pierre Nkurunziza.
msgid "Journée Nationale du Patriotisme et Commémoration de la Mort du Président Pierre Nkurunziza"
msgstr ""

#. Independence Day.
msgid "Anniversaire de l'Indépendance"
msgstr ""

#. Assumption Day.
msgid "Assomption"
msgstr ""

#. Commemoration of the Assassination of National Hero, Prince Louis Rwagasore.
msgid "Commémoration de l'Assassinat du Héros National, le Prince Louis Rwagasore"
msgstr ""

#. Commemoration of the Assassination of President Melchior Ndadaye.
msgid "Commémoration de l'Assassinat du Président Melchior Ndadaye"
msgstr ""

#. All Saints' Day.
msgid "Toussaint"
msgstr ""

#. Christmas Day.
msgid "Noël"
msgstr ""

#. Eid al-Fitr.
msgid "Aid-El-Fithr"
msgstr ""

#. Eid al-Adha.
msgid "Aid-El-Adha"
msgstr ""
Loading
Loading