Use translated event names; properly test for events.
svn: r5071
This commit is contained in:
parent
a672292d5d
commit
ed41f66ebf
@ -4,7 +4,7 @@
|
|||||||
events; Replace garbage event_list with empty list for both
|
events; Replace garbage event_list with empty list for both
|
||||||
types.
|
types.
|
||||||
* src/plugins/NavWebPage.py (display_ind_events,display_spouse):
|
* 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>
|
2005-08-12 Jiri Pejchal <jiri.pejchal@gmail.com>
|
||||||
* src/po/cs.po: Updated Czech translation.
|
* src/po/cs.po: Updated Czech translation.
|
||||||
|
@ -435,8 +435,6 @@ class BasePage:
|
|||||||
handle = self.lnkfmt(name)
|
handle = self.lnkfmt(name)
|
||||||
dirpath = self.build_path(handle,'srn',up)
|
dirpath = self.build_path(handle,'srn',up)
|
||||||
|
|
||||||
print self.levels, dirpath
|
|
||||||
|
|
||||||
of.write('<a href="%s/%s.%s">%s' % (dirpath,handle,self.ext,name))
|
of.write('<a href="%s/%s.%s">%s' % (dirpath,handle,self.ext,name))
|
||||||
if opt_val != None:
|
if opt_val != None:
|
||||||
of.write(' (%d)' % opt_val)
|
of.write(' (%d)' % opt_val)
|
||||||
@ -1360,7 +1358,12 @@ class IndividualPage(BasePage):
|
|||||||
of.write('</tr>\n</table>\n</div>\n')
|
of.write('</tr>\n</table>\n</div>\n')
|
||||||
|
|
||||||
def display_ind_events(self,of):
|
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
|
return
|
||||||
|
|
||||||
of.write('<h4>%s</h4>\n' % _('Events'))
|
of.write('<h4>%s</h4>\n' % _('Events'))
|
||||||
|
Loading…
Reference in New Issue
Block a user