Use translated event names; properly test for events.

svn: r5071
This commit is contained in:
Alex Roitman 2005-08-12 21:32:56 +00:00
parent a672292d5d
commit ed41f66ebf
2 changed files with 7 additions and 4 deletions

View File

@ -4,7 +4,7 @@
events; Replace garbage event_list with empty list for both
types.
* src/plugins/NavWebPage.py (display_ind_events,display_spouse):
Use translated event names.
Use translated event names; properly test for events.
2005-08-12 Jiri Pejchal <jiri.pejchal@gmail.com>
* src/po/cs.po: Updated Czech translation.

View File

@ -435,8 +435,6 @@ class BasePage:
handle = self.lnkfmt(name)
dirpath = self.build_path(handle,'srn',up)
print self.levels, dirpath
of.write('<a href="%s/%s.%s">%s' % (dirpath,handle,self.ext,name))
if opt_val != None:
of.write('&nbsp;(%d)' % opt_val)
@ -1360,7 +1358,12 @@ class IndividualPage(BasePage):
of.write('</tr>\n</table>\n</div>\n')
def display_ind_events(self,of):
if len(self.person.get_event_list()) == 0:
all_events = [handle for handle in [self.person.get_birth_handle(),
self.person.get_death_handle()]
if handle] + self.person.get_event_list()
print all_events
if not all_events:
return
of.write('<h4>%s</h4>\n' % _('Events'))