@@ -129,8 +129,8 @@ def get_actions(dbstate, citation, form_event):
129
129
birth_range = (birth_date - 5 ).get_dmy () + (False ,) + birth_date .get_dmy () + (False ,)
130
130
birth_date .set (Date .QUAL_NONE , Date .MOD_RANGE , birth_date .get_calendar (), birth_range , newyear = birth_date .get_new_year ())
131
131
birth_date .set_quality (Date .QUAL_CALCULATED )
132
-
133
- actions .append ((name_displayer .display (person ), date_displayer . display ( birth_date ) ,
132
+ detail = _ ( 'Age: {age} \n Date: {date}' ). format ( age = age_string , date = date_displayer . display ( birth_date ))
133
+ actions .append ((name_displayer .display (person ), detail ,
134
134
lambda dbstate , uistate , track , citation_handle = citation .handle , person_handle = person .handle , birth_date_ = birth_date : actionutils .add_event_to_person (dbstate , uistate , track , person_handle , EventType .BIRTH , birth_date_ , None , citation_handle , EventRoleType .PRIMARY )))
135
135
return (_ ("Add Birth event" ), actions )
136
136
@@ -142,7 +142,7 @@ def get_actions(dbstate, citation, form_event):
142
142
for (person , attr ) in actionutils .get_form_person_attr (db , form_event .get_handle (), 'Occupation' ):
143
143
occupation = attr .get_value ()
144
144
if (occupation ) :
145
- actions .append ((name_displayer .display (person ), occupation ,
145
+ actions .append ((name_displayer .display (person ), _ ( 'Description: { occupation}' ). format ( occupation = occupation ) ,
146
146
lambda dbstate , uistate , track , citation_handle = citation .handle , person_handle = person .handle , occupation_ = occupation : actionutils .add_event_to_person (dbstate , uistate , track , person_handle , EventType .OCCUPATION , form_event .get_date_object (), occupation_ , citation_handle , EventRoleType .PRIMARY )))
147
147
return (_ ("Add Occupation event" ), actions )
148
148
@@ -160,10 +160,11 @@ def get_actions(dbstate, citation, form_event):
160
160
people .append ((person .get_handle (), EventRoleType .PRIMARY ))
161
161
actions = []
162
162
if people :
163
- place = None
163
+ detail = None
164
164
if form_event .get_place_handle ():
165
165
place = place_displayer .display (db , db .get_place_from_handle (form_event .get_place_handle ()))
166
- actions .append ((get_participant_from_event (db , form_event .get_handle ()), place ,
166
+ detail = _ ('Place: {place}' ).format (place = place )
167
+ actions .append ((get_participant_from_event (db , form_event .get_handle ()), detail ,
167
168
lambda dbstate , uistate , track , citation_handle = citation .handle , people_handles = people : ResidenceEvent .command (dbstate , uistate , track , citation_handle , form_event .get_date_object (), form_event .get_place_handle (), people_handles )))
168
169
return (_ ("Add Residence event" ), actions )
169
170
0 commit comments