MCPcopy
hub / github.com/vacanza/holidays / _populate_public_holidays

Method _populate_public_holidays

holidays/countries/moldova.py:39–93  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37 super().__init__(*args, **kwargs)
38
39 def _populate_public_holidays(self):
40 # New Year's Day.
41 self._add_new_years_day(tr("Anul Nou"))
42
43 name = (
44 # Christmas Day (by old style).
45 tr("Nașterea lui Iisus Hristos (Crăciunul pe stil vechi)")
46 if self._year >= 2014
47 # Christmas Day.
48 else tr("Nașterea lui Iisus Hristos (Crăciunul)")
49 )
50 self._add_christmas_day(name)
51 self._add_christmas_day_two(name)
52
53 # International Women's Day.
54 self._add_womens_day(tr("Ziua internatională a femeii"))
55
56 # Easter.
57 name = tr("Paștele")
58 self._add_easter_sunday(name)
59 self._add_easter_monday(name)
60
61 # Day of Rejoicing.
62 self._add_holiday_8_days_past_easter(tr("Paștele blajinilor"))
63
64 # International Workers' Solidarity Day.
65 self._add_labor_day(tr("Ziua internaţională a solidarităţii oamenilor muncii"))
66
67 self._add_world_war_two_victory_day(
68 # Victory Day and Commemoration of the heroes fallen for
69 # Independence of Fatherland.
70 tr("Ziua Victoriei și a comemorării eroilor căzuţi pentru Independenţa Patriei"),
71 is_western=False,
72 )
73
74 if self._year >= 2017:
75 # Europe Day.
76 self._add_europe_day(tr("Ziua Europei"))
77
78 if self._year >= 2016:
79 # International Children's Day.
80 self._add_childrens_day(tr("Ziua Ocrotirii Copilului"))
81
82 # Republic of Moldova Independence Day.
83 self._add_holiday_aug_27(tr("Ziua independenţei Republicii Moldova"))
84
85 # National Language Day.
86 self._add_holiday_aug_31(tr("Limba noastră"))
87
88 if self._year >= 2013:
89 self._add_christmas_day(
90 # Christmas Day (by new style).
91 tr("Nașterea lui Iisus Hristos (Crăciunul pe stil nou)"),
92 GREGORIAN_CALENDAR,
93 )
94
95
96class MD(Moldova):

Callers

nothing calls this directly

Calls 10

_add_new_years_dayMethod · 0.80
_add_christmas_dayMethod · 0.80
_add_womens_dayMethod · 0.80
_add_easter_sundayMethod · 0.80
_add_easter_mondayMethod · 0.80
_add_labor_dayMethod · 0.80
_add_europe_dayMethod · 0.80
_add_childrens_dayMethod · 0.80

Tested by

no test coverage detected