* src/EditPerson.py: Remove numerous multiple definitions.
* src/AttrEdit.py (__init__): Set text to translated attribute type. * src/const.py.in (display_attr): Add function. svn: r4132
This commit is contained in:
@@ -461,6 +461,13 @@ def display_fattr(st):
|
||||
# there might be in the future.
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
def display_attr(st):
|
||||
if personal_attributes.has_value(st):
|
||||
return personal_attributes.find_value(st)
|
||||
if family_attributes.has_value(st):
|
||||
return family_attributes.find_value(st)
|
||||
return _(st)
|
||||
|
||||
def save_attr(st):
|
||||
if personal_attributes.has_value(st):
|
||||
return personal_attributes.find_key(st)
|
||||
|
Reference in New Issue
Block a user