From 17a815ca05d2a62aeb6559773234d91a553ad92b Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 5 Mar 2002 05:13:18 +0000 Subject: [PATCH] Fixed name type properties svn: r815 --- gramps/src/NameEdit.py | 5 +++++ gramps/src/const.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gramps/src/NameEdit.py b/gramps/src/NameEdit.py index 8993b903d..8381f1043 100644 --- a/gramps/src/NameEdit.py +++ b/gramps/src/NameEdit.py @@ -59,6 +59,10 @@ class NameEditor: self.combo = AutoComp.AutoCombo(slist,const.surnames) self.priv = self.top.get_widget("priv") + types = const.NameTypesMap.keys() + types.sort() + self.typecomp = AutoComp.AutoCombo(self.type_field,types) + if self.name: self.srcreflist = self.name.getSourceRefList() else: @@ -104,6 +108,7 @@ class NameEditor: priv = self.priv.get_active() type = self.type_field.entry.get_text() + if const.NameTypesMap.has_key(type): type = const.NameTypesMap[type] else: diff --git a/gramps/src/const.py b/gramps/src/const.py index f132a9bc5..6e95ba855 100644 --- a/gramps/src/const.py +++ b/gramps/src/const.py @@ -859,5 +859,5 @@ lds_ssealing = [ NameTypesMap = { _("Also Known As") : "Also Known As", - _("Married") : "Married", + _("Married Name") : "Married Name", }