[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gcal] German Reformationstag 2017
From: |
Giuseppe Scrivano |
Subject: |
Re: [Bug-gcal] German Reformationstag 2017 |
Date: |
Thu, 03 Mar 2016 17:53:05 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Hi Bruno,
Bruno Haible <address@hidden> writes:
> Hi Giuseppe,
>
> Gcal 4 is missing a public holiday for Germany in 2017.
is it going to be only for 2017 or every year >= 2017?
if it is happening only in 2017, then the patch below will fix it.
Regards,
Giuseppe
diff --git a/src/hd-data1.c b/src/hd-data1.c
index 56c26a7..10ad39a 100644
--- a/src/hd-data1.c
+++ b/src/hd-data1.c
@@ -649,6 +649,10 @@ de_hdy (init_data, detected, easter, year, hd_elems, fday,
count)
"+", DAY_MIN, 5, year, hd_elems, fday, count);
base_christian_hdy (init_data, detected, easter, year, hd_elems, fday,
count);
+ if (year == 2017)
+ holiday (*init_data, detected, _(hd_text[HD_REFORMATION_DAY].ht_text),
+ ptr_cc_id, DIS_HLS_PREF2, dvec[10 - 1], 10, year, hd_elems, fday,
+ count);
}
diff --git a/src/hd-data3.c b/src/hd-data3.c
index e2cb622..c2c20bf 100644
--- a/src/hd-data3.c
+++ b/src/hd-data3.c
@@ -106,7 +106,7 @@ de_bb_hdy (init_data, detected, easter, year, hd_elems,
fday, count)
}
else
de_hdy (init_data, detected, easter, year, hd_elems, fday, count);
- if (year > 1516)
+ if (year > 1516 && year != 2017)
holiday (*init_data, detected, _(hd_text[HD_REFORMATION_DAY].ht_text),
ptr_cc_id, "+", dvec[10 - 1], 10, year, hd_elems, fday, count);
if (year > 1989)
@@ -438,7 +438,7 @@ de_sn_hdy (init_data, detected, easter, year, hd_elems,
fday, count)
holiday (*init_data, detected,
_(hd_text[HD_DAY_OF_PRAYER_AND_REPENTANCE].ht_text), ptr_cc_id,
"+", day, 11, year, hd_elems, fday, count);
- if (year > 1516)
+ if (year > 1516 && year != 2017)
holiday (*init_data, detected, _(hd_text[HD_REFORMATION_DAY].ht_text),
ptr_cc_id, DIS_HLS_PREF2, dvec[10 - 1], 10, year, hd_elems, fday,
count);