* 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:
parent
1ef5fa0a3f
commit
2b3675313b
@ -134,11 +134,20 @@ class EventEditor:
|
|||||||
self.top.get_widget('edit_witness'),
|
self.top.get_widget('edit_witness'),
|
||||||
self.top.get_widget('del_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.AutoCombo(self.event_menu,list)
|
||||||
AutoComp.AutoEntry(self.place_field,self.pmap.keys())
|
AutoComp.AutoEntry(self.place_field,self.pmap.keys())
|
||||||
|
|
||||||
if event != None:
|
if event != None:
|
||||||
self.name_field.set_text(const.display_event(event.getName()))
|
self.name_field.set_text(transname)
|
||||||
if (def_placename):
|
if (def_placename):
|
||||||
self.place_field.set_text(def_placename)
|
self.place_field.set_text(def_placename)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user