Skip to content

Commit

Permalink
Merge pull request #170 from heiglandreas/addHungary
Browse files Browse the repository at this point in the history
Add hungarian holidays
  • Loading branch information
heiglandreas committed Jan 17, 2024
2 parents fd40ea2 + 5afac04 commit f7fbe36
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 13 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/actions.yml
Expand Up @@ -10,10 +10,10 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
php-version: "8.3"
tools: phive
- name: Download codesniffer
run: phive --no-progress install --trust-gpg-keys 31C7E470E2138192 phpcs
run: phive --no-progress install --trust-gpg-keys 5E6DDE998AB73B8E phpcs
- name: Install
run: composer install
- name: check
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
php-version: "8.3"
- name: Install xmllint
run: sudo apt-get install libxml2-utils
- name: lint
Expand All @@ -39,11 +39,12 @@ jobs:
strategy:
matrix:
# operating-system: [ubuntu-latest, windows-latest, macos-latest]
php-versions: ['7.3', '7.4', '8.0', '8.1', '8.2']
icu-versions: ['73.2', '73.1', '71.1', '69.1', '67.1']
php-versions: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
icu-versions: ['74.1', '73.2', '73.1', '71.1', '69.1', '67.1']
experimental: [false]
include:
- php-versions: '8.3'
- php-versions: '8.4'
icu-versions: '74.1'
experimental: true
name: PHP ${{ matrix.php-versions }}-icu${{ matrix.icu-versions }} # Test on ${{ matrix.operating-system }}
steps:
Expand All @@ -53,7 +54,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: sodium, intl-${{matrix.icu-version}}
extensions: sodium, intl-${{matrix.icu-versions}}
ini-values: post_max_size=256M, short_open_tag=On
coverage: xdebug
- name: prepare
Expand Down Expand Up @@ -86,7 +87,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
php-version: "8.3"
tools: phive
- name: Download psalm
run: phive --no-progress install --trust-gpg-keys 8A03EA3B385DBAA1,12CE0F1D262429A5 psalm
Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -137,6 +137,7 @@ Currently these countries are available:
* Cyprus
* Czech Republic
* Switzerland
* Hungary

But the list is constantly extending.

Expand Down
8 changes: 4 additions & 4 deletions phpcs.xml
Expand Up @@ -129,16 +129,16 @@
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property
name="newlinesCountBetweenOpenTagAndDeclare"
value="2"
name="linesCountBeforeDeclare"
value="1"
/>
<property
name="spacesCountAroundEqualsSign"
value="0"
/>
<property
name="newlinesCountAfterDeclare"
value="2"
name="linesCountAfterDeclare"
value="1"
/>
</properties>
</rule>
Expand Down
29 changes: 29 additions & 0 deletions share/HU.xml
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>
<holidays xmlns="https://heigl.org/holidays"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="holidays.xsd https://heigl.org/xml/xsd/holidays.xsd"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<resources>
<resource href="https://en.wikipedia.org/wiki/Public_holidays_in_Hungary" lastChecked="2024-01-17">Wikipedia</resource>
</resources>
<date day="1" month="1" free="true" comment="New years day">Újév</date>
<date day="15" month="3" free="true" comment="National Day">Nemzeti ünnep</date>
<easter offset="-2" free="true" comment="Good Friday" firstobservance="2017">Nagypéntek</easter>
<easter offset="1" free="true" comment="Easter Monday">Húsvéthétfő</easter>
<date day="1" month="5" free="true" comment="Labour day">A munka ünnepe</date>
<easter offset="50" free="true" comment="Whit Monday">Pünkösdhétfő</easter>
<date day="20" month="8" free="true" comment="State foundation day">Az államalapítás ünnepe</date>
<date day="23" month="10" free="true" comment="National Day">Nemzeti ünnep</date>
<date day="1" month="11" free="true" comment="All Saints Day">Mindenszentek</date>
<date day="25" month="12" free="true" comment="Christmas Day">Karácsony</date>
<date day="26" month="12" free="true" comment="Second day of christmas">Karácsony másnapja</date>
<date day="22" month="1" free="false" comment="Day of the Hungarian Culture">A magyar kultúra napja</date>
<date day="1" month="2" free="false" comment="Memorial Day of the Republic">A köztársaság emléknapja</date>
<date day="25" month="2" free="false" comment="Memorial Day for the vivtims of the Communist Dictatorship">A kommunista diktatúrák áldozatainak emléknapja</date>
<date day="16" month="4" free="false" comment="Memorial Day for the victims of the Holocaust">A holokauszt áldozatainak emléknapja</date>
<date day="21" month="5" free="false" comment="National Defense Day">Honvédelmi nap</date>
<date day="4" month="6" free="false" comment="National Unity Day">A nemzeti összetartozás napja </date>
<date day="19" month="6" free="false" comment="Independen Hungary Day">A független Magyarország napja</date>
<date day="6" month="10" free="false" comment="Memorial Day for the Martyrs of Arad">Az aradi vértanúk emléknapja</date>
</holidays>
2 changes: 1 addition & 1 deletion world.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f7fbe36

Please sign in to comment.