-
Notifications
You must be signed in to change notification settings - Fork 469
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
919 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# 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 AUTHORS file) | ||
# dr-prodigy <[email protected]> (c) 2017-2023 | ||
# ryanss <[email protected]> (c) 2014-2017 | ||
# Website: https://github.com/vacanza/python-holidays | ||
# License: MIT (see LICENSE file) | ||
|
||
from gettext import gettext as tr | ||
|
||
from holidays.groups import ChristianHolidays, InternationalHolidays | ||
from holidays.holiday_base import HolidayBase | ||
|
||
|
||
class Congo(HolidayBase, ChristianHolidays, InternationalHolidays): | ||
""" | ||
References: | ||
- Loi N° 2-94: | ||
- http://mokili.free.fr/jours_feries.php | ||
- Loi N° l8-20l0: | ||
- https://www.finances.gouv.cg/sites/default/files/documents/n¯18-2010%20du%2027%20novembre%202010.PDF | ||
Cross-Checked With: | ||
- https://en.wikipedia.org/wiki/Public_holidays_in_the_Republic_of_the_Congo | ||
""" | ||
|
||
country = "CG" | ||
default_language = "fr" | ||
supported_languages = ("en_US", "fr") | ||
|
||
def __init__(self, *args, **kwargs) -> None: | ||
ChristianHolidays.__init__(self) | ||
InternationalHolidays.__init__(self) | ||
super().__init__(*args, **kwargs) | ||
|
||
def _populate_public_holidays(self): | ||
# Loi N° 2-94 of 1 March 1994 | ||
if self._year <= 1993: | ||
return None | ||
|
||
# New Year's Day. | ||
self._add_new_years_day(tr("Jour de l'An")) | ||
|
||
# Easter Monday. | ||
self._add_easter_monday(tr("Lundi de Pâques")) | ||
|
||
# Labor Day. | ||
self._add_labor_day(tr("Fête du Travail")) | ||
|
||
# Ascension Day. | ||
self._add_ascension_thursday(tr("Ascension")) | ||
|
||
# Whit Monday. | ||
self._add_whit_monday(tr("Lundi de Pentecôte")) | ||
|
||
# Reconciliation Day. | ||
self._add_holiday_jun_10(tr("Fête de la Réconciliation")) | ||
|
||
# National Day. | ||
self._add_holiday_aug_15(tr("Fête Nationale")) | ||
|
||
# All Saints' Day. | ||
self._add_all_saints_day(tr("Toussaint")) | ||
|
||
if self._year >= 2010: | ||
# Republic Day. | ||
self._add_holiday_nov_28(tr("Jour de la République")) | ||
|
||
# Christmas Day. | ||
self._add_christmas_day(tr("Noël")) | ||
|
||
|
||
class CG(Congo): | ||
pass | ||
|
||
|
||
class COG(Congo): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# 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 AUTHORS file) | ||
# dr-prodigy <[email protected]> (c) 2017-2023 | ||
# ryanss <[email protected]> (c) 2014-2017 | ||
# Website: https://github.com/vacanza/python-holidays | ||
# License: MIT (see LICENSE file) | ||
# | ||
# Congo holidays en_US localization. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Python Holidays 0.58\n" | ||
"POT-Creation-Date: 2024-10-04 18:14+0700\n" | ||
"PO-Revision-Date: 2024-10-04 18:17+0700\n" | ||
"Last-Translator: PPsyrius <[email protected]>\n" | ||
"Language-Team: Python 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.3\n" | ||
"X-Generator: Poedit 3.5\n" | ||
|
||
#. New Year's Day. | ||
msgid "Jour de l'An" | ||
msgstr "New Year's Day" | ||
|
||
#. Easter Monday. | ||
msgid "Lundi de Pâques" | ||
msgstr "Easter Monday" | ||
|
||
#. Labor Day. | ||
msgid "Fête du Travail" | ||
msgstr "Labor Day" | ||
|
||
#. Ascension Day. | ||
msgid "Ascension" | ||
msgstr "Ascension Day" | ||
|
||
#. Whit Monday. | ||
msgid "Lundi de Pentecôte" | ||
msgstr "Whit Monday" | ||
|
||
#. Reconciliation Day. | ||
msgid "Fête de la Réconciliation" | ||
msgstr "Reconciliation Day" | ||
|
||
#. National Day. | ||
msgid "Fête Nationale" | ||
msgstr "National Day" | ||
|
||
#. All Saints' Day. | ||
msgid "Toussaint" | ||
msgstr "All Saints' Day" | ||
|
||
#. Republic Day. | ||
msgid "Jour de la République" | ||
msgstr "Republic Day" | ||
|
||
#. Christmas Day. | ||
msgid "Noël" | ||
msgstr "Christmas Day" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# 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 AUTHORS file) | ||
# dr-prodigy <[email protected]> (c) 2017-2023 | ||
# ryanss <[email protected]> (c) 2014-2017 | ||
# Website: https://github.com/vacanza/python-holidays | ||
# License: MIT (see LICENSE file) | ||
# | ||
# Congo holidays. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Python Holidays 0.58\n" | ||
"POT-Creation-Date: 2024-10-04 18:14+0700\n" | ||
"PO-Revision-Date: 2024-10-04 18:17+0700\n" | ||
"Last-Translator: PPsyrius <[email protected]>\n" | ||
"Language-Team: Python Holidays Localization Team\n" | ||
"Language: fr\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Generated-By: Lingva 5.0.3\n" | ||
"X-Generator: Poedit 3.5\n" | ||
|
||
#. New Year's Day. | ||
msgid "Jour de l'An" | ||
msgstr "" | ||
|
||
#. Easter Monday. | ||
msgid "Lundi de Pâques" | ||
msgstr "" | ||
|
||
#. Labor Day. | ||
msgid "Fête du Travail" | ||
msgstr "" | ||
|
||
#. Ascension Day. | ||
msgid "Ascension" | ||
msgstr "" | ||
|
||
#. Whit Monday. | ||
msgid "Lundi de Pentecôte" | ||
msgstr "" | ||
|
||
#. Reconciliation Day. | ||
msgid "Fête de la Réconciliation" | ||
msgstr "" | ||
|
||
#. National Day. | ||
msgid "Fête Nationale" | ||
msgstr "" | ||
|
||
#. All Saints' Day. | ||
msgid "Toussaint" | ||
msgstr "" | ||
|
||
#. Republic Day. | ||
msgid "Jour de la République" | ||
msgstr "" | ||
|
||
#. Christmas Day. | ||
msgid "Noël" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.