Setting the year as an ordinal number in Croatian
When I started investigating 10822, I saw some Croatian dates didn't seem to be working in 5.0.0, to my surprise. I believe I fixed that in the previous commit. With this commit, the three reports now show a year as an ordinal number in Croatian, so I consider 10822 fixed. If there are any additional problems displaying Croatian, please file additional bug reports ("one bug, one report"). Fixes #10822
This commit is contained in:
parent
69aaec11a5
commit
4b17ca4724
@ -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 "<month-name> <year>"
|
||||
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,
|
||||
|
@ -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()
|
||||
|
@ -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 <li class="CurrentSection">
|
||||
# or just plain <li>
|
||||
|
6
po/hr.po
6
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
|
||||
|
Loading…
Reference in New Issue
Block a user