From 61e31e9f16aa0ad2c5fc95a5063a3ded387abcd8 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 31 Oct 2007 01:13:53 +0000 Subject: [PATCH] 2007-10-30 Douglas S. Blank * src/plugins/Calendar.py: added Peter Landgren's locale suggestions svn: r9279 --- ChangeLog | 3 +++ src/plugins/Calendar.py | 9 ++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index dde4b5d62..59a97a9ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-10-30 Douglas S. Blank + * src/plugins/Calendar.py: added Peter Landgren's locale suggestions + 2007-10-30 Gary Burton * src/gen/lib/person.py: setting the death index wrongly. diff --git a/src/plugins/Calendar.py b/src/plugins/Calendar.py index 36d85b03c..8a3a1ae44 100644 --- a/src/plugins/Calendar.py +++ b/src/plugins/Calendar.py @@ -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")