* src/EditPerson.py: Swap menu/submenu labels.
* src/EventEdit.py: Menu label fixes. svn: r5624
This commit is contained in:
parent
04d0822569
commit
8aa4a8abde
@ -1,3 +1,7 @@
|
|||||||
|
2005-12-23 Alex Roitman <shura@gramps-project.org>
|
||||||
|
* src/EditPerson.py: Swap menu/submenu labels.
|
||||||
|
* src/EventEdit.py: Menu label fixes.
|
||||||
|
|
||||||
2005-12-22 Don Allingham <don@gramps-project.org>
|
2005-12-22 Don Allingham <don@gramps-project.org>
|
||||||
* src/AddrEdit.py: More window management
|
* src/AddrEdit.py: More window management
|
||||||
* src/AttrEdit.py: More window management
|
* src/AttrEdit.py: More window management
|
||||||
|
@ -454,7 +454,7 @@ class EditPerson(DisplayState.ManagedWindow):
|
|||||||
win_menu_label = self.nd.display(person)
|
win_menu_label = self.nd.display(person)
|
||||||
if not win_menu_label.strip():
|
if not win_menu_label.strip():
|
||||||
win_menu_label = _("New Person")
|
win_menu_label = _("New Person")
|
||||||
return (win_menu_label,_('Edit Person'))
|
return (_('Edit Person'),win_menu_label)
|
||||||
|
|
||||||
def build_window_key(self,obj):
|
def build_window_key(self,obj):
|
||||||
if obj:
|
if obj:
|
||||||
|
@ -266,10 +266,17 @@ class EventEditor(DisplayState.ManagedWindow):
|
|||||||
|
|
||||||
def build_menu_names(self,event):
|
def build_menu_names(self,event):
|
||||||
if event:
|
if event:
|
||||||
win_menu_label = event.get_type()[1]
|
if event.get_type()[0] == RelLib.Event.CUSTOM:
|
||||||
if not win_menu_label.strip():
|
event_name = event.get_type()[1]
|
||||||
win_menu_label = _("New Place")
|
else:
|
||||||
return (win_menu_label,_('Edit Place'))
|
try:
|
||||||
|
event_name = Utils.personal_events[event.get_type()[0]]
|
||||||
|
except:
|
||||||
|
event_name = Utils.family_events[event.get_type()[0]]
|
||||||
|
submenu_label = _('Event: %s') % event_name
|
||||||
|
else:
|
||||||
|
submenu_label = _('New Event')
|
||||||
|
return (_('Event Editor'),submenu_label)
|
||||||
|
|
||||||
def build_window_key(self,obj):
|
def build_window_key(self,obj):
|
||||||
if obj:
|
if obj:
|
||||||
@ -564,7 +571,7 @@ class EventRefEditor(DisplayState.ManagedWindow):
|
|||||||
submenu_label = _('Event: %s') % event_name
|
submenu_label = _('Event: %s') % event_name
|
||||||
else:
|
else:
|
||||||
submenu_label = _('New Event')
|
submenu_label = _('New Event')
|
||||||
menu_label = _('Event Reference Editor')
|
return (_('Event Reference Editor'),submenu_label)
|
||||||
|
|
||||||
def build_window_key(self,eventref):
|
def build_window_key(self,eventref):
|
||||||
if self.event:
|
if self.event:
|
||||||
|
Loading…
Reference in New Issue
Block a user