2006-05-14 Alex Roitman <shura@gramps-project.org>

* src/DateHandler/__init__.py: Remove unneeded imports.
	* src/plugins/Calendar.py (print_page): Use GrampsLocale._months.



svn: r6662
This commit is contained in:
Alex Roitman 2006-05-15 04:13:31 +00:00
parent 8f314aa39b
commit 0ee9c5a676
3 changed files with 6 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2006-05-14 Alex Roitman <shura@gramps-project.org>
* src/DateHandler/__init__.py: Remove unneeded imports.
* src/plugins/Calendar.py (print_page): Use GrampsLocale._months.
2006-05-14 Brian Matherly <brian@gramps-project.org>
* src/PluginUtils/_ReportUtils.py: Change strings to include gender instead
of "child of"

View File

@ -28,9 +28,6 @@ Class handling language-specific selection for date parser and displayer.
from _DateHandler import _lang, _lang_short, \
_lang_to_parser, _lang_to_display, register_datehandler
from _DateDisplay import DateDisplay
from _DateParser import DateParser
# Import all the localized handlers
import _Date_de
import _Date_es

View File

@ -40,7 +40,7 @@ import BaseDoc
from PluginUtils import Report, ReportOptions, ReportUtils, register_report
pt2cm = ReportUtils.pt2cm
from Filters import CustomFilters, GenericFilter, ParamFilter, Rules
from DateHandler import DateDisplay
import GrampsLocale
import RelLib
# _days could be added to DateDisplay:
@ -202,7 +202,7 @@ class Calendar(Report.Report):
self.doc.draw_bar("title", 0, 0, width, header)
self.doc.draw_line("border", 0, header, width, header)
year = self["year"]
title = "%s %d" % (DateDisplay._months[month], year)
title = "%s %d" % (GrampsLocale._months[month], year)
font_height = pt2cm(1.25 * self["title"].get_size())
self.doc.center_text("title", title, width/2, font_height + self["offset"]) # 1.0
cell_width = width / 7