* src/EventEdit.py (EventEditor.__init__): add translated name to the

popdown menu list if isn't already there. Prevents a parital match on
other strings
* src/PedView.py: add a '*' to the popup menu if the child has children


svn: r2402
This commit is contained in:
Don Allingham 2003-11-29 03:52:53 +00:00
parent 27414ad175
commit 2992295ee8

View File

@ -134,11 +134,20 @@ class EventEditor:
self.top.get_widget('edit_witness'),
self.top.get_widget('del_witness'))
transname = const.display_event(event.getName())
# add the name to the list if it is not already there. This tends to occur
# in translated languages with the 'Death' event, which is a partial match
# to other events
if not transname in list:
list.append(transname)
AutoComp.AutoCombo(self.event_menu,list)
AutoComp.AutoEntry(self.place_field,self.pmap.keys())
if event != None:
self.name_field.set_text(const.display_event(event.getName()))
self.name_field.set_text(transname)
if (def_placename):
self.place_field.set_text(def_placename)
else: