From caed6cbe3cab642659e73b451fc89d2952848544 Mon Sep 17 00:00:00 2001 From: XSpielinbox <55600187+xspielinbox@users.noreply.github.com> Date: Tue, 10 Oct 2023 21:18:04 +0200 Subject: [PATCH 1/2] Fix Moldova Signed-off-by: XSpielinbox <55600187+xspielinbox@users.noreply.github.com> --- .../descriptions/country_descriptions.properties | 7 ++++--- .../descriptions/country_descriptions_de.properties | 4 ++-- .../descriptions/country_descriptions_el.properties | 4 ++-- .../descriptions/country_descriptions_fr.properties | 4 ++-- .../descriptions/country_descriptions_nl.properties | 4 ++-- .../descriptions/country_descriptions_pt.properties | 4 ++-- .../descriptions/country_descriptions_sv.properties | 4 ++-- jollyday-core/src/main/resources/holidays/Holidays_md.xml | 8 +++++++- .../focus_shift/jollyday/tests/country/HolidayMDTest.java | 2 +- 9 files changed, 24 insertions(+), 17 deletions(-) diff --git a/jollyday-core/src/main/resources/descriptions/country_descriptions.properties b/jollyday-core/src/main/resources/descriptions/country_descriptions.properties index 3481cd77d..98e153404 100644 --- a/jollyday-core/src/main/resources/descriptions/country_descriptions.properties +++ b/jollyday-core/src/main/resources/descriptions/country_descriptions.properties @@ -283,9 +283,10 @@ country.description.lv = Latvia country.description.ly = Libyan Arab Jamahiriya country.description.ma = Morocco country.description.mc = Monaco -country.description.md = Moldova, Republic Of -country.description.md.bti = Balti -country.description.md.ch = Chisinau +country.description.md = Moldova, Republic of +country.description.md.ba = Bălți +country.description.md.bd = Bender [Tighina] +country.description.md.cu = Chișinău country.description.me = Montenegro country.description.mg = Madagascar country.description.mh = Marshall Islands diff --git a/jollyday-core/src/main/resources/descriptions/country_descriptions_de.properties b/jollyday-core/src/main/resources/descriptions/country_descriptions_de.properties index 527718504..7fbbe8e1c 100644 --- a/jollyday-core/src/main/resources/descriptions/country_descriptions_de.properties +++ b/jollyday-core/src/main/resources/descriptions/country_descriptions_de.properties @@ -284,8 +284,8 @@ country.description.ly = Libysch-Arabische Dschamahirija country.description.ma = Marokko country.description.mc = Monaco country.description.md = Moldau, Rep. -country.description.md.bti = Balti -country.description.md.ch = Chisinau +country.description.md.ba = Balti +country.description.md.cu = Chisinau country.description.me = Montenegro country.description.mg = Madagaskar country.description.mh = Marshallinseln diff --git a/jollyday-core/src/main/resources/descriptions/country_descriptions_el.properties b/jollyday-core/src/main/resources/descriptions/country_descriptions_el.properties index 541a36951..f87be7b2e 100644 --- a/jollyday-core/src/main/resources/descriptions/country_descriptions_el.properties +++ b/jollyday-core/src/main/resources/descriptions/country_descriptions_el.properties @@ -284,8 +284,8 @@ country.description.ly = Λιβυκή Αραβική Τζαμαχιρία country.description.ma = Μαρόκο country.description.mc = Μονακό country.description.md = Δημοκρατία της Μολδαβίας -country.description.md.bti = Μπαλτί -country.description.md.ch = Κισινάου +country.description.md.ba = Μπαλτί +country.description.md.cu = Κισινάου country.description.me = Μαυροβούνιο country.description.mg = Μαδαγασκάρη country.description.mh = Νησιά Μάρσαλ diff --git a/jollyday-core/src/main/resources/descriptions/country_descriptions_fr.properties b/jollyday-core/src/main/resources/descriptions/country_descriptions_fr.properties index a3b287efb..96d046333 100644 --- a/jollyday-core/src/main/resources/descriptions/country_descriptions_fr.properties +++ b/jollyday-core/src/main/resources/descriptions/country_descriptions_fr.properties @@ -284,8 +284,8 @@ country.description.ly = Libye country.description.ma = Maroc country.description.mc = Monaco country.description.md = Moldova, République de -country.description.md.bti = Balti -country.description.md.ch = Chisinau +country.description.md.ba = Balti +country.description.md.cu = Chisinau country.description.me = Monténégro country.description.mg = Madagascar country.description.mh = Marshall, Îles diff --git a/jollyday-core/src/main/resources/descriptions/country_descriptions_nl.properties b/jollyday-core/src/main/resources/descriptions/country_descriptions_nl.properties index 7f9cbf862..43caebebd 100644 --- a/jollyday-core/src/main/resources/descriptions/country_descriptions_nl.properties +++ b/jollyday-core/src/main/resources/descriptions/country_descriptions_nl.properties @@ -284,8 +284,8 @@ country.description.ly = Libyan Arab Jamahiriya country.description.ma = Morocco country.description.mc = Monaco country.description.md = Moldova, Republic Of -country.description.md.bti = Balti -country.description.md.ch = Chisinau +country.description.md.ba = Balti +country.description.md.cu = Chisinau country.description.me = Montenegro country.description.mg = Madagascar country.description.mh = Marshall Islands diff --git a/jollyday-core/src/main/resources/descriptions/country_descriptions_pt.properties b/jollyday-core/src/main/resources/descriptions/country_descriptions_pt.properties index f22b80436..08b7c2192 100644 --- a/jollyday-core/src/main/resources/descriptions/country_descriptions_pt.properties +++ b/jollyday-core/src/main/resources/descriptions/country_descriptions_pt.properties @@ -284,8 +284,8 @@ country.description.ly = Líbia country.description.ma = Marrocos country.description.mc = Mónaco country.description.md = Moldávia -country.description.md.bti = Balti -country.description.md.ch = Quichinau +country.description.md.ba = Balti +country.description.md.cu = Quichinau country.description.me = Montenegro country.description.mg = Madagáscar country.description.mh = Ilhas Marshall diff --git a/jollyday-core/src/main/resources/descriptions/country_descriptions_sv.properties b/jollyday-core/src/main/resources/descriptions/country_descriptions_sv.properties index ae4a69e38..5b4b930e1 100644 --- a/jollyday-core/src/main/resources/descriptions/country_descriptions_sv.properties +++ b/jollyday-core/src/main/resources/descriptions/country_descriptions_sv.properties @@ -284,8 +284,8 @@ country.description.ly = Libyan Arab Jamahiriya country.description.ma = Morocco country.description.mc = Monaco country.description.md = Moldova, Republic Of -country.description.md.bti = Balti -country.description.md.ch = Chisinau +country.description.md.ba = Balti +country.description.md.cu = Chisinau country.description.me = Montenegro country.description.mg = Madagascar country.description.mh = Marshall Islands diff --git a/jollyday-core/src/main/resources/holidays/Holidays_md.xml b/jollyday-core/src/main/resources/holidays/Holidays_md.xml index 2bb586b8a..5ebfaa8ab 100644 --- a/jollyday-core/src/main/resources/holidays/Holidays_md.xml +++ b/jollyday-core/src/main/resources/holidays/Holidays_md.xml @@ -18,7 +18,13 @@ - + + + https://www.iso.org/obp/ui/#iso:code:3166:MD + https://en.wikipedia.org/wiki/ISO_3166-2:MD + + + diff --git a/jollyday-tests/src/test/java/de/focus_shift/jollyday/tests/country/HolidayMDTest.java b/jollyday-tests/src/test/java/de/focus_shift/jollyday/tests/country/HolidayMDTest.java index d88bf4e03..f1f0c6a98 100644 --- a/jollyday-tests/src/test/java/de/focus_shift/jollyday/tests/country/HolidayMDTest.java +++ b/jollyday-tests/src/test/java/de/focus_shift/jollyday/tests/country/HolidayMDTest.java @@ -179,7 +179,7 @@ void ensuresThatChristmasIsConfigured(@ForAll @YearRange Year year) { @Property void ensuresThatBaltiDayIsConfigured(@ForAll @YearRange Year year) { final HolidayManager holidayManager = HolidayManager.getInstance(create(MOLDOVA)); - final Set holidays = holidayManager.getHolidays(year.getValue(), "bti"); + final Set holidays = holidayManager.getHolidays(year.getValue(), "ba"); assertThat(holidays) .isNotEmpty() .contains(new Holiday(LocalDate.of(year.getValue(), MAY, 22), "REGIONAL", OFFICIAL_HOLIDAY)); From 1e1162d16c9f54ecfc03708672c7e1e69d55541b Mon Sep 17 00:00:00 2001 From: XSpielinbox <55600187+xspielinbox@users.noreply.github.com> Date: Tue, 10 Oct 2023 22:07:51 +0200 Subject: [PATCH 2/2] Fix India Signed-off-by: XSpielinbox <55600187+xspielinbox@users.noreply.github.com> --- .../country_descriptions.properties | 39 ++++++------ .../country_descriptions_de.properties | 5 +- .../country_descriptions_el.properties | 5 +- .../country_descriptions_fr.properties | 5 +- .../country_descriptions_nl.properties | 5 +- .../country_descriptions_pt.properties | 5 +- .../country_descriptions_sv.properties | 5 +- .../main/resources/holidays/Holidays_in.xml | 63 +++++++++---------- 8 files changed, 62 insertions(+), 70 deletions(-) diff --git a/jollyday-core/src/main/resources/descriptions/country_descriptions.properties b/jollyday-core/src/main/resources/descriptions/country_descriptions.properties index 98e153404..61a37ed03 100644 --- a/jollyday-core/src/main/resources/descriptions/country_descriptions.properties +++ b/jollyday-core/src/main/resources/descriptions/country_descriptions.properties @@ -215,38 +215,39 @@ country.description.im = Isle of Man country.description.in = India country.description.in.an = Andaman and Nicobar Islands country.description.in.ap = Andhra Pradesh -country.description.in.ar = Arunachal Pradesh +country.description.in.ar = Arunāchal Pradesh country.description.in.as = Assam -country.description.in.br = Bihar -country.description.in.ch = Chandigarh -country.description.in.ct = Chhattisgarh -country.description.in.dd = Daman and Diu +country.description.in.br = Bihār +country.description.in.ch = Chandīgarh +country.description.in.ct = Chhattīsgarh +country.description.in.dh = Dādra and Nagar Haveli and Damān and Diu country.description.in.dl = Delhi -country.description.in.dn = Dadra and Nagar Haveli country.description.in.ga = Goa -country.description.in.gj = Gujarat -country.description.in.hp = Himachal Pradesh -country.description.in.hr = Haryana -country.description.in.jh = Jharkhand -country.description.in.jk = Jammu and Kashmir -country.description.in.ka = Karnataka +country.description.in.gj = Gujarāt +country.description.in.hp = Himāchal Pradesh +country.description.in.hr = Haryāna +country.description.in.jh = Jhārkhand +country.description.in.jk = Jammu and Kashmīr +country.description.in.ka = Karnātaka country.description.in.kl = Kerala +country.description.in.la = Ladākh country.description.in.ld = Lakshadweep -country.description.in.mh = Maharashtra -country.description.in.ml = Meghalaya +country.description.in.mh = Mahārāshtra +country.description.in.ml = Meghālaya country.description.in.mn = Manipur country.description.in.mp = Madhya Pradesh country.description.in.mz = Mizoram -country.description.in.nl = Nagaland -country.description.in.or = Orissa +country.description.in.nl = Nāgāland +country.description.in.or = Odisha country.description.in.pb = Punjab country.description.in.py = Puducherry -country.description.in.rj = Rajasthan +country.description.in.rj = Rājasthān country.description.in.sk = Sikkim -country.description.in.tn = Tamil Nadu +country.description.in.tg = Telangāna +country.description.in.tn = Tamil Nādu country.description.in.tr = Tripura -country.description.in.ul = Uttarakhand country.description.in.up = Uttar Pradesh +country.description.in.ut = Uttarākhand country.description.in.wb = West Bengal country.description.io = British Indian Ocean Territory country.description.iq = Iraq diff --git a/jollyday-core/src/main/resources/descriptions/country_descriptions_de.properties b/jollyday-core/src/main/resources/descriptions/country_descriptions_de.properties index 7fbbe8e1c..e2d0d2b95 100644 --- a/jollyday-core/src/main/resources/descriptions/country_descriptions_de.properties +++ b/jollyday-core/src/main/resources/descriptions/country_descriptions_de.properties @@ -220,9 +220,8 @@ country.description.in.as = Assam country.description.in.br = Bihar country.description.in.ch = Chandigarh country.description.in.ct = Chhattisgarh -country.description.in.dd = Daman und Diu +country.description.in.dh = Dadra und Nagar Haveli und Daman und Diu country.description.in.dl = Delhi -country.description.in.dn = Dadra und Nagar Haveli country.description.in.ga = Goa country.description.in.gj = Gujarat country.description.in.hp = Himachal Pradesh @@ -245,8 +244,8 @@ country.description.in.rj = Rajasthan country.description.in.sk = Sikkim country.description.in.tn = Tamil Nadu country.description.in.tr = Tripura -country.description.in.ul = Uttarakhand country.description.in.up = Uttar Pradesh +country.description.in.ut = Uttarakhand country.description.in.wb = West Bengal country.description.io = Britische Territorien im Indischen Ozean country.description.iq = Irak diff --git a/jollyday-core/src/main/resources/descriptions/country_descriptions_el.properties b/jollyday-core/src/main/resources/descriptions/country_descriptions_el.properties index f87be7b2e..7b4702bfb 100644 --- a/jollyday-core/src/main/resources/descriptions/country_descriptions_el.properties +++ b/jollyday-core/src/main/resources/descriptions/country_descriptions_el.properties @@ -220,9 +220,8 @@ country.description.in.as = Ασάμ country.description.in.br = Μπιχάρ country.description.in.ch = Chandigarh country.description.in.ct = Τσατισγκάρ -country.description.in.dd = Δαμαν και Ντίου +country.description.in.dh = Dadra και Nagar Haveli και Δαμαν και Ντίου country.description.in.dl = Δελχί -country.description.in.dn = Dadra και Nagar Haveli country.description.in.ga = Γκόα country.description.in.gj = Gujarat country.description.in.hp = Arunachal Pradesh @@ -245,8 +244,8 @@ country.description.in.rj = Rajasthan country.description.in.sk = Sikkim country.description.in.tn = Tamil Nadu country.description.in.tr = Tripura -country.description.in.ul = Uttarakhand country.description.in.up = Uttar Pradesh +country.description.in.ut = Uttarakhand country.description.in.wb = Δυτική Βεγγάλη country.description.io = Βρετανικό Έδαφος του Ινδικού Ωκεανού country.description.iq = Ιράκ diff --git a/jollyday-core/src/main/resources/descriptions/country_descriptions_fr.properties b/jollyday-core/src/main/resources/descriptions/country_descriptions_fr.properties index 96d046333..03489377e 100644 --- a/jollyday-core/src/main/resources/descriptions/country_descriptions_fr.properties +++ b/jollyday-core/src/main/resources/descriptions/country_descriptions_fr.properties @@ -220,9 +220,8 @@ country.description.in.as = Assam country.description.in.br = Bihar country.description.in.ch = Chandigarh country.description.in.ct = Chhattisgarh -country.description.in.dd = Daman et Diu +country.description.in.dh = Dadra et Nagar Haveli et Daman et Diu country.description.in.dl = Delhi -country.description.in.dn = Dadra et Nagar Haveli country.description.in.ga = Goa country.description.in.gj = Gujarat country.description.in.hp = Himachal Pradesh @@ -245,8 +244,8 @@ country.description.in.rj = Rajasthan country.description.in.sk = Sikkim country.description.in.tn = Tamil Nadu country.description.in.tr = Tripura -country.description.in.ul = Uttaranchal country.description.in.up = Uttar Pradesh +country.description.in.ut = Uttaranchal country.description.in.wb = Bengale occidental country.description.io = Océan Indien, Territoire Britannique de L' country.description.iq = Iraq diff --git a/jollyday-core/src/main/resources/descriptions/country_descriptions_nl.properties b/jollyday-core/src/main/resources/descriptions/country_descriptions_nl.properties index 43caebebd..8651b9e76 100644 --- a/jollyday-core/src/main/resources/descriptions/country_descriptions_nl.properties +++ b/jollyday-core/src/main/resources/descriptions/country_descriptions_nl.properties @@ -220,9 +220,8 @@ country.description.in.as = Assam country.description.in.br = Bihar country.description.in.ch = Chandigarh country.description.in.ct = Chhattisgarh -country.description.in.dd = Daman and Diu +country.description.in.dh = Dadra and Nagar Haveli and Daman and Diu country.description.in.dl = Delhi -country.description.in.dn = Dadra and Nagar Haveli country.description.in.ga = Goa country.description.in.gj = Gujarat country.description.in.hp = Himachal Pradesh @@ -245,8 +244,8 @@ country.description.in.rj = Rajasthan country.description.in.sk = Sikkim country.description.in.tn = Tamil Nadu country.description.in.tr = Tripura -country.description.in.ul = Uttarakhand country.description.in.up = Uttar Pradesh +country.description.in.ut = Uttarakhand country.description.in.wb = West Bengal country.description.io = British Indian Ocean Territory country.description.iq = Iraq diff --git a/jollyday-core/src/main/resources/descriptions/country_descriptions_pt.properties b/jollyday-core/src/main/resources/descriptions/country_descriptions_pt.properties index 08b7c2192..67ec9aa64 100644 --- a/jollyday-core/src/main/resources/descriptions/country_descriptions_pt.properties +++ b/jollyday-core/src/main/resources/descriptions/country_descriptions_pt.properties @@ -220,9 +220,8 @@ country.description.in.as = Assam country.description.in.br = Bihar country.description.in.ch = Chandigarh country.description.in.ct = Chhattisgarh -country.description.in.dd = Daman and Diu +country.description.in.dh = Dadra and Nagar Haveli and Daman and Diu country.description.in.dl = Déli -country.description.in.dn = Dadra and Nagar Haveli country.description.in.ga = Goa country.description.in.gj = Gujarat country.description.in.hp = Himachal Pradesh @@ -245,8 +244,8 @@ country.description.in.rj = Rajasthan country.description.in.sk = Sikkim country.description.in.tn = Tamil Nadu country.description.in.tr = Tripura -country.description.in.ul = Uttarakhand country.description.in.up = Uttar Pradesh +country.description.in.ut = Uttarakhand country.description.in.wb = West Bengal country.description.io = Território Britânico do Oceano Índico country.description.iq = Iraque diff --git a/jollyday-core/src/main/resources/descriptions/country_descriptions_sv.properties b/jollyday-core/src/main/resources/descriptions/country_descriptions_sv.properties index 5b4b930e1..b1f2f398e 100644 --- a/jollyday-core/src/main/resources/descriptions/country_descriptions_sv.properties +++ b/jollyday-core/src/main/resources/descriptions/country_descriptions_sv.properties @@ -220,9 +220,8 @@ country.description.in.as = Assam country.description.in.br = Bihar country.description.in.ch = Chandigarh country.description.in.ct = Chhattisgarh -country.description.in.dd = Daman and Diu +country.description.in.dh = Dadra and Nagar Haveli and Daman and Diu country.description.in.dl = Delhi -country.description.in.dn = Dadra and Nagar Haveli country.description.in.ga = Goa country.description.in.gj = Gujarat country.description.in.hp = Himachal Pradesh @@ -245,8 +244,8 @@ country.description.in.rj = Rajasthan country.description.in.sk = Sikkim country.description.in.tn = Tamil Nadu country.description.in.tr = Tripura -country.description.in.ul = Uttarakhand country.description.in.up = Uttar Pradesh +country.description.in.ut = Uttarakhand country.description.in.wb = West Bengal country.description.io = British Indian Ocean Territory country.description.iq = Iraq diff --git a/jollyday-core/src/main/resources/holidays/Holidays_in.xml b/jollyday-core/src/main/resources/holidays/Holidays_in.xml index b0280e683..22afcd342 100644 --- a/jollyday-core/src/main/resources/holidays/Holidays_in.xml +++ b/jollyday-core/src/main/resources/holidays/Holidays_in.xml @@ -9,6 +9,12 @@ + + + https://www.iso.org/obp/ui/#iso:code:3166:IN + https://en.wikipedia.org/wiki/ISO_3166-2:IN + + @@ -20,7 +26,7 @@ - + @@ -40,7 +46,7 @@ - + @@ -52,7 +58,7 @@ - + @@ -70,7 +76,7 @@ - + @@ -78,37 +84,28 @@ - + - + - - - - - - - - - - + - + @@ -143,7 +140,7 @@ - + @@ -166,7 +163,7 @@ - + @@ -186,7 +183,7 @@ - + @@ -196,7 +193,7 @@ - + @@ -211,7 +208,7 @@ - + @@ -229,7 +226,7 @@ - + @@ -264,7 +261,7 @@ - + @@ -299,7 +296,7 @@ - + @@ -310,16 +307,17 @@ - + + - + @@ -328,21 +326,20 @@ - + + - - + + - + - -