From 377b0937f62d3b0b88651b64a07f1fb0dafe4b38 Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Mon, 1 Feb 2010 09:57:14 +0000 Subject: [PATCH] Remove GrampsLocale.long_months for DateHandler.display.long_months. svn: r14178 --- src/plugins/drawreport/Calendar.py | 3 ++- src/plugins/textreport/BirthdayReport.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/plugins/drawreport/Calendar.py b/src/plugins/drawreport/Calendar.py index 24a4f5388..638b7af32 100644 --- a/src/plugins/drawreport/Calendar.py +++ b/src/plugins/drawreport/Calendar.py @@ -46,6 +46,7 @@ from gen.plug.menu import (BooleanOption, StringOption, NumberOption, from gui.utils import ProgressMeter from ReportBase import Report, ReportUtils, MenuReportOptions from Utils import probably_alive +from DateHandler import display as _dd import GrampsLocale import gen.lib @@ -181,7 +182,7 @@ class Calendar(Report): self.doc.draw_box("CAL-Title", "", 0, 0, width, header) self.doc.draw_line("CAL-Border", 0, header, width, header) year = self.year - title = "%s %d" % (GrampsLocale.long_months[month].capitalize(), year) + title = "%s %d" % (_dd.long_months[month].capitalize(), year) font_height = pt2cm(ptitle.get_font().get_size()) self.doc.center_text("CAL-Title", title, width/2, font_height * 0.25) cell_width = width / 7 diff --git a/src/plugins/textreport/BirthdayReport.py b/src/plugins/textreport/BirthdayReport.py index 7f6309388..d6b41320e 100644 --- a/src/plugins/textreport/BirthdayReport.py +++ b/src/plugins/textreport/BirthdayReport.py @@ -48,6 +48,7 @@ from gui.utils import ProgressMeter from ReportBase import Report, ReportUtils, MenuReportOptions from Utils import probably_alive import GrampsLocale +from DateHandler import displayer as _dd import libholiday @@ -170,8 +171,8 @@ class CalendarReport(Report): """ Prints a month as a page """ year = self.year self.doc.start_paragraph('BIR-Monthstyle') - self.doc.write_text(GrampsLocale.long_months[month].capitalize()) - self.doc.end_paragraph() + self.doc.write_text(_dd[month].capitalize()) + self.doc.end_paragraph(.long_months) current_date = datetime.date(year, month, 1) current_ord = current_date.toordinal() started_day = {}