svn: r7711
This commit is contained in:
parent
dfd4069827
commit
6f593329ae
@ -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