svn: r7711
This commit is contained in:
parent
23f12541d5
commit
8c05f90b0d
@ -106,12 +106,11 @@ class EditPerson(EditPrimary):
|
|||||||
return RelLib.Person()
|
return RelLib.Person()
|
||||||
|
|
||||||
def get_menu_title(self):
|
def get_menu_title(self):
|
||||||
pname = self.obj.get_primary_name()
|
if self.obj.get_handle():
|
||||||
if pname.is_empty():
|
name = NameDisplay.displayer.display(self.obj)
|
||||||
title = _('New Person')
|
|
||||||
else:
|
|
||||||
name = NameDisplay.displayer.display_name(pname)
|
|
||||||
title = _('Person') + ': %s' % name
|
title = _('Person') + ': %s' % name
|
||||||
|
else:
|
||||||
|
title = _('New Person')
|
||||||
return title
|
return title
|
||||||
|
|
||||||
def _local_init(self):
|
def _local_init(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user