Skip to content

Commit

Permalink
Unify common holidays name translation (#1673)
Browse files Browse the repository at this point in the history
  • Loading branch information
KJhellico authored Jan 29, 2024
1 parent 48bb763 commit 2ea9232
Show file tree
Hide file tree
Showing 223 changed files with 779 additions and 758 deletions.
17 changes: 9 additions & 8 deletions holidays/countries/algeria.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ class Algeria(HolidayBase, InternationalHolidays, IslamicHolidays):
"""
References:
- https://en.wikipedia.org/wiki/Public_holidays_in_Algeria
As of April 30, 2023. Algeria has 3 days of Eid holidays
(https://www.horizons.dz/english/archives/amp/12021)
"""

country = "DZ"
default_language = "ar"
# Estimated label.
# %s (estimated).
estimated_label = tr("(تقدير) %s")
supported_languages = ("ar", "en_US", "fr")

Expand All @@ -38,7 +42,7 @@ def _populate_public_holidays(self):

# In January 2018, Algeria declared Yennayer a national holiday.
if self._year >= 2018:
# Amazigh New Year / Yennayer.
# Amazigh New Year.
self._add_holiday_jan_12(tr("رأس السنة الأمازيغية"))

# Labor Day.
Expand All @@ -58,20 +62,17 @@ def _populate_public_holidays(self):
# Ashura.
self._add_ashura_day(tr("عاشورة"))

# Mawlid / Prophet's Birthday.
# Prophet's Birthday.
self._add_mawlid_day(tr("عيد المولد النبوي"))

# As of April 30, 2023. Algeria has 3 days of Eid holidays
# (https://www.horizons.dz/english/archives/amp/12021)

# Eid al-Fitr - Feast Festive.
# Eid al-Fitr.
self._add_eid_al_fitr_day(tr("عيد الفطر"))
# Eid al-Fitr Holiday.
self._add_eid_al_fitr_day_two(tr("عطلة عيد الفطر"))
if self._year >= 2024:
self._add_eid_al_fitr_day_three(tr("عطلة عيد الفطر"))

# Eid al-Adha - Scarfice Festive.
# Eid al-Adha.
self._add_eid_al_adha_day(tr("عيد الأضحى"))
# Eid al-Adha Holiday.
self._add_eid_al_adha_day_two(tr("عطلة عيد الأضحى"))
Expand Down
4 changes: 2 additions & 2 deletions holidays/countries/argentina.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def _populate_public_holidays(self):
# Restarted in 2011 via Decreto 1584/2010.

if 1956 <= self._year <= 1975 or self._year >= 2011:
# Carnival.
# Carnival Day.
name = tr("Día de Carnaval")
self._add_carnival_monday(name)
self._add_carnival_tuesday(name)
Expand Down Expand Up @@ -176,7 +176,7 @@ def _populate_public_holidays(self):
# Immaculate Conception.
self._add_immaculate_conception_day(tr("Inmaculada Concepción de María"))

# Christmas.
# Christmas Day.
self._add_christmas_day(tr("Navidad"))

# Movable Holidays
Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/armenia.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _populate_public_holidays(self):
# Motherhood and Beauty Day.
self._add_holiday_apr_7(tr("Մայրության և գեղեցկության տոն"))

# Armenian Genocide Remembrance Day,
# Armenian Genocide Remembrance Day.
self._add_holiday_apr_24(tr("Եղեռնի զոհերի հիշատակի օր"))

if self._year >= 2001:
Expand Down
19 changes: 8 additions & 11 deletions holidays/countries/bahrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Bahrain(HolidayBase, InternationalHolidays, IslamicHolidays):

country = "BH"
default_language = "ar"
# Estimated label.
# %s (estimated).
estimated_label = tr("(تقدير) %s")
supported_languages = ("ar", "en_US")
weekend = {FRI, SAT}
Expand All @@ -42,7 +42,7 @@ def _populate_public_holidays(self):
# New Year's Day.
self._add_new_years_day(tr("رأس السنة الميلادية"))

# Labour day.
# Labor Day.
self._add_labor_day(tr("عيد العمال"))

# Eid Al Fitr.
Expand All @@ -53,23 +53,20 @@ def _populate_public_holidays(self):
self._add_eid_al_fitr_day_three(tr("عطلة عيد الفطر"))

# Eid Al Adha.
eid_al_adha = tr("عيد الأضحى")
self._add_eid_al_adha_day(eid_al_adha)
self._add_eid_al_adha_day(tr("عيد الأضحى"))
# Eid Al Adha Holiday.
self._add_eid_al_adha_day_two(tr("عطلة عيد الأضحى"))
self._add_eid_al_adha_day_three(tr("عطلة عيد الأضحى"))

# Al Hijra New Year.
hijri_new_year = tr("رأس السنة الهجرية")
self._add_islamic_new_year_day(hijri_new_year)
# Islamic New Year.
self._add_islamic_new_year_day(tr("رأس السنة الهجرية"))

# Ashura.
ashura = tr("عاشورة")
# Ashura Eve.
self._add_ashura_eve(tr("ليلة عاشورة"))
self._add_ashura_day(ashura)
# Ashura.
self._add_ashura_day(tr("عاشورة"))

# Prophets Birthday.
# Prophet's Birthday.
self._add_mawlid_day(tr("عيد المولد النبوي"))

# National Day.
Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/belarus.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _populate_public_holidays(self):
# Radunitsa (Day of Rejoicing).
self._add_rejoicing_day(tr("Радаўніца"))

# Labour Day.
# Labor Day.
self._add_labor_day(tr("Свята працы"))

# Victory Day.
Expand Down
4 changes: 2 additions & 2 deletions holidays/countries/belgium.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def _populate_public_holidays(self):
# New Year's Day.
self._add_new_years_day(tr("Nieuwjaar"))

# Easter.
# Easter Sunday.
self._add_easter_sunday(tr("Pasen"))

# Easter Monday.
Expand All @@ -60,7 +60,7 @@ def _populate_public_holidays(self):
# National Day.
self._add_holiday_jul_21(tr("Nationale feestdag"))

# Assumption of Mary.
# Assumption Day.
self._add_assumption_of_mary_day(tr("O. L. V. Hemelvaart"))

# All Saints' Day.
Expand Down
32 changes: 16 additions & 16 deletions holidays/countries/bosnia_and_herzegovina.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ def _populate_subdiv_holidays(self):
self._add_new_years_day(name)
self._add_new_years_day_two(name)

# Orthodox Christmas.
# Orthodox Christmas Day.
self._add_christmas_day(tr("Božić (Pravoslavni)"))

# Labor Day.
# International Labor Day.
name = tr("Međunarodni praznik rada")
self._add_labor_day(name)
self._add_labor_day_two(name)

# Catholic Christmas.
# Catholic Christmas Day.
self._add_christmas_day(tr("Božić (Katolički)"), GREGORIAN_CALENDAR)

super()._populate_subdiv_holidays()
Expand All @@ -126,7 +126,7 @@ def _populate_subdiv_bih_public_holidays(self):
# Orthodox Christmas Eve.
self._add_christmas_eve(tr("Badnji dan (Pravoslavni)"))

# Orthodox Christmas.
# Orthodox Christmas Day.
self._add_christmas_day(tr("Božić (Pravoslavni)"))

# Independence Day.
Expand All @@ -135,16 +135,16 @@ def _populate_subdiv_bih_public_holidays(self):
# Catholic Good Friday.
self._add_good_friday(tr("Veliki petak (Katolički)"), GREGORIAN_CALENDAR)

# Catholic Easter.
# Catholic Easter Sunday.
self._add_easter_sunday(tr("Uskrs (Katolički)"), GREGORIAN_CALENDAR)

# Orthodox Easter.
# Orthodox Easter Sunday.
self._add_easter_sunday(tr("Vaskrs (Pravoslavni)"))

# Orthodox Easter Monday.
self._add_easter_monday(tr("Uskrsni ponedjeljak (Pravoslavni)"))

# Labor Day.
# International Labor Day.
name = tr("Međunarodni praznik rada")
self._add_observed(self._add_labor_day(name), rule=SUN_TO_NEXT_TUE)
self._add_labor_day_two(name)
Expand All @@ -158,7 +158,7 @@ def _populate_subdiv_bih_public_holidays(self):
# Catholic Christmas Eve.
self._add_christmas_eve(tr("Badnji dan (Katolički)"), GREGORIAN_CALENDAR)

# Catholic Christmas.
# Catholic Christmas Day.
self._add_christmas_day(tr("Božić (Katolički)"), GREGORIAN_CALENDAR)

# Eid al-Fitr.
Expand All @@ -173,21 +173,21 @@ def _populate_subdiv_brc_public_holidays(self):
self._add_observed(self._add_new_years_day(name), rule=SAT_SUN_TO_NEXT_MON_TUE)
self._add_new_years_day_two(name)

# Orthodox Christmas.
# Orthodox Christmas Day.
self._add_observed(self._add_christmas_day(tr("Božić (Pravoslavni)")))

self._add_observed(
# Day of establishment of Brčko District.
self._add_holiday_mar_8(tr("Dan uspostavljanja Brčko distrikta"))
)

# Labor Day.
# International Labor Day.
name = tr("Međunarodni praznik rada")
self._add_observed(self._add_labor_day(name), rule=SAT_SUN_TO_NEXT_MON_TUE)
self._add_labor_day_two(name)

self._add_observed(
# Catholic Christmas.
# Catholic Christmas Day.
self._add_christmas_day(tr("Božić (Katolički)"), GREGORIAN_CALENDAR)
)

Expand All @@ -200,7 +200,7 @@ def _populate_subdiv_srp_public_holidays(self):
# Orthodox Christmas Eve.
self._add_christmas_eve(tr("Badnji dan (Pravoslavni)"))

# Orthodox Christmas.
# Orthodox Christmas Day.
self._add_christmas_day(tr("Božić (Pravoslavni)"))

# Orthodox New Year.
Expand All @@ -209,16 +209,16 @@ def _populate_subdiv_srp_public_holidays(self):
# Catholic Good Friday.
self._add_good_friday(tr("Veliki petak (Katolički)"), GREGORIAN_CALENDAR)

# Catholic Easter.
# Catholic Easter Sunday.
self._add_easter_sunday(tr("Uskrs (Katolički)"), GREGORIAN_CALENDAR)

# Orthodox Easter.
# Orthodox Easter Sunday.
self._add_easter_sunday(tr("Vaskrs (Pravoslavni)"))

# Orthodox Easter Monday.
self._add_easter_monday(tr("Uskrsni ponedjeljak (Pravoslavni)"))

# Labor Day.
# International Labor Day.
name = tr("Međunarodni praznik rada")
self._add_observed(self._add_labor_day(name), rule=SAT_TO_NEXT_MON)
self._add_labor_day_two(name)
Expand All @@ -234,7 +234,7 @@ def _populate_subdiv_srp_public_holidays(self):
# Catholic Christmas Eve.
self._add_christmas_eve(tr("Badnji dan (Katolički)"), GREGORIAN_CALENDAR)

# Catholic Christmas.
# Catholic Christmas Day.
self._add_christmas_day(tr("Božić (Katolički)"), GREGORIAN_CALENDAR)

# Eid al-Fitr.
Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/canada.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _add_statutory_holidays(self):
)

