Remove GrampsLocale.long_months for DateHandler.display.long_months.

svn: r14178
This commit is contained in:
Rob G. Healey 2010-02-01 09:57:14 +00:00
parent f8682183ab
commit 377b0937f6
2 changed files with 5 additions and 3 deletions

View File

@ -46,6 +46,7 @@ from gen.plug.menu import (BooleanOption, StringOption, NumberOption,
from gui.utils import ProgressMeter from gui.utils import ProgressMeter
from ReportBase import Report, ReportUtils, MenuReportOptions from ReportBase import Report, ReportUtils, MenuReportOptions
from Utils import probably_alive from Utils import probably_alive
from DateHandler import display as _dd
import GrampsLocale import GrampsLocale
import gen.lib import gen.lib
@ -181,7 +182,7 @@ class Calendar(Report):
self.doc.draw_box("CAL-Title", "", 0, 0, width, header) self.doc.draw_box("CAL-Title", "", 0, 0, width, header)
self.doc.draw_line("CAL-Border", 0, header, width, header) self.doc.draw_line("CAL-Border", 0, header, width, header)
year = self.year 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()) font_height = pt2cm(ptitle.get_font().get_size())
self.doc.center_text("CAL-Title", title, width/2, font_height * 0.25) self.doc.center_text("CAL-Title", title, width/2, font_height * 0.25)
cell_width = width / 7 cell_width = width / 7

View File

@ -48,6 +48,7 @@ from gui.utils import ProgressMeter
from ReportBase import Report, ReportUtils, MenuReportOptions from ReportBase import Report, ReportUtils, MenuReportOptions
from Utils import probably_alive from Utils import probably_alive
import GrampsLocale import GrampsLocale
from DateHandler import displayer as _dd
import libholiday import libholiday
@ -170,8 +171,8 @@ class CalendarReport(Report):
""" Prints a month as a page """ """ Prints a month as a page """
year = self.year year = self.year
self.doc.start_paragraph('BIR-Monthstyle') self.doc.start_paragraph('BIR-Monthstyle')
self.doc.write_text(GrampsLocale.long_months[month].capitalize()) self.doc.write_text(_dd[month].capitalize())
self.doc.end_paragraph() self.doc.end_paragraph(.long_months)
current_date = datetime.date(year, month, 1) current_date = datetime.date(year, month, 1)
current_ord = current_date.toordinal() current_ord = current_date.toordinal()
started_day = {} started_day = {}