diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 2f47afee3..75f57d966 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,5 +1,15 @@ 2003-08-08 Alex Roitman * src/PaperMenu.py: Add A3 size to the default size list. + * src/plugins/FamilyGroup.py: Remove setup() call. + * src/plugins/IndivSummary.py: Enable translation for an event type. + * src/plugins/FtmStyleAncestors.py: Space after full stop. + * src/const.py.in (display_pevent): Try translating string if not + found in the _pe_e2l dictionary. Useful for translating Birth and + Death events which are not in the dictionary as non-editable events. + Seems harmless in the display function ; + (display_fevent, display_event, display_pattr, display_fattr, + display_attr, display_frel): Likewise. Might be useful in some + cases and seems totally harmless. 2003-08-07 Don Allingham * src/FamilyView.py: set menu title diff --git a/gramps2/src/const.py.in b/gramps2/src/const.py.in index 416918f53..7f586769a 100644 --- a/gramps2/src/const.py.in +++ b/gramps2/src/const.py.in @@ -226,7 +226,7 @@ def display_fevent(st): if _fe_e2l.has_key(st): return _fe_e2l[st] else: - return st + return _(st) #------------------------------------------------------------------------- # @@ -335,7 +335,7 @@ def display_pevent(st): if _pe_e2l.has_key(st): return _pe_e2l[st] else: - return st + return _(st) #------------------------------------------------------------------------- # @@ -360,7 +360,7 @@ def display_event(st): elif _fe_e2l.has_key(st): return _fe_e2l[st] else: - return st + return _(st) def save_event(st): if _pe_l2e.has_key(st): @@ -404,7 +404,7 @@ def display_pattr(st): if _pa_e2l.has_key(st): return _pa_e2l[st] else: - return st + return _(st) #------------------------------------------------------------------------- # @@ -443,7 +443,7 @@ def display_fattr(st): if _fa_e2l.has_key(st): return _fa_e2l[st] else: - return st + return _(st) #------------------------------------------------------------------------- # @@ -468,7 +468,7 @@ def display_attr(st): elif _fa_e2l.has_key(st): return _fa_e2l[st] else: - return st + return _(st) def save_attr(st): if _pa_l2e.has_key(st): @@ -524,7 +524,7 @@ def display_frel(st): if _fr_e2l.has_key(st): return _fr_e2l[st] else: - return st + return _(st) #------------------------------------------------------------------------- # diff --git a/gramps2/src/plugins/FamilyGroup.py b/gramps2/src/plugins/FamilyGroup.py index d3d4f736f..519ff8117 100644 --- a/gramps2/src/plugins/FamilyGroup.py +++ b/gramps2/src/plugins/FamilyGroup.py @@ -400,7 +400,6 @@ class FamilyGroupDialog(Report.TextReportDialog): try: MyReport = FamilyGroup(self.db, self.report_menu, self.doc, self.target_path) - MyReport.setup() MyReport.write_report() except Errors.ReportError, msg: (m1,m2) = msg.messages() diff --git a/gramps2/src/plugins/FtmStyleAncestors.py b/gramps2/src/plugins/FtmStyleAncestors.py index c7a02b4fa..59581f5ff 100644 --- a/gramps2/src/plugins/FtmStyleAncestors.py +++ b/gramps2/src/plugins/FtmStyleAncestors.py @@ -121,7 +121,7 @@ class FtmAncestorReport(Report.Report): if birth_valid or death_valid: self.doc.write_text(', ') else: - self.doc.write_text('.') + self.doc.write_text('. ') if birth_valid: date = birth.getDateObj().get_start_date() diff --git a/gramps2/src/plugins/IndivSummary.py b/gramps2/src/plugins/IndivSummary.py index d4fccb3c8..3cd4fa916 100644 --- a/gramps2/src/plugins/IndivSummary.py +++ b/gramps2/src/plugins/IndivSummary.py @@ -111,7 +111,7 @@ class IndivSummary(Report.Report): def write_fact(self,event): if event == None: return - name = event.getName() + name = const.display_event(event.getName()) date = event.getDate() place = event.getPlaceName() description = event.getDescription()