if self._year >= 1894:
# Labour Day.
# Labor Day.
self._add_holiday_1st_mon_of_sep(tr("Labour Day"))

# Christmas Day.
Expand Down
10 changes: 5 additions & 5 deletions holidays/countries/chile.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _populate_public_holidays(self):
self._add_holy_saturday(tr("Sábado Santo"))

if self._year <= 1967:
# Ascension of Jesus.
# Ascension Day.
self._add_ascension_thursday(tr("Ascensión del Señor"))

if self._year <= 1967 or 1987 <= self._year <= 2006:
Expand All @@ -106,7 +106,7 @@ def _populate_public_holidays(self):
)

if self._year >= 1932:
# Labour Day.
# Labor Day.
self._add_labor_day(tr("Día Nacional del Trabajo"))

# Naval Glories Day.
Expand All @@ -128,7 +128,7 @@ def _populate_public_holidays(self):
# Day of Virgin of Carmen.
self._add_holiday_jul_16(tr("Virgen del Carmen"))

# Assumption of Mary.
# Assumption Day.
self._add_assumption_of_mary_day(tr("Asunción de la Virgen"))

if 1981 <= self._year <= 1998:
Expand Down Expand Up @@ -180,7 +180,7 @@ def _populate_public_holidays(self):
rule=TUE_TO_PREV_FRI + WED_TO_NEXT_FRI,
)

