diff --git a/gramps/plugins/drawreport/calendarreport.py b/gramps/plugins/drawreport/calendarreport.py index a4c2fa44e..17c524d0c 100644 --- a/gramps/plugins/drawreport/calendarreport.py +++ b/gramps/plugins/drawreport/calendarreport.py @@ -227,13 +227,9 @@ class Calendar(Report): self.doc.draw_box("CAL-Title", "", 0, 0, width, header, mark) self.doc.draw_line("CAL-Border", 0, header, width, header) year = self.year - # TRANSLATORS: see - # http://gramps-project.org/wiki/index.php?title=Translating_Gramps#Translating_dates - # to learn how to select proper inflection for your language. - title = self._("{long_month} {year}").format( - long_month = self._ldd.long_months[month], - year = year - ).capitalize() + # assume every calendar header in the world is " " + title = "%s %s" % (self._ldd.long_months[month].capitalize(), + self._get_date(Date(self.year))) # localized year mark = IndexMark(title, INDEX_TYPE_TOC, 2) font_height = pt2cm(ptitle.get_font().get_size()) self.doc.center_text("CAL-Title", title, diff --git a/gramps/plugins/textreport/birthdayreport.py b/gramps/plugins/textreport/birthdayreport.py index c7a7dfb80..9f303f900 100644 --- a/gramps/plugins/textreport/birthdayreport.py +++ b/gramps/plugins/textreport/birthdayreport.py @@ -180,10 +180,13 @@ class BirthdayReport(Report): # generate the report: self.doc.start_paragraph('BIR-Title') if self.titletext == _(_TITLE0): - title = self._(_TITLE0) + ": " + str(self.year) + title = self._("%(str1)s: %(str2)s") % { + 'str1' : self._(_TITLE0), + 'str2' : self._get_date(Date(self.year))} # localized year else: - title = str(self.titletext) + ": " + str(self.year) - # FIXME those concatenated strings won't work for RTL languages + title = self._("%(str1)s: %(str2)s") % { + 'str1' : str(self.titletext), + 'str2' : self._get_date(Date(self.year))} mark = IndexMark(title, INDEX_TYPE_TOC, 1) self.doc.write_text(title, mark) self.doc.end_paragraph() diff --git a/gramps/plugins/webreport/webcal.py b/gramps/plugins/webreport/webcal.py index 54d076d7c..94fa94878 100644 --- a/gramps/plugins/webreport/webcal.py +++ b/gramps/plugins/webreport/webcal.py @@ -541,8 +541,8 @@ class WebCalReport(Report): # Note. We use '/' here because it is a URL, not a OS dependent # pathname. url = '/'.join(subdirs + [full_month_name]) + self.ext - hyper = Html("a", str(cal_year), href=url, - title=str(cal_year)) + hyper = Html("a", self.rlocale.get_date(Date(cal_year)), + href=url, title=str(cal_year)) # Figure out if we need
  • # or just plain
  • diff --git a/po/hr.po b/po/hr.po index ef16541e7..530b46c77 100644 --- a/po/hr.po +++ b/po/hr.po @@ -20270,13 +20270,13 @@ msgid_plural "" "{spouse} and\n" " {person}, {nyears}" msgstr[0] "" -"{spouse} and\n" +"{spouse} i\n" " {person}, {nyears}" msgstr[1] "" -"{spouse} and\n" +"{spouse} i\n" " {person}, {nyears}" msgstr[2] "" -"{spouse} and\n" +"{spouse} i\n" " {person}, {nyears}" #: ../gramps/plugins/drawreport/calendarreport.py:472