Skip to content

Commit

Permalink
Update Paraguay holidays (#1634)
Browse files Browse the repository at this point in the history
  • Loading branch information
KJhellico committed Jan 10, 2024
1 parent c7c00b4 commit c89823f
Show file tree
Hide file tree
Showing 7 changed files with 592 additions and 526 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ All other default values are highlighted with bold:
- PY
-
- en_US, **es**, uk
-
- GOVERNMENT
* - Peru
- PE
-
Expand Down
115 changes: 55 additions & 60 deletions holidays/countries/paraguay.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,22 @@
from gettext import gettext as tr

from holidays.calendars.gregorian import JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, DEC
from holidays.constants import GOVERNMENT, PUBLIC
from holidays.groups import ChristianHolidays, InternationalHolidays, StaticHolidays
from holidays.holiday_base import HolidayBase


class Paraguay(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
"""
https://www.ghp.com.py/news/feriados-nacionales-del-ano-2019-en-paraguay
https://es.wikipedia.org/wiki/Anexo:D%C3%ADas_feriados_en_Paraguay
http://www.calendarioparaguay.com/
References:
- https://es.wikipedia.org/wiki/Anexo:D%C3%ADas_festivos_en_Paraguay
- https://www.ghp.com.py/news/feriados-nacionales-del-ano-2019-en-paraguay
- http://www.calendarioparaguay.com/
"""

country = "PY"
default_language = "es"
supported_categories = (GOVERNMENT, PUBLIC)
supported_languages = ("en_US", "es", "uk")

def __init__(self, *args, **kwargs):
Expand Down Expand Up @@ -61,10 +64,10 @@ def _populate_public_holidays(self):
# Good Friday.
self._add_good_friday(tr("Viernes Santo"))

# Easter Day.
self._move_holiday(self._add_easter_sunday(tr("Día de Pascuas")))
# Easter Sunday.
self._move_holiday(self._add_easter_sunday(tr("Domingo de Resurrección")))

# Labour Day.
# Labor Day.
self._move_holiday(self._add_labor_day(tr("Día del Trabajador")))

# Independence Day.
Expand Down Expand Up @@ -106,7 +109,7 @@ def _populate_public_holidays(self):
# Caacupe Virgin Day.
self._move_holiday(self._add_holiday_dec_8(tr("Día de la Virgen de Caacupé")))

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


Expand All @@ -123,104 +126,96 @@ class ParaguayStaticHolidays:
public_holiday = tr("Asueto adicionale")
# Public sector holiday.
public_sector_holiday = tr("Asueto de la Administración Pública")

special_public_holidays = {
# public holiday for business purposes, in view of
# the recently increased risk of Dengue fever
# public holiday for business purposes, in view of the recently increased risk
# of Dengue fever.
2007: (JAN, 29, public_holiday),
# public sector holiday to celebrate Paraguay's
# football team's qualification for the 2010 World Cup
# public sector holiday to celebrate Paraguay's football team's qualification
# for the 2010 World Cup.
2009: (SEP, 10, public_holiday),
# public holiday to coincide with the Paraguay-Italy game of the current World Cup.
2010: (JUN, 14, public_holiday),
2011: (
# public holiday to coincide with the current anti-Dengue drive.
(APR, 19, public_holiday),
# public holidays to commemorate the Bicentennial of Paraguay's independence.
(MAY, 14, public_holiday),
(MAY, 16, public_holiday),
),
# date of the inauguration of President-elect Horacio Cartes.
2013: (AUG, 14, public_holiday),
2015: (
# public holidays in Paraguay on account of the upcoming visit of Pope Francis
# in Paraguay.
(JUL, 10, public_holiday),
(JUL, 11, public_holiday),
),
}

special_government_holidays = {
2010: (
# public holiday to coincide with the Paraguay-Italy
# game of the current World Cup
(JUN, 14, public_holiday),
# 2 year-end public sector holidays
# 2 year-end public sector holidays.
(DEC, 24, public_sector_holiday),
(DEC, 31, public_sector_holiday),
),
2011: (
# public holiday to coincide with the current anti-Dengue drive
(APR, 19, public_holiday),
# public sector holiday to let civil servants
# begin their Holy Week earlier
# public sector holiday to let civil servants begin their Holy Week earlier.
(APR, 20, public_sector_holiday),
# public holidays to commemorate the Bicentennial
# of Paraguay's independence
(MAY, 14, public_holiday),
(MAY, 16, public_holiday),
# 2 year-end public sector holidays
# 2 year-end public sector holidays.
(DEC, 23, public_sector_holiday),
(DEC, 30, public_sector_holiday),
),
2012: (
# public sector holiday to let civil servants
# begin their Holy Week earlier
# public sector holiday to let civil servants begin their Holy Week earlier.
(APR, 4, public_sector_holiday),
# 2 year-end public sector holidays
# 2 year-end public sector holidays.
(DEC, 24, public_sector_holiday),
(DEC, 31, public_sector_holiday),
),
2013: (
# public sector holiday to let civil servants
# begin their Holy Week earlier
(MAR, 27, public_sector_holiday),
# date of the inauguration of President-elect
# Horacio Cartes, as a one-off non-working public holiday
(AUG, 14, public_holiday),
),
# public sector holiday to let civil servants begin their Holy Week earlier.
2013: (MAR, 27, public_sector_holiday),
2014: (
# public sector holiday to let civil servants
# begin their Holy Week earlier
# public sector holiday to let civil servants begin their Holy Week earlier.
(APR, 16, public_sector_holiday),
# 2 year-end public sector holidays
# 2 year-end public sector holidays.
(DEC, 24, public_sector_holiday),
(DEC, 31, public_sector_holiday),
),
2015: (
# public sector holiday to let civil servants
# begin their Holy Week earlier
# public sector holiday to let civil servants begin their Holy Week earlier.
(APR, 1, public_sector_holiday),
# public holidays in Paraguay on account
# of the upcoming visit of Pope Francis in Paraguay
(JUL, 10, public_holiday),
(JUL, 11, public_holiday),
# 2 year-end public sector holidays
# 2 year-end public sector holidays.
(DEC, 24, public_sector_holiday),
(DEC, 31, public_sector_holiday),
),
# public sector holiday to let civil servants
# begin their Holy Week earlier
# public sector holiday to let civil servants begin their Holy Week earlier.
2016: (MAR, 23, public_sector_holiday),
# public sector holiday to let civil servants
# begin their Holy Week earlier
# public sector holiday to let civil servants begin their Holy Week earlier.
2017: (MAR, 28, public_sector_holiday),
2018: (
# 2 year-end public sector holidays
# 2 year-end public sector holidays.
(DEC, 24, public_sector_holiday),
(DEC, 31, public_sector_holiday),
),
2019: (
# public sector holiday to let civil servants
# begin their Holy Week earlier
# public sector holiday to let civil servants begin their Holy Week earlier.
(APR, 17, public_sector_holiday),
# 2 year-end public sector holidays
# 2 year-end public sector holidays.
(DEC, 24, public_sector_holiday),
(DEC, 31, public_sector_holiday),
),
# public sector holiday to let civil servants
# begin their Holy Week earlier
# public sector holiday to let civil servants begin their Holy Week earlier.
2020: (APR, 8, public_sector_holiday),
2021: (
# 2 year-end public sector holidays
# 2 year-end public sector holidays.
(DEC, 24, public_sector_holiday),
(DEC, 31, public_sector_holiday),
),
2022: (
# public sector holiday to let civil servants
# begin their Holy Week earlier
# public sector holiday to let civil servants begin their Holy Week earlier.
(APR, 13, public_sector_holiday),
# public sector holiday due to the annual May 1st
# public holiday falling on a Sunday
# public sector holiday due to the annual May 1st public holiday falling on a Sunday.
(MAY, 2, public_sector_holiday),
),
}
20 changes: 10 additions & 10 deletions holidays/locale/en_US/LC_MESSAGES/PY.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Python Holidays 0.22\n"
"Project-Id-Version: Python Holidays 0.41\n"
"POT-Creation-Date: 2023-03-05 12:33+0200\n"
"PO-Revision-Date: 2023-03-05 13:05+0200\n"
"PO-Revision-Date: 2024-01-05 12:44+0200\n"
"Last-Translator: ~Jhellico <jhellico@gmail.com>\n"
"Language-Team: Python Holidays localization team\n"
"Language: en_US\n"
Expand All @@ -14,7 +14,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Generated-By: pygettext.py 1.5\n"
"X-Generator: Poedit 3.2.2\n"
"X-Generator: Poedit 3.4\n"

#. Public holiday.
msgid "Asueto adicionale"
Expand All @@ -40,13 +40,13 @@ msgstr "Maundy Thursday"
msgid "Viernes Santo"
msgstr "Good Friday"

#. Easter Day.
msgid "Día de Pascuas"
msgstr "Easter Day"
#. Easter Sunday.
msgid "Domingo de Resurrección"
msgstr "Easter Sunday"

#. Labour Day.
#. Labor Day.
msgid "Día del Trabajador"
msgstr "Labour Day"
msgstr "Labor Day"

#. Independence Day.
msgid "Día de la Independencia Nacional"
Expand All @@ -68,6 +68,6 @@ msgstr "Boqueron Battle Day"
msgid "Día de la Virgen de Caacupé"
msgstr "Caacupe Virgin Day"

#. Christmas.
#. Christmas Day.
msgid "Navidad"
msgstr "Christmas"
msgstr "Christmas Day"
12 changes: 6 additions & 6 deletions holidays/locale/es/LC_MESSAGES/PY.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Python Holidays 0.22\n"
"Project-Id-Version: Python Holidays 0.41\n"
"POT-Creation-Date: 2023-03-05 12:33+0200\n"
"PO-Revision-Date: 2023-03-05 12:45+0200\n"
"PO-Revision-Date: 2024-01-05 12:41+0200\n"
"Last-Translator: ~Jhellico <jhellico@gmail.com>\n"
"Language-Team: Python Holidays localization team\n"
"Language: es\n"
Expand Down Expand Up @@ -40,11 +40,11 @@ msgstr ""
msgid "Viernes Santo"
msgstr ""

#. Easter Day.
msgid "Día de Pascuas"
#. Easter Sunday.
msgid "Domingo de Resurrección"
msgstr ""

#. Labour Day.
#. Labor Day.
msgid "Día del Trabajador"
msgstr ""

Expand All @@ -68,6 +68,6 @@ msgstr ""
msgid "Día de la Virgen de Caacupé"
msgstr ""

#. Christmas.
#. Christmas Day.
msgid "Navidad"
msgstr ""
12 changes: 6 additions & 6 deletions holidays/locale/uk/LC_MESSAGES/PY.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Python Holidays 0.22\n"
"Project-Id-Version: Python Holidays 0.41\n"
"POT-Creation-Date: 2023-03-05 12:33+0200\n"
"PO-Revision-Date: 2023-03-05 14:16+0200\n"
"PO-Revision-Date: 2024-01-05 12:45+0200\n"
"Last-Translator: ~Jhellico <jhellico@gmail.com>\n"
"Language-Team: Python Holidays localization team\n"
"Language: uk\n"
Expand Down Expand Up @@ -40,11 +40,11 @@ msgstr "Великий четвер"
msgid "Viernes Santo"
msgstr "Страсна пʼятниця"

#. Easter Day.
msgid "Día de Pascuas"
#. Easter Sunday.
msgid "Domingo de Resurrección"
msgstr "Великдень"

#. Labour Day.
#. Labor Day.
msgid "Día del Trabajador"
msgstr "День трудящих"

Expand All @@ -68,6 +68,6 @@ msgstr "День битви за Бокерон"
msgid "Día de la Virgen de Caacupé"
msgstr "Успіння Пресвятої Богородиці"

#. Christmas.
#. Christmas Day.
msgid "Navidad"
msgstr "Різдво Христове"

0 comments on commit c89823f

Please sign in to comment.