# All Saints Day.
# All Saints' Day.
self._add_all_saints_day(tr("Día de Todos los Santos"))

# Immaculate Conception.
Expand All @@ -190,7 +190,7 @@ def _populate_public_holidays(self):
# Christmas Eve.
self._add_christmas_eve(tr("Víspera de Navidad"))

# Christmas.
# Christmas Day.
self._add_christmas_day(tr("Navidad"))

def _populate_subdiv_ap_public_holidays(self):
Expand Down
6 changes: 3 additions & 3 deletions holidays/countries/colombia.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _populate_public_holidays(self):
# Good Friday.
self._add_good_friday(tr("Viernes Santo"))

# Ascension of Jesus.
# Ascension Day.
self._move_holiday(self._add_ascension_thursday(tr("Ascensión del señor")))

# Corpus Christi.
Expand All @@ -94,7 +94,7 @@ def _populate_public_holidays(self):
self._add_holiday_aug_7(tr("Batalla de Boyacá"))

if self._year >= 1951:
# Assumption of Mary.
# Assumption Day.
self._move_holiday(self._add_assumption_of_mary_day(tr("La Asunción")))

# Columbus Day.
Expand All @@ -113,7 +113,7 @@ def _populate_public_holidays(self):
# Immaculate Conception.
self._add_immaculate_conception_day(tr("La Inmaculada Concepción"))

