2007-10-30 Douglas S. Blank <dblank@cs.brynmawr.edu>

* src/plugins/Calendar.py: added Peter Landgren's locale suggestions



svn: r9279
This commit is contained in:
Doug Blank 2007-10-31 01:13:53 +00:00
parent c035635a17
commit 61e31e9f16
2 changed files with 5 additions and 7 deletions

View File

@ -1,3 +1,6 @@
2007-10-30 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/plugins/Calendar.py: added Peter Landgren's locale suggestions
2007-10-30 Gary Burton <gary.burton@zen.co.uk>
* src/gen/lib/person.py: setting the death index wrongly.

View File

@ -404,7 +404,7 @@ class CalendarReport(Calendar):
""" Prints a month as a page """
year = self.year
self.doc.start_paragraph('BIR-Monthstyle')
self.doc.write_text("%s %d" % (GrampsLocale.long_months[month], year))
self.doc.write_text(GrampsLocale.long_months[month])
self.doc.end_paragraph()
current_date = datetime.date(year, month, 1)
current_ord = current_date.toordinal()
@ -417,12 +417,7 @@ class CalendarReport(Calendar):
p = p.replace("\n", " ")
if thisday not in started_day:
self.doc.start_paragraph("BIR-Daystyle")
date = gen.lib.Date()
date.set_yr_mon_day(year, month, i + 1)
sdate = displayer.display(date)
# Display date in locale's format
self.doc.write_text( sdate )
#self.doc.write_text("%s %s" % (GrampsLocale.long_months[month], str(thisday.day)))
self.doc.write_text(str(thisday.day))
self.doc.end_paragraph()
started_day[thisday] = 1
self.doc.start_paragraph("BIR-Datastyle")