From b1b9fe44c98fc5ead00515ebf7352fe0e87a38a0 Mon Sep 17 00:00:00 2001 From: Adrian Fita Date: Sat, 14 Nov 2015 22:45:50 +0200 Subject: [PATCH 1/2] Adding Public Holidays for Romania --- PH_SH_exporter.js | 6 ++++-- README.md | 1 + opening_hours.js | 17 +++++++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/PH_SH_exporter.js b/PH_SH_exporter.js index 45b91e62..e30ddf7b 100755 --- a/PH_SH_exporter.js +++ b/PH_SH_exporter.js @@ -65,8 +65,10 @@ var nominatiom_object = { }, 'dk' : { 'dk': {"place_id":"127691068","licence":"Data © OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright","osm_type":"relation","osm_id":"50046","boundingbox":["54.4516667","57.9524297","7.7153255","15.5530641"],"lat":"55.670249","lon":"10.3333283","display_name":"Denmark","class":"boundary","type":"administrative","importance":0.94221531286648,"icon":"https:\/\/nominatim.openstreetmap.org\/images\/mapicons\/poi_boundary_administrative.p.20.png","address":{"country":"Denmark","country_code":"dk"}} - } - + }, + 'ro' : { + 'ro' : {"place_id":"127691986","licence":"Data © OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright","osm_type":"relation","osm_id":"90689","boundingbox":["43.618682","48.2653964","20.2619773","30.0454257"],"lat":"45.9852129","lon":"24.6859225","display_name":"România","class":"boundary","type":"administrative","importance":0.93930940399775,"icon":"https:\/\/nominatim.openstreetmap.org\/images\/mapicons\/poi_boundary_administrative.p.20.png","address":{"country":"România","country_code":"ro"}} + } }; /* }}} */ diff --git a/README.md b/README.md index 7b1a44d6..14b0f419 100644 --- a/README.md +++ b/README.md @@ -734,6 +734,7 @@ Contributor | Contribution [Simon Legner](https://github.com/simon04) | [Browserified](https://github.com/ypid/opening_hours.js/pull/98) the library and made it work with JOSM. [MKnight](https://github.com/dex2000) | HTML/CSS fixes, testing and suggesting new features … :smile: [Niels Elgaard Larsen](https://github.com/elgaard) | Public holidays for Denmark. +[Adrian Fita](https://github.com/afita/) | Public holidays for Romania. ## Credits diff --git a/opening_hours.js b/opening_hours.js index 3606b9ad..76e7986c 100644 --- a/opening_hours.js +++ b/opening_hours.js @@ -2685,6 +2685,23 @@ '2. svátek vánoční' : [ 12, 26 ], }, }, // }}} + 'ro': { // {{{ + 'PH': { // https://ro.wikipedia.org/wiki/S%C4%83rb%C4%83tori_publice_%C3%AEn_Rom%C3%A2nia#Zile_oficiale_de_s.C4.83rb.C4.83toare_.C3.AEn_care_nu_se_lucreaz.C4.83 + 'Anul Nou' : [ 1, 1 ], + 'A doua zi de Anul Nou' : [ 1, 2 ], + 'Ziua Unirii Principatelor Române (Ziua Unirii)' : [ 1, 24 ], + 'Paștele ortodox' : [ 'orthodox easter', 0 ], + 'A doua zi de Paște ortodox' : [ 'orthodox easter', 1 ], + 'Ziua Muncii' : [ 5, 1 ], + 'Rusaliile' : [ 'orthodox easter', 50 ], + 'A doua zi de Rusalii' : [ 'orthodox easter', 51 ], + 'Adormirea Maicii Domnului' : [ 8, 15 ], + 'Sfântul Apostol Andrei' : [ 11, 30 ], + 'Ziua Națională (Ziua Marii Uniri)' : [ 12, 1 ], + 'Crăciunul' : [ 12, 25 ], + 'A doua zi de Crăciun' : [ 12, 26 ], + }, + } // }}} }; // }}} From f98c3768e7ce0435608bb9e9ef0c0c8299ae259c Mon Sep 17 00:00:00 2001 From: Fita Adrian Date: Sat, 14 Nov 2015 23:09:03 +0200 Subject: [PATCH 2/2] Remove unnecessary coma --- opening_hours.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opening_hours.js b/opening_hours.js index 76e7986c..5e3ed703 100644 --- a/opening_hours.js +++ b/opening_hours.js @@ -2700,7 +2700,7 @@ 'Ziua Națională (Ziua Marii Uniri)' : [ 12, 1 ], 'Crăciunul' : [ 12, 25 ], 'A doua zi de Crăciun' : [ 12, 26 ], - }, + } } // }}} }; // }}}