# Christmas.
# Christmas Day.
self._add_christmas_day(tr("Navidad"))


Expand Down
4 changes: 2 additions & 2 deletions holidays/countries/cuba.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Cuba(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):

country = "CU"
default_language = "es"
# %s observed.
# %s (observed).
observed_label = tr("%s (observado)")
supported_languages = ("en_US", "es", "uk")

Expand Down Expand Up @@ -65,7 +65,7 @@ def _populate_public_holidays(self):
# Good Friday.
self._add_good_friday(tr("Viernes Santo"))

# Labour Day.
# International Worker's Day.
self._add_observed(self._add_labor_day(tr("Día Internacional de los Trabajadores")))

# Commemoration of the Assault of the Moncada garrison.
Expand Down
3 changes: 1 addition & 2 deletions holidays/countries/denmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _populate_public_holidays(self):
# New Year's Day.
self._add_new_years_day(tr("Nytårsdag"))

# Holy Thursday.
# Maundy Thursday.
self._add_holy_thursday(tr("Skærtorsdag"))

# Good Friday.
Expand All @@ -53,7 +53,6 @@ def _populate_public_holidays(self):
# Easter Monday.
self._add_easter_monday(tr("Anden påskedag"))

# See https://www.ft.dk/samling/20222/lovforslag/l13/index.htm
if self._year <= 2023:
# Great Day of Prayers.
self._add_holiday(tr("Store bededag"), self._easter_sunday + td(days=+26))
Expand Down
Loading

0 comments on commit 2ea9232

Please sign in to comment.