From 64b50218434d29d235b55387f67bc64133078de7 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Wed, 14 Sep 2016 10:38:14 -0700 Subject: [PATCH] 4827: HTML-Export, make language selectable (WebCal tweaks) --- gramps/plugins/webreport/webcal.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/webreport/webcal.py b/gramps/plugins/webreport/webcal.py index f4e3761aa..3cb323548 100644 --- a/gramps/plugins/webreport/webcal.py +++ b/gramps/plugins/webreport/webcal.py @@ -1292,6 +1292,7 @@ class WebCalReport(Report): if (birth_date != Date() and birth_date.is_valid() and death_date): age_at_death = death_date - birth_date + age_at_death = age_at_death.format(dlocale=self.rlocale) # determine birthday information??? if (self.birthday and birth_date is not Date() @@ -1404,6 +1405,8 @@ class WebCalReport(Report): wedding_age = None if first_died != Date(): wedding_age = first_died - event_date + wedding_age = wedding_age.format( + dlocale=self.rlocale) if self.link_to_narweb: spouse_name = str(Html("a", spouse_name, @@ -1997,7 +2000,7 @@ def get_day_list(event_date, holiday_list, bday_anniv_list, rlocale=glocale): if age_at_death is not None: death_symbol = "✞" # latin cross for html code - mess = _("Died %(death_date)s.") % { + mess = trans_text("Died %(death_date)s.") % { 'death_date' : dead_event_date} age = ", %s %s (%s)" % ( death_symbol, mess, age_at_death)