From 2992295ee8ffea1de92775701f551afdbbcb310a Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 29 Nov 2003 03:52:53 +0000 Subject: [PATCH] * 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 --- src/EventEdit.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/EventEdit.py b/src/EventEdit.py index 1bf9d39df..488f30b90 100644 --- a/src/EventEdit.py +++ b/src/EventEdit.py @@ -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: