* 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:
Alex Roitman
2005-03-08 17:18:33 +00:00
parent ba1a7e55fe
commit c882cf1633
4 changed files with 15 additions and 260 deletions

View File

@@ -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)