-
-
Notifications
You must be signed in to change notification settings - Fork 558
Add Western Sahara holidays #3003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,92 @@ | ||
# 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) | ||
|
||
from gettext import gettext as tr | ||
|
||
from holidays.groups import IslamicHolidays | ||
from holidays.holiday_base import HolidayBase | ||
|
||
|
||
class WesternSahara(HolidayBase, IslamicHolidays): | ||
"""Western Sahara holidays. | ||
|
||
References: | ||
* [1999 Constitution (es)](https://web.archive.org/web/20240210155831/https://www.usc.es/export9/sites/webinstitucional/gl/institutos/ceso/descargas/Constitucion-RASD_1999_es.pdf) | ||
* [1999 Constitution (fr)](https://web.archive.org/web/20250824061216/https://www.arso.org/03-const.99.htm) | ||
* [2003 Constitution (ar)](https://web.archive.org/web/20240415014236/https://www.usc.es/export9/sites/webinstitucional/gl/institutos/ceso/descargas/Constitucion-RASD_2003_ar.pdf) | ||
* [2011 Constitution (es)](https://web.archive.org/web/20240415014236/https://www.usc.es/export9/sites/webinstitucional/gl/institutos/ceso/descargas/RASD_Constitucion_2011_es.pdf) | ||
* [2015 Constitution (en)](https://web.archive.org/web/20240605212800/https://www.usc.es/export9/sites/webinstitucional/gl/institutos/ceso/descargas/RASD_Constitution-of-SADR-2015_en.pdf) | ||
* [2019 Constitution (ar)](https://web.archive.org/web/20240415014236/https://www.usc.es/export9/sites/webinstitucional/gl/institutos/ceso/descargas/RASD_Const_2019_ar.pdf) | ||
""" | ||
|
||
country = "EH" | ||
default_language = "ar" | ||
# %s (estimated). | ||
estimated_label = tr("%s (المقدرة)") | ||
# 1999 Constitution was adopted by the 10th Congress on September 4th, 1999. | ||
start_year = 2000 | ||
supported_languages = ("ar", "en_US", "es", "fr") | ||
|
||
def __init__(self, *args, islamic_show_estimated: bool = True, **kwargs): | ||
""" | ||
Args: | ||
islamic_show_estimated: | ||
Whether to add "estimated" label to Islamic holidays name | ||
if holiday date is estimated. | ||
""" | ||
IslamicHolidays.__init__(self, show_estimated=islamic_show_estimated) | ||
super().__init__(*args, **kwargs) | ||
|
||
def _populate_public_holidays(self): | ||
# Proclamation of the SADR. | ||
self._add_holiday_feb_27(tr("إعلان الجمهورية العربية الصحراوية الديمقراطية")) | ||
|
||
# First Martyr. | ||
self._add_holiday_mar_8(tr("يوم الشهيد الأول")) | ||
|
||
# Creation of the Polisario Front. | ||
self._add_holiday_may_10(tr("تأسيس الجبهة الشعبية لتحرير الساقية الحمراء ووادي الذهب")) | ||
|
||
# Commencement of the Armed Struggle. | ||
self._add_holiday_may_20(tr("اندلاع الكفاح المسلح")) | ||
|
||
# Martyrs' Day. | ||
self._add_holiday_jun_9(tr("يوم الشهداء")) | ||
|
||
# Uprising Day. | ||
self._add_holiday_jun_17(tr("يوم الانتفاضة")) | ||
|
||
# National Unity Day. | ||
self._add_holiday_oct_12(tr("عيد الوحدة الوطنية")) | ||
|
||
# Added in the 2003 Constitution on October 19th, 2003. | ||
if self._year >= 2003: | ||
# Eid al-Fitr. | ||
self._add_eid_al_fitr_day(tr("عيد الفطر المبارك")) | ||
|
||
if self._year >= 2004: | ||
# Islamic New Year. | ||
self._add_islamic_new_year_day(tr("رأس السنة الهجرية")) | ||
|
||
# Prophet's Birthday. | ||
self._add_mawlid_day(tr("المولد النبوي الشريف")) | ||
|
||
# Eid al-Adha. | ||
self._add_eid_al_adha_day(tr("عيد الأضحى المبارك")) | ||
|
||
|
||
class EH(WesternSahara): | ||
pass | ||
|
||
|
||
class ESH(WesternSahara): | ||
pass |
This file contains hidden or 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,77 @@ | ||
# 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) | ||
# | ||
# Western Sahara holidays. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Holidays 0.83\n" | ||
"POT-Creation-Date: 2025-10-13 11:31+0700\n" | ||
"PO-Revision-Date: 2025-10-13 15:25+0700\n" | ||
"Last-Translator: PPsyrius <ppsyrius@ppsyrius.dev>\n" | ||
"Language-Team: Holidays Localization Team\n" | ||
"Language: ar\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: ar\n" | ||
|
||
#. %s (estimated). | ||
#, c-format | ||
msgid "%s (المقدرة)" | ||
msgstr "" | ||
|
||
#. Proclamation of the SADR. | ||
msgid "إعلان الجمهورية العربية الصحراوية الديمقراطية" | ||
msgstr "" | ||
|
||
#. First Martyr. | ||
msgid "يوم الشهيد الأول" | ||
msgstr "" | ||
|
||
#. Creation of the Polisario Front. | ||
msgid "تأسيس الجبهة الشعبية لتحرير الساقية الحمراء ووادي الذهب" | ||
msgstr "" | ||
|
||
#. Commencement of the Armed Struggle. | ||
msgid "اندلاع الكفاح المسلح" | ||
msgstr "" | ||
|
||
#. Martyrs' Day. | ||
msgid "يوم الشهداء" | ||
msgstr "" | ||
|
||
#. Uprising Day. | ||
msgid "يوم الانتفاضة" | ||
msgstr "" | ||
|
||
#. National Unity Day. | ||
msgid "عيد الوحدة الوطنية" | ||
msgstr "" | ||
|
||
#. Eid al-Fitr. | ||
msgid "عيد الفطر المبارك" | ||
msgstr "" | ||
|
||
#. Islamic New Year. | ||
msgid "رأس السنة الهجرية" | ||
msgstr "" | ||
|
||
#. Prophet's Birthday. | ||
msgid "المولد النبوي الشريف" | ||
msgstr "" | ||
|
||
#. Eid al-Adha. | ||
msgid "عيد الأضحى المبارك" | ||
msgstr "" |
This file contains hidden or 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,77 @@ | ||
# 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) | ||
# | ||
# Western Sahara holidays en_US localization. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Holidays 0.83\n" | ||
"POT-Creation-Date: 2025-10-13 11:31+0700\n" | ||
"PO-Revision-Date: 2025-10-13 15:25+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: ar\n" | ||
|
||
#. %s (estimated). | ||
#, c-format | ||
msgid "%s (المقدرة)" | ||
msgstr "%s (estimated)" | ||
|
||
#. Proclamation of the SADR. | ||
msgid "إعلان الجمهورية العربية الصحراوية الديمقراطية" | ||
msgstr "Proclamation of the SADR" | ||
|
||
#. First Martyr. | ||
msgid "يوم الشهيد الأول" | ||
msgstr "First Martyr" | ||
|
||
#. Creation of the Polisario Front. | ||
msgid "تأسيس الجبهة الشعبية لتحرير الساقية الحمراء ووادي الذهب" | ||
msgstr "Creation of the Polisario Front" | ||
|
||
#. Commencement of the Armed Struggle. | ||
msgid "اندلاع الكفاح المسلح" | ||
msgstr "Commencement of the Armed Struggle" | ||
|
||
#. Martyrs' Day. | ||
msgid "يوم الشهداء" | ||
msgstr "Martyrs' Day" | ||
|
||
#. Uprising Day. | ||
msgid "يوم الانتفاضة" | ||
msgstr "Uprising Day" | ||
|
||
#. National Unity Day. | ||
msgid "عيد الوحدة الوطنية" | ||
msgstr "National Unity Day" | ||
|
||
#. Eid al-Fitr. | ||
msgid "عيد الفطر المبارك" | ||
msgstr "Eid al-Fitr" | ||
|
||
#. Islamic New Year. | ||
msgid "رأس السنة الهجرية" | ||
msgstr "Islamic New Year" | ||
|
||
#. Prophet's Birthday. | ||
msgid "المولد النبوي الشريف" | ||
msgstr "Prophet's Birthday" | ||
|
||
#. Eid al-Adha. | ||
msgid "عيد الأضحى المبارك" | ||
msgstr "Eid al-Adha" |
This file contains hidden or 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,77 @@ | ||
# 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) | ||
# | ||
# Western Sahara holidays es localization. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Holidays 0.83\n" | ||
"POT-Creation-Date: 2025-10-13 11:31+0700\n" | ||
"PO-Revision-Date: 2025-10-13 15:25+0700\n" | ||
"Last-Translator: PPsyrius <ppsyrius@ppsyrius.dev>\n" | ||
"Language-Team: Holidays Localization Team\n" | ||
"Language: es\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: ar\n" | ||
|
||
#. %s (estimated). | ||
#, c-format | ||
msgid "%s (المقدرة)" | ||
msgstr "%s (estimado)" | ||
|
||
#. Proclamation of the SADR. | ||
msgid "إعلان الجمهورية العربية الصحراوية الديمقراطية" | ||
msgstr "Proclamación de la República Árabe Saharaui Democrática" | ||
|
||
#. First Martyr. | ||
msgid "يوم الشهيد الأول" | ||
msgstr "Primer mártir" | ||
|
||
#. Creation of the Polisario Front. | ||
msgid "تأسيس الجبهة الشعبية لتحرير الساقية الحمراء ووادي الذهب" | ||
msgstr "Creación del Frente POLISARIO" | ||
|
||
#. Commencement of the Armed Struggle. | ||
msgid "اندلاع الكفاح المسلح" | ||
msgstr "Inicio de la lucha armada" | ||
|
||
#. Martyrs' Day. | ||
msgid "يوم الشهداء" | ||
msgstr "Día de los mártires" | ||
|
||
#. Uprising Day. | ||
msgid "يوم الانتفاضة" | ||
msgstr "Día de la insurrección" | ||
|
||
#. National Unity Day. | ||
msgid "عيد الوحدة الوطنية" | ||
msgstr "Fiesta de la unidad nacional" | ||
|
||
#. Eid al-Fitr. | ||
msgid "عيد الفطر المبارك" | ||
msgstr "Eid al-Fitr" | ||
|
||
#. Islamic New Year. | ||
msgid "رأس السنة الهجرية" | ||
msgstr "Primer día del año de la Hégira" | ||
|
||
#. Prophet's Birthday. | ||
msgid "المولد النبوي الشريف" | ||
msgstr "Santo Nacimiento del Profeta" | ||
|
||
#. Eid al-Adha. | ||
msgid "عيد الأضحى المبارك" | ||
msgstr "Eid al-Adha" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.