Skip to content

Commit

Permalink
Update Czechia holidays: add sk localization (#1568)
Browse files Browse the repository at this point in the history
Co-authored-by: Arkadii Yakovets <[email protected]>
  • Loading branch information
jose1711 and arkid15r authored Nov 25, 2023
1 parent 225a471 commit 171a136
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ The list of supported countries, their subdivisions, supported languages and cat
* - Czechia
- CZ
-
- **cs**, en_US, uk
- **cs**, en_US, sk, uk
-
* - Denmark
- DK
Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/czechia.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Czechia(HolidayBase, ChristianHolidays, InternationalHolidays):

country = "CZ"
default_language = "cs"
supported_languages = ("cs", "en_US", "uk")
supported_languages = ("cs", "en_US", "sk", "uk")

def __init__(self, *args, **kwargs):
ChristianHolidays.__init__(self)
Expand Down
77 changes: 77 additions & 0 deletions holidays/locale/sk/LC_MESSAGES/CZ.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Czechia holidays sk localization.
# This file is distributed under the same license as the Python Holidays package.
# Authors: Jose Riha <[email protected]>, (c) 2023.
msgid ""
msgstr ""
"Project-Id-Version: Python Holidays 0.38\n"
"POT-Creation-Date: 2023-11-24 00:14+0100\n"
"PO-Revision-Date: 2023-11-24 00:17+0100\n"
"Last-Translator: Jose Riha <[email protected]>\n"
"Language-Team: Python Holidays Localization Team\n"
"Language: sk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n>=2 && n<=4 ? 1 : 2);\n"
"Generated-By: Lingua 4.15.0\n"
"X-Generator: Poedit 3.4.1\n"

#. Independent Czech State Restoration Day.
msgid "Den obnovy samostatného českého státu"
msgstr "Deň obnovy samostatného českého štátu"

#. New Year's Day.
msgid "Nový rok"
msgstr "Nový rok"

#. Good Friday.
msgid "Velký pátek"
msgstr "Veľký piatok"

#. Easter Monday.
msgid "Velikonoční pondělí"
msgstr "Veľkonočný pondelok"

#. Labor Day.
msgid "Svátek práce"
msgstr "Sviatok práce"

#. Victory Day.
msgid "Den vítězství"
msgstr "Deň víťazstva"

#. Day of Victory over Fascism.
msgid "Den vítězství nad hitlerovským fašismem"
msgstr "Deň víťazstva nad hitlerovským fašizmom"

#. Saints Cyril and Methodius Day.
msgid "Den slovanských věrozvěstů Cyrila a Metoděje"
msgstr "Deň slovanských vierozvestcov Cyrila a Metoda"

#. Jan Hus Day.
msgid "Den upálení mistra Jana Husa"
msgstr "Deň upálenia majstra Jána Husa"

#. Statehood Day.
msgid "Den české státnosti"
msgstr "Deň českej štátnosti"

#. Independent Czechoslovak State Day.
msgid "Den vzniku samostatného československého státu"
msgstr "Deň vzniku samostatného československého štátu"

#. Struggle for Freedom and Democracy Day.
msgid "Den boje za svobodu a demokracii"
msgstr "Deň boja za slobodu a demokraciu"

#. Christmas Eve.
msgid "Štědrý den"
msgstr "Štedrý deň"

#. Christmas Day.
msgid "1. svátek vánoční"
msgstr "1. sviatok vianočný"

#. Second Day of Christmas.
msgid "2. svátek vánoční"
msgstr "2. sviatok vianočný"
18 changes: 18 additions & 0 deletions tests/countries/test_czechia.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,24 @@ def test_l10n_en_us(self):
("2022-12-26", "Second Day of Christmas"),
)

def test_l10n_sk(self):
self.assertLocalizedHolidays(
"sk",
("2022-01-01", "Deň obnovy samostatného českého štátu"),
("2022-04-15", "Veľký piatok"),
("2022-04-18", "Veľkonočný pondelok"),
("2022-05-01", "Sviatok práce"),
("2022-05-08", "Deň víťazstva"),
("2022-07-05", "Deň slovanských vierozvestcov Cyrila a Metoda"),
("2022-07-06", "Deň upálenia majstra Jána Husa"),
("2022-09-28", "Deň českej štátnosti"),
("2022-10-28", "Deň vzniku samostatného československého štátu"),
("2022-11-17", "Deň boja za slobodu a demokraciu"),
("2022-12-24", "Štedrý deň"),
("2022-12-25", "1. sviatok vianočný"),
("2022-12-26", "2. sviatok vianočný"),
)

def test_l10n_uk(self):
self.assertLocalizedHolidays(
"uk",
Expand Down

0 comments on commit 171a136

Please sign in to comment.