GothenburgBitFactory / holidata

Holidata is the core of holidata.net, a no-nonsense, ad-free provider of international holiday data.
https://holidata.net
MIT License
47 stars 13 forks source link

Add locale for cs-CZ #10

Closed lauft closed 4 years ago

lauft commented 5 years ago

The following locale needs to be verified:

class cs_CZ(Locale):
    u"""
    01-01: [NF] Nový rok
    01-01: [NF] Den obnovy samostatnosti českého státu
    05-01: [NF] Svátek práce
    05-08: [NF] Den vítězství
    07-05: [NRF] Den slovanských věrozvěstů
    07-06: [NRF] Den upálení mistra Jana Husa
    09-28: [NRF] Den české státnosti
    10-28: [NF] Den vzniku samostatného československého státu
    11-17: [NF] Den boje za svobodu a demokracii
    12-24: [NRF] Štědrý den
    12-25: [NRF] 1. svátek vánoční
    12-26: [NRF] 2. svátek vánoční
    1 day after Easter: [NRV] Velikonoční pondělí
    """

    locale = "cs-CZ"
    easter_type = 

Checklist:

igneus commented 4 years ago

The current legal source for holidays in Czech Republic is https://www.zakonyprolidi.cz/cs/2000-245 , §1 and 2.

class cs_CZ(Locale):
    u"""
    01-01: [NF] Nový rok
    01-01: [NF] Den obnovy samostatného českého státu ### title fixed
    05-01: [NF] Svátek práce
    05-08: [NF] Den vítězství
    07-05: [NRF] Den slovanských věrozvěstů Cyrila a Metoděje ### title fixed
    07-06: [NRF] Den upálení mistra Jana Husa
    09-28: [NRF] Den české státnosti
    10-28: [NF] Den vzniku samostatného československého státu
    11-17: [NF] Den boje za svobodu a demokracii a Mezinárodní den studentstva ### title fixed
    12-24: [NRF] Štědrý den
    12-25: [NRF] 1. svátek vánoční
    12-26: [NRF] 2. svátek vánoční
    2 days before Easter: [NRV] Velký pátek ### added
    1 day after Easter: [NRV] Velikonoční pondělí
    """

    locale = "cs-CZ"
    easter_type = EASTER_WESTERN ### added
igneus commented 4 years ago

Are holidays moved to a different date, e.g. if they fall on a saturday/sunday/...? Are holidays observed on a different date (is there a substitute holiday), e.g. if they fall on a saturday/sunday/...?

No.

igneus commented 4 years ago

For more or less accurate translations see this page. If the "Comments" column is populated, it contains the actual translation of the Czech title (while the Holiday Name column seems to contain a customary English name of the holiday).

(As for August 21st already listed there, it's not yet part of the legislation in force.)

igneus commented 4 years ago

I'm not completely sure if the R flag for 09-28 is correct. The day as such is a religious feast - day of St. Wenceslas (the very first Czech saint, early 10th c., duke of Bohemia) - but the national holiday (see the name ~ "Day of the Czech statehood") officially celebrates the "secular meaning of this originally religious feast": Wenceslas the Přemyslid duke of Bohemia, Wenceslas as national symbol, not Wenceslas as a Christian saint.

lauft commented 4 years ago

(As for August 21st already listed there, it's not yet part of the legislation in force.)

08-12 is listed as important day ("Významné dny"). But as stated in §4 (2): Important days are workdays (Významné dny jsou dny pracovními); so we leave it out.

I'm not completely sure if the R flag for 09-28 is correct.

As the respective law mentions this day as Day of the Czech statehood I would drop the R flag.

lauft commented 4 years ago

Locale cs-CZ is now available. Data on holidata.net will be updated soon. Thanks for your contribution!