* 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. svn: r1973
This commit is contained in:
parent
5281153160
commit
d33937c7b9
10
ChangeLog
10
ChangeLog
@ -1,5 +1,15 @@
|
||||
2003-08-08 Alex Roitman <shura@alex.neuro.umn.edu>
|
||||
* 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 <dallingham@users.sourceforge.net>
|
||||
* src/FamilyView.py: set menu title
|
||||
|
@ -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)